Signal Processing Concepts and Engineering Insights. 


Explore signal processing concepts, algorithm comparisons, and practical engineering insights.
Topics include FFT vs STFT, FRF analysis, filtering techniques, and other signal processing methods used in real engineering workflows.

Statistical Signal AnalysisHow Pitch Detection Algorithms Work (Autocorrelation vs FFT)

How Pitch Detection Algorithms Work (Autocorrelation vs FFT)

Pitch detection is the process of finding the fundamental frequency of a signal.

It tells us

  • The musical note
  • The vibration rate
  • The rotation speed

How Pitch Detection Algorithms Work (Autocorrelation vs FFT)

What Is Pitch?

Pitch corresponds to the fundamental frequency f0


Strictly speaking, pitch and fundamental frequency are different, but for convenience, we describe it in terms of the fundamental frequency.

  • Fundamental frequency = what physically exists in the signal (physical and objective)
  • Pitch = what humans perceive from the signal (perceptual and subjective)


Example

  • 440 Hz → musical note A
  • 100 Hz → machine vibration


Intuition

“How high or low a sound is”


Two Main Approaches

Pitch detection is commonly done using

  1. Autocorrelation (time domain)
  2. FFT (frequency domain)


Method 1: Autocorrelation

Idea

Autocorrelation compares a signal with a delayed version of itself

“Does the signal repeat?”


Mathematical form

Autocorrelation

How It Works

  1. Shift signal
  2. Multiply signals
  3. Signal summation
  4. Find peak


The first peak → fundamental period

Fundamental FrequencyFundamental Frequency

Strengths

  • Good for noisy signals
  • Works well for periodic signals


Weaknesses

  • Less precise for complex signals
  • Can detect wrong peaks
  • High computational cost, O (N2)


Method 2: FFT-Based Detection

Idea

Convert signal to frequency domain:

"Find the largest value."


How It Works

  1. Apply FFT
  2. Find dominant frequency


Strengths

  • Accurate frequency resolution
  • Good for harmonic signals
  • Relatively fast computation, O (N log N)


Weaknesses

  • Sensitive to noise
  • Requires sufficient resolution


Key Difference

FeatureAutocorrelationFFT
DomainTime domainFrequency domain
OutputsPeriodic timeFrequencies
Noise RobustnessHighMedium



Real-World Example

Voice Signal

  • Autocorrelation → detects pitch period
  • FFT → detects harmonic structure


Machine Vibration

  • Autocorrelation → rotation period
  • FFT → frequency peaks


Which One Should You Use?

Use Autocorrelation

  • Noisy signals
  • Period detection


Use FFT

  • Clean signals
  • Spectral analysis


Best approach: Use both together


Autocorrelation-based pitch detection is especially effective in scenarios where the fundamental frequency is weak or missing

Harmonic signals having 400Hz, 600Hz, and 800Hz (missing fundamental freqeuncy 200Hz)

Harmonic signalsHarmonic signals: sin(400Hz) + sin(600Hz) + sin(800Hz)


FFT of harmonic signals: 400, 600, and 800Hz peaks, no fundamental frequency(pitch) appears

FFT of harmonic signals: 400, 600, and 800Hz peaks, missing fundamental frequency 200Hz


Autocorrelation: Period of highest peak is 0.005sec, Fundament frequency (Pitch) is 1/0.005 = 200HzAutocorrelation: Period of highest peak is 0.005sec, Fundament frequency (Pitch) is 1/0.005 = 200Hz


Key Takeaways

  • Pitch = fundamental frequency
  • Autocorrelation → time-based detection
  • FFT → frequency-based detection
  • Best results come from combining both 


Conclusions

Pitch detection aims to find the fundamental frequency (f₀) of a signal, which determines its perceived pitch or repetition rate.

  • Two main methods are used: autocorrelation (time domain) and FFT (frequency domain).
  • Autocorrelation is robust to noise and effective for detecting periodicity, while FFT provides higher frequency resolution and clearer spectral information.
  • Each method has strengths and limitations, so relying on only one can lead to errors in certain conditions.

In summary,
accurate pitch detection is best achieved by combining autocorrelation and FFT, leveraging both time-domain and frequency-domain insights.


Suggested Further Reading

##You may also find these topics helpful:

Terms and conditions     Privacy policy


PANAX SYSTEM Co., Ltd.  |  #103, 20, Yuseong-daero 1184beon-gil, Yuseong-gu, Daejeon 34109, Republic of Korea

Tel: +82-42-864-1325  |  E-mali: malmijal@panaxsyste.com  |  CEO : WonSeok Yun

Business Registration No. : 318-81-06618  |  Mail-Order License No. : 2015-Daejeon Yuseong-0060  |  Hosting Provider: IMWEB Co., Ltd. 

Copyright ⓒ 2026 PANAX SYSTEM Co., Ltd. All rights reserved.