Web Audio · DSP
Tuner
Real-time pitch detection from the microphone
—
Not listening
- Frequency
- —
- Deviation
- —
- Clarity
- —
Standard (EADGBE)
- 6E4329.6 Hz
- 5B3246.9 Hz
- 4G3196.0 Hz
- 3D3146.8 Hz
- 2A2110.0 Hz
- 1E282.4 Hz
Strings are listed highest first, as they sit under your hand. The row lights when the detected note matches.
Audio is analysed in the page and never leaves your device. Headphones recommended, so the speakers do not feed the microphone.
The microphone is opened with echo cancellation, noise suppression and automatic gain explicitly disabled. Those defaults are tuned for speech and all three actively damage a pitch measurement — noise suppression in particular treats a sustained note as stationary noise and attenuates it.
The needle is smoothed in the log-frequency domain, so it settles at the same rate on a low E as on a high one. A jump of more than a fifth re-seeds it instead of gliding, because a leap that large is a new note rather than a slide.
How it works
A chromatic instrument tuner that listens through the microphone and reports the note and its deviation in cents. The pitch detection is a from-scratch implementation of the YIN algorithm — no library — and it is accurate to under a cent on synthetic signals.
Read the full case study