FLXCode Pitch Detector

FLXCode apps

Appearance

Pitch Detector

Sing, hum or play something and see which note it is, with its frequency. Notes you hold are kept in a short list.

Press Start and allow the microphone. Sing, hum, whistle or play something. Nothing is recorded or uploaded.

Tuning reference

No ads. No account. Nothing you sing or play is recorded or uploaded. Check it. We count page events with a daily code.

Problem or idea? Email us

Quick start

  1. Press Start listening and allow the microphone.
  2. Sing, hum, whistle or play one note and hold it for a second.
  3. Read the note and frequency. The strip below shows the last 8 seconds.
  4. For your range, glide slowly from your lowest to your highest note.
  5. Press Stop microphone when you are done.

Numbers this uses

  • A4 = 440 Hz by default, editable from 415 to 466 Hz under Tuning reference.
  • Note names use scientific pitch notation: C4 is middle C, 261.63 Hz, and a note up one octave doubles its frequency.
  • Detection: YIN on 2048 samples, 25 readings a second, clarity at least 0.85 to count, from 50 Hz to 2.2 kHz.
  • A note joins the list when it reads the same for 8 readings in a row (about a third of a second) at a clarity of 0.9 or more.
  • Voice ranges (rough, from common choral and textbook values): bass E2 to E4, baritone A2 to A4, tenor C3 to C5, alto F3 to F5, mezzo-soprano A3 to A5, soprano C4 to C6.

The octave above middle C

NoteFrequency
C4261.63 Hz
C#4277.18 Hz
D4293.66 Hz
D#4311.13 Hz
E4329.63 Hz
F4349.23 Hz
F#4369.99 Hz
G4392.00 Hz
G#4415.30 Hz
A4440.00 Hz
A#4466.16 Hz
B4493.88 Hz

The A above middle C is 440 Hz and the next A up is 880 Hz.

Voice types and their ranges

VoiceLowestHighest
bassE2 (82 Hz)E4 (330 Hz)
baritoneA2 (110 Hz)A4 (440 Hz)
tenorC3 (131 Hz)C5 (523 Hz)
altoF3 (175 Hz)F5 (698 Hz)
mezzo-sopranoA3 (220 Hz)A5 (880 Hz)
sopranoC4 (262 Hz)C6 (1047 Hz)

These ranges overlap a lot. Where your voice sits comfortably matters more than the very top and bottom you can reach.

Worked examples

Which note is a frequency? semitones from A4 = 12 × log2(f ÷ 440), rounded to the nearest whole number:

FrequencyNoteOff by
55 HzA10 cents
196 HzG30 cents
261.63 HzC40 cents
330 HzE4+2 cents
523.25 HzC50 cents
1000 HzB5+21 cents
2000 HzB6+21 cents

A tone at 432 Hz reads as A4 and −32 cents, because it sits a little under A4 = 440 Hz. Set A4 to 432 under Tuning reference and it reads as A4 and 0 cents.

When you see "No clear pitch"

  • Speech, breath and whispering have no steady pitch, so there is nothing to name. Sing or hum a vowel instead.
  • Several notes at once. Chords and recorded music mix pitches, and the method follows one at a time.
  • Too quiet. Move closer. Below about −54 dBFS the page treats the input as silence. The mic test shows the level.
  • Fan or street noise on top of a soft note. Sing louder, or turn the noise down.
  • Want to see why? The spectrogram shows the harmonics of what you sang.

How it works

The page compares a short slice of the waveform with a copy of itself shifted by different amounts. The first shift where the two nearly match is one period of the note, and 1 ÷ period is the frequency. This is the YIN method. A parabola through the best point adds sub-sample accuracy, and the median of the last five readings steadies the display. A note is then rounded to the closest key and the leftover is shown in cents.

The page asks the browser to switch off echo cancellation, noise suppression and auto gain, so that a held note is not bent or gated before it is measured.

Looking for the frequency of a note? The note frequency chart lists every note from C0 to B8 with a play button and CSV download.

FAQ

What note is this sound?

Press Start, play, sing or hum it, and hold the note for a second. The big letters show the note and octave, like A4, with the frequency under them. If the display says no clear pitch, the sound is noise, speech or several notes at once.

Can it find the notes in a chord or a song?

No. It follows one note at a time. A chord, a full band or a song with a backing track has several pitches at once, and the detector either picks one or gives up. For a chord, play the notes one by one.

Which octave number is middle C?

Middle C is C4 here, which is 261.63 Hz. This is scientific pitch notation. Some keyboards and software call the same key C3 or C5, so the octave number can differ between programs while the pitch does not.

How do I find my vocal range with it?

Sing or hum slowly from the lowest note you can hold up to the highest, holding each note for about a third of a second. The page keeps the lowest and highest of those and names the closest typical voice type. A few notes in a quiet room say little. Do it a few times on different days.

Why does it jump an octave?

Notes with strong overtones, a breathy voice or a very low note can make the second or third harmonic look like the main pitch. Hold the note longer, sing with a clearer tone, or move a little closer to the microphone.

What is the difference between this and the online tuner?

The online tuner is for setting an instrument to a target, with a needle and in-tune light. This page is for finding out what a note is, and keeps a short strip of the notes you made. Both use the same pitch method.

Which range of notes can it hear?

From about 50 Hz (a little above G1) to 2.2 kHz (about C#7). Lower notes need more samples than a quick display can use, and above that the detection gets unreliable. A whistle usually falls inside this range.

Is my voice recorded or uploaded?

No. The pitch is worked out in your browser. Nothing is recorded, the notes and range stay in this tab, and they disappear when you reload. We only count events like "started listening" with a daily code.

More from FLXCode

Share Pitch Detector