Skip to content
Quick find

Search the notebook

— Hz
♭ −50 −25 0 +25 +50 ♯

How this tuner works

After you grant microphone access, the tuner reads short snapshots of the audio waveform through the Web Audio API. It compares each 4,096-sample snapshot with delayed copies of itself. The strongest repeating interval gives the fundamental frequency of the note you are playing.

R(k)= i=0 Nk1 xi · x i+k

Here, x is an audio sample, N is the snapshot length, and k is a trial delay. Once the strongest repeating delay is found, a small interpolation term improves the estimate:

f= fs kpeak +δ

The detector takes the median of the five latest readings to calm down small jumps, then holds the last reliable pitch for up to 1.5 seconds. It converts that frequency to the nearest chromatic note using A4 = 440 Hz.

m=round( 69+12· log2 (f440) )

Reading the display

The large note is the pitch the microphone hears. The needle compares it with the closest string in the selected tuning and shows the difference in cents. One semitone is 100 cents.

c=1200· log2 ( f fref )

High-G and Low-G

The mode changes the four reference strings used by the comparison. High-G uses G4, C4, E4, A4. Low-G replaces G4 with G3. The pitch detector itself remains chromatic, so it can still identify notes outside those four strings.

Limitations

Privacy

Audio is analysed locally in your browser. The tuner does not record or upload it, and the microphone stream stops when you stop the tuner or leave the page.