@audio/pitch-autocorrelation
v1.0.1
Published
Normalized autocorrelation pitch detection (baseline)
Downloads
534
Readme
@audio/pitch-autocorrelation

Normalized autocorrelation pitch detection (baseline)
npm install @audio/pitch-autocorrelationimport 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: $O(N^2/4)$.
Part of @audio/pitch — the pitch family umbrella. This README is generated from the umbrella docs.
MIT © audiojs
