Dream Sandbox · /dream/70-pitch-algo-compare

Pitch Compare

Three pitch detection algorithms running simultaneously — watch where they agree and where they diverge.

Autocorrelation
—
0% conf
YIN
—
0% conf
HPS
—
0% conf
Algorithm notes
■
ACFFirst ACF peak. Works well for pure tones; may have octave errors on complex signals.
■
YINCumulative mean normalized difference with aperiodicity check. ~15% fewer octave errors than ACF.
■
HPSHarmonic product spectrum (4 harmonics). Excellent for piano and strings; less reliable on sine tones.
■
ConsensusGold dashed cursor when ≥2 algorithms agree within 1.5 semitones. A faint piano tone plays when the consensus note changes. Demo uses a sawtooth (rich harmonics — ideal for HPS).
← back to dream sandbox
The dream lab — Karel Barnoski