Skip to content

Search content

—
— 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 N−k−1 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. In Chromatic mode, the needle compares it with the closest equal-tempered note. With an instrument preset, it compares the pitch with the closest open string and highlights that string's card. One semitone is 100 cents.

c=1200· log2 ( f fref )

Instrument presets

Presets cover ukulele, guitar, four- and five-string bass, violin, viola, cello, and mandolin. Common alternatives include Low-G and baritone ukulele, Drop D guitar, and DADGAD. A preset only changes the reference strings; the detected note remains chromatic.

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.