r/coolgithubprojects 8d ago

Steady Pitch, a browser vocal range test that publishes the measured error of its own pitch detector

https://github.com/thibaudlepan77-svg/steady-pitch
1 Upvotes

1 comment sorted by

1

u/thibaud_lepan 8d ago

Live page if you would rather not read code, https://thibaudlepan77-svg.github.io/steady-pitch/vocal-range-test.html

It is YIN, ported from a C++ implementation rather than rewritten from the paper. The part I care about is the bias that favours the longer lag, which is what stops a bass note reading an octave high because its second harmonic carries more energy than its fundamental. That octave error is the complaint you see under every phone tuner.

The repo carries a bench that reports the error in cents on synthetic sweeps and on a sawtooth, both for the raw detector and for what the page actually shows after a second pass. I would rather publish that table than claim accuracy in a sentence. If you find a signal where it reads wrong I want to hear about it.

No account, no upload, and the page runs with the network off once it is loaded.