Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Music Information Retrieval›Pitch Detection Algorithm
Machine learningFeature extraction

Pitch Detection Algorithm

Pitch Detection and Fundamental Frequency Estimation Algorithm · Also known as: f0 detection, fundamental frequency tracking, monophonic pitch extraction

Pitch detection (or fundamental frequency estimation) is the task of automatically determining the perceived pitch of a monophonic (single-source) audio signal at each moment in time. Formalized by de Cheveigné and Kawahara (2002) through the YIN algorithm, it is foundational to music and speech processing. Pitch detection enables vocal analysis, music transcription, instrument tuning, and speech analysis. Monophonic pitch is unambiguous; polyphonic pitch detection is fundamentally harder and a distinct problem.

ScholarGate
  1. Machine learning
  2. v1
  3. 3 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Pitch Detection Algorithm
Automatic Music Transcri…Beat TrackingMelody ExtractionMusical Key DetectionVocal SeparationAudio FingerprintingChord RecognitionHarmonic Analysis in Mus…Instrument RecognitionTempo Estimation

+1 more

When to use it

Use pitch detection for monophonic sources: solo singing, solo instruments, speech, bird songs. It works well on clean, isolated sources with clear periodicity. Avoid it for polyphonic music (multiple simultaneous sources), highly noise-corrupted audio, or sources with weak or missing fundamentals.

Strengths & limitations

Strengths
  • Accurate on monophonic sources; state-of-the-art systems achieve cent-level error on clean audio.
  • Fast and efficient; real-time pitch detection is practical.
  • Works across diverse sources: instruments, voices, speech.
  • Enables downstream tasks: transcription, vocal analysis, speech processing.
Limitations
  • Fundamental frequency ambiguity: low-frequency sources may be perceived at 2x the fundamental.
  • Octave errors: detecting f0 vs 2*f0 remains challenging on some sources.
  • Noise sensitivity: audio quality significantly impacts accuracy.
  • Polyphonic pitch detection is an open and much harder problem; standard monophonic algorithms fail on multiple simultaneous sources.

Frequently asked

What is the difference between pitch and frequency?

Frequency is a physical property (Hz). Pitch is the perceptual attribute. A note at 440 Hz sounds the same whether played by a piano or violin due to harmonic structure and timbre.

Why is octave error a problem in pitch detection?

An octave is a doubling of frequency (f0 vs 2*f0 sound like the same note at different heights). Some algorithms confuse the two; detecting f0 vs 2*f0 requires additional cues.

Can pitch detection work on polyphonic music?

Standard pitch detection cannot reliably handle polyphony. Polyphonic pitch detection is an open research problem requiring specialized models that can separate multiple f0s simultaneously.

How accurate must pitch detection be for practical use?

For music transcription, 50 cents error is acceptable (within a quarter-tone). For scientific analysis or tuning, 5–10 cents is expected. Tolerance depends on application.

Sources

  1. de Cheveigné, A., & Kawahara, H. (2002). YIN, a fundamental frequency estimator for speech and music. The Journal of the Acoustical Society of America, 111(4), 1917-1930. DOI: 10.1121/1.1458024 ↗
  2. McLeod, P., & Wyvill, G. (2005). A smarter way to find pitch. In Proceedings of the International Computer Music Conference. link ↗
  3. Mauch, M., Cannam, C., Bittner, R., Fazekas, G., Salamon, J., Wade, J., & Benetos, E. (2015). Computer-aided Research on Monophonic Singing. In Frontiers in Psychology. link ↗

How to cite this page

ScholarGate. (2026, June 3). Pitch Detection and Fundamental Frequency Estimation Algorithm. ScholarGate. https://scholargate.app/en/music-information-retrieval/pitch-detection-algorithm

Related methods

Automatic Music TranscriptionBeat TrackingMelody ExtractionMusical Key DetectionVocal Separation

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Automatic Music TranscriptionMusic Information Retrieval↔ compare
  • Beat TrackingMusic Information Retrieval↔ compare
  • Melody ExtractionMusic Information Retrieval↔ compare
  • Musical Key DetectionMusic Information Retrieval↔ compare
  • Vocal SeparationMusic Information Retrieval↔ compare
Compare side by side →

Referenced by

Audio FingerprintingAutomatic Music TranscriptionBeat TrackingChord RecognitionHarmonic Analysis in MusicInstrument RecognitionMelody ExtractionMusical Key DetectionTempo EstimationTimbre AnalysisVocal Separation

Similar methods

Melody ExtractionTempo EstimationChord RecognitionAutomatic Music TranscriptionMusical Key DetectionBeat TrackingInstrument RecognitionHarmonic Analysis in Music

Related reference concepts

Temporal Processing and Pitch PerceptionTone and IntonationSpeech Perception and IntelligibilityAcoustic Cues and FormantsPsychoacoustics and Auditory PerceptionFrequency, Intensity, and Loudness Perception

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Pitch Detection Algorithm (Pitch Detection and Fundamental Frequency Estimation Algorithm). Retrieved 2026-07-21 from https://scholargate.app/en/music-information-retrieval/pitch-detection-algorithm · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Alain de Cheveigné
Subfamily
Feature extraction
Year
2002
Type
Fundamental frequency estimation
Related methods
Automatic Music TranscriptionBeat TrackingMelody ExtractionMusical Key DetectionVocal Separation
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account