Online Instrument Tuner

Online tuner that listens through your microphone and shows the note and cents sharp or flat. Includes reference tones and adjustable A4. Audio stays on device.

Runs in your browser. No data leaves your device.

About this tool

A tuner that listens. In Listen mode (the default when the browser can use a microphone) it hears the note you play or sing and shows the nearest note and octave, how many cents sharp or flat it is on a needle meter, and "In tune" within 5 cents. With an instrument preset chosen it measures against the closest string instead. Reference tones mode plays a steady tone at any pitch for tuning by ear.

Features
  • Listen mode: microphone captured with getUserMedia with echo cancellation, noise suppression and auto gain turned off, into a MediaStreamAudioSourceNode -> AudioWorkletNode (mono) -> silent GainNode; nothing is played back
  • Pitch detection runs on the audio thread in an AudioWorklet: YIN (cumulative mean normalized difference, threshold 0.2) with the difference function computed by FFT (about 0.3 ms per frame), parabolic interpolation, then Newton refinement on the band-limited cross-correlation for sub-sample accuracy. Frames of 3314 samples (2048-sample window, 69 ms at 48 kHz), a new reading about every 21 ms
  • Range 38-2200 Hz (E1 41.2 Hz to C7 2093 Hz). On synthesized sine and sawtooth tones the error is under 0.2 cents across that range
  • Silence (RMS under about -56 dBFS) and noise (no CMND dip under 0.2) show "Listening..." instead of a note
  • Display smoothing: median of the last 5 readings, a note shows after 2 consecutive readings, a jump of more than a semitone switches note after 2 readings, and 14 unvoiced readings (about 0.3 s) clear the display
  • Readout: note + octave, cents (rounded, + sharp / - flat), measured and target frequency, needle meter from -50 to +50 cents with a green +/-5 cent in-tune zone. Every line keeps its height, so nothing moves when a note appears
  • Instrument targeting (Listen mode): Chromatic (nearest note) or Guitar, Drop D, Bass, Ukulele, Violin; with a preset the nearest string is highlighted and cents are measured against it, so a string far out of tune still points the right way ("Way flat: tune up")
  • Reference tones target frequency computed from the MIDI note number: freq = A4 * 2^((midi - 69 + cents/100) / 12), shown to 2 decimal places in Hz
  • Quick-tuning presets: Guitar standard (E2 A2 D3 G3 B3 E4), Drop D (D2 A2 D3 G3 B3 E4), Bass (E1 A1 D2 G2), Ukulele (G4 C4 E4 A4), Violin (G3 D4 A4 E5)
  • Manual note selection from all 12 chromatic notes (C to B, sharps only) and octaves 1-6
  • Fine-tune slider from -50 to +50 cents in 1-cent steps, with a Reset button
  • Adjustable A4 reference pitch from 430 to 450 Hz in 1 Hz steps (default 440 Hz), used by both Listen and Reference tones
  • Four tones: Rich (additive synthesis of 4 sine OscillatorNodes at harmonics 1-4 with amplitudes 1.0, 0.5, 0.25, 0.12), Sine, Triangle, Square
  • Volume slider 0-100% (default 40%) driving a Web Audio GainNode
  • Note, octave, cents, and A4 changes retune the running oscillators live without stopping; changing the tone type swaps the oscillators immediately. The tone fades in and out over 15 ms to avoid clicks
How to use it
  1. Listen: press Start Tuner and allow microphone access when the browser asks
  2. Optionally pick your instrument (Guitar, Bass, ...) so the tuner targets the nearest string
  3. Play one string at a time and turn the peg until the needle sits in the green zone and it says In tune
  4. Press Stop Listening to release the microphone
  5. Reference tones: tap a string under Quick Tunings or choose a note and octave, press Play Tone, and tune until the beating between the two sounds disappears
Inputs
  • Live microphone audio in Listen mode (requires microphone permission)
  • Button and slider selections
Outputs
  • On-screen note, cents and frequency (Listen); a continuous tone through the speakers via the Web Audio API (Reference tones); no recording or file export
Limits and notes
  • Listen mode needs getUserMedia and AudioWorklet, which require a secure (HTTPS) page; without them the tool opens in Reference tones and says why
  • Detects one note at a time; strummed chords give no steady reading
  • Browsers that ignore the request to turn off voice processing may still apply noise suppression, which can weaken sustained notes
  • Microphone audio is analyzed in memory on the audio thread only; the code does not record, store or transmit it
  • Reference tones octave selector is limited to 1-6; note names use sharps only
  • A4 reference range is 430-450 Hz, so 415 Hz baroque pitch cannot be set
  • Mode, instrument, selected note, octave, A4 reference, and tone type persist in localStorage; cents offset and volume reset on reload

Frequently Asked Questions

How does the Online Instrument Tuner work?

In Listen mode the tuner reads your microphone in an AudioWorklet and runs the YIN pitch-detection algorithm about 47 times a second: it finds the period at which the signal best repeats, refines it to a fraction of a sample, and converts the frequency to the nearest note and its offset in cents using A4 (440 Hz by default, adjustable). In Reference tones mode it plays a steady tone at the exact frequency of the note you choose.

Is my microphone audio recorded or uploaded?

No. The audio is analyzed in memory on your device and discarded; nothing is recorded, stored or sent anywhere. Press Stop Listening or leave the page to release the microphone.

What instruments can I tune?

Presets cover guitar (standard and Drop D), 4-string bass, ukulele, and violin. You can also pick any note from octave 1 to 6 manually, so any instrument that can be tuned by ear to a reference pitch will work. Tap a string to hear its target note.

Can I adjust the A4 reference pitch?

Yes. The default is A4 = 440 Hz (concert pitch), and the slider adjusts it from 430 to 450 Hz in 1 Hz steps, which covers common orchestral references such as 442 Hz. You can also offset any note by -50 to +50 cents.

How do I tune by ear with this tool?

Play the reference tone for each string, then tune your instrument until the pitches match. When the frequencies are close, you will hear a wobbling effect (beating) that slows down and disappears as you reach the correct pitch.