Nothing analyzed yet.
Reference Tone Generator
—
How pitch detection works in this tool
The tool uses an algorithm called NSDF (Normalized Square Difference Function), a refined form of autocorrelation. In short: it takes a short slice from the sustained portion of each uploaded file — skipping the attack transient — and looks for the point at which the signal most closely repeats itself. That repetition period corresponds to the fundamental frequency, which becomes the Hz reading.
This works reliably on sounds with a clear, sustained fundamental. Metallic percussion — gamelan bars, bells, bonang — tends to produce accurate results, as do most sustained pitched instruments. The Detection Range setting constrains which frequencies the algorithm considers, which reduces the chance of locking onto a harmonic instead of the fundamental.
Some materials are harder. Muted or fast-decaying sounds — bamboo instruments like jegog, for instance — have little sustained energy for the algorithm to analyze. Large gongs and bells can be ambiguous because their perceived pitch doesn't always align with their lowest spectral partial. Instruments with unusually dense or inharmonic overtone structures may produce inconsistent readings. In any of these cases, the Hz field in each tone row can be edited manually, and the Reference Tone Generator is there to verify by ear.
Interactive essay How Machines Hear Pitch The five detection methods evaluated for this tool, walked through with playable demos and tested against four instruments — including the inharmonic bronze that trips most of them up. No maths required. Headphones on.Credits & Inspirations: This project is inspired by Latent Sonorities and Leimma and a conversation between Morgan Sully and Laurel Pardue. It was originally built to be used with gamelanic instruments in mind. Check out the GitHub repository for detailed technical notes on the pitch detection methods. Issues and pull requests are welcome.