Normalized autocorrelation pitch detection (baseline)
import autocorrelation from '@audio/pitch-autocorrelation'
Normalized autocorrelation — the simplest pitch estimator. Educational baseline.
let result = autocorrelation(samples, { fs: 44100 })
| Param | Default | |
|---|---|---|
fs |
44100 |
Sample rate (Hz) |
threshold |
0.5 |
Minimum normalized autocorrelation value to accept |
Use when: Learning, quick prototypes, signals with strong dominant periodicity and low noise.
Not for: Production — octave errors are common without additional heuristics.
Ref: Rabiner, "Use of autocorrelation analysis for pitch detection", IEEE TASSP 1977.
Complexity: .
Part of @audio/pitch — the pitch family umbrella. This README is generated from the umbrella docs.
MIT © audiojs