How the tempo is measured
The signal is first mixed to mono and resampled to 11,025 Hz. That is plenty to locate rhythmic attacks and cuts computing time by four. The analysis then runs in three steps.
- Onset curve. The spectrum is computed every 11.6 ms. Whenever energy jumps in one or more frequency bands (a kick, a hi-hat, a stabbed chord) the curve peaks.
- Period search. Autocorrelation of that curve reveals the most regularly recurring interval. Every tempo in the chosen range is tested in 0.25 BPM steps, taking the first eight multiples of the period into account, then refined to 0.01 BPM around the best candidate.
- Stability check. The track is cut into overlapping 20-second windows. Each window gives its own tempo; the percentage shown is the share of windows that match the overall tempo within 1.5%.
Reading the result
| What you see | What it means | What to do |
|---|---|---|
| Agreement above 80% | Steady tempo, typical of a computer-produced track. | Use the rounded value in your DJ software. |
| Many “half or double” windows | The groove reads at two speeds (breakbeat, trap, drum and bass, dubstep). | Listen, then use “÷ 2” or “× 2”, or rerun with a narrower range. |
| Low agreement | Drifting tempo, beatless intro, live recording, rhythm change. | Tap the tempo while listening with the “Tap along” button. |
Known limits
- The tempo is an estimate. No algorithm can reliably choose between 85 and 170 BPM without knowing the style: that call is yours.
- Only the first 15 minutes are analysed to spare phone memory. For a full mix, a single tempo is not meaningful anyway.
- Triple-metre tracks (waltz, 6/8) may come out at two-thirds or three-halves of the felt tempo.
Next steps
Once you know the tempo, the set length calculator turns transitions counted in bars into seconds, and the Camelot key converter lists the keys that blend cleanly. To check a tempo by ear, use the metronome with tap tempo.