How Pitch Detector Works

Last updated: 22 November 2026.

PitchDetector.com includes several kinds of tool: microphone measurements, numerical conversions, recording analysis and listening exercises. This page explains how the current implementation turns inputs into results and where those results need interpretation.

From microphone audio to a frequency

After you start a microphone tool and grant browser permission, the tool reads short audio frames through the Web Audio API. The shared pitch detector uses a repeating-waveform comparison based on the McLeod Pitch Method and its normalised square difference function. It looks for a plausible period rather than simply selecting the loudest frequency in a spectrum.

The current microphone analysis uses 4,096-sample frames and a typical search range of about 50–2,000 Hz. A level gate and periodicity threshold reject unsuitable frames. These settings define a search process, not a guarantee of accuracy throughout that range. A gap means no accepted estimate, not a valid zero-hertz note.

One sustained note is the intended input. Background tones, harmonics, simultaneous notes and irregular attacks can cause unstable readings or octave errors. Microphone processing and the browser’s audio system also affect what reaches the detector.

Converting frequency to a note and cents

The note calculations use twelve-tone equal temperament. With a chosen A4 reference, the MIDI-valued position of a positive frequency is 69 + 12 × log2(frequency / A4). Rounding selects the nearest note. Cents are calculated from the logarithmic frequency ratio to the relevant target; one semitone is 100 cents.

At A4 = 440 Hz, 440 Hz maps to A4 with zero cents offset, and 880 Hz maps to A5. A frequency of 442 Hz is approximately 7.85 cents above A4. These are mathematical reference examples, not measurements of a visitor’s recording.

Changing A4 changes the comparison grid, not the sound itself. In chromatic mode the target is the nearest note; a selected string or practice target can use a fixed note instead. Always check which reference a tool is using.

Summaries and vocal-range comparisons

Statistics such as mean, median and percentile range summarise the accepted voiced frames. They are influenced by the duration, input conditions and which frames passed the detector. A brief harmonic error can distort an extreme, so the lowest and highest observed readings should not automatically define a comfortable singing range.

Range and voice-type tools compare entered or captured endpoints with their stated reference patterns. An overlap comparison does not assess timbre, comfortable tessitura, technique, vocal health or every aspect of a professional voice classification.

Audio files, key, tempo and MIDI

  • Audio File Pitch Detector decodes a selected local recording and analyses pitch over time. A clean solo line is easier to interpret than a full mix.
  • Note Finder groups suitable monophonic detections into note events rather than promising complete sheet music.
  • Pitch to MIDI Converter represents detected monophonic note events as MIDI instructions. MIDI does not preserve the original recording or its instrument sound.
  • Song Key Finder compares spectral chroma with major/minor reference profiles. Its correlation values measure similarity, not the probability of a correct answer; modulations and ambiguous excerpts can produce competing candidates.
  • BPM Detector estimates pulse candidates. Half-time, double-time, changing tempo and irregular rhythm require listening and comparison.

Practice scores and listening exercises

Pitch matching, interval listening and note-recognition activities use the rules shown in the particular exercise. A score describes responses to those prompts. It does not diagnose hearing, certify absolute pitch or provide a validated overall assessment of singing ability.

Keep the task, reference, device and environment consistent when comparing attempts. Repeat an unusual result under suitable conditions before interpreting it as a meaningful change.

What a check can establish

For a reproducible check, record the reference tone, browser, device and tuning setting. At A4 = 440 Hz, a clean 440 Hz reference has an expected A4 label and an offset of zero cents. Record the observed number separately, along with whether the sample was accepted or unstable. Repeat with a tone that contains several harmonics to see whether the detector follows the same underlying pitch.

Numerical conversions can be checked with known inputs and independent arithmetic. Generated signals can check selected detector cases, while browser checks can establish whether controls and error messages work in the tested environment. These checks answer different questions. The tool changelog records changes to tools and their interfaces by release.

A successful reference example is not evidence that every voice, microphone, recording or browser has been independently validated. This page does not claim a published clinical validation, universal accuracy percentage or professional certification.

Processing and privacy

Local audio processing is separate from website delivery and any analytics services. Ezoic advertising is currently inactive on this website. The Privacy Policy explains the current services, browser storage and available privacy choices.

Read the Privacy Policy for data handling and choices, and the Disclaimer for appropriate reliance and safe use.

Report an unexpected result

Email support@pitchdetector.com with the exact tool URL, input mode, settings, browser, device and unexpected result. A reproducible, non-identifying example is more useful than a score alone. Do not send private recordings or sensitive information when a description will explain the issue. See the Contact page for details.

Scroll to Top