Audio & Video

Check a tempo estimate with a known click track

·

A tempo estimate depends on which recurring pulse the detector finds. Begin with a track whose click spacing is known to see how the result separates an adjacent interval from its slower multiples.

BPM Detector

Measure the 96 BPM click track

Choose Load 96 BPM example and Estimate tempo. The source is ten seconds of mono PCM with successive attacks 0.625 seconds apart. The result shows 96 BPM, 16 detected onsets and strong repetition.

The candidate table also shows 48 BPM. At that interval, every second click aligns. Check Adjacent support. It is 1.00 for 96 and 0.00 for 48 in the example.

Known click spacing and measured candidates
0.625 seconds per click

Web Audio API decodeAudioData and decoding sample rates

Choose the section and candidate range

Set Start to 2 and End to 8 and estimate again. The detector compares the onsets inside those six seconds. Short attacks on either side of the interval are outside the analysis.

Raise Minimum BPM to 70 to remove the half-time candidate from this search. Compare a few representative sections if the track changes tempo. An interval with silence, sustained sound or an irregular rhythm may show no reliable estimate.

Listen for the estimated pulse

Prepare comparison clicks to hear eight seconds at the first candidate. Play the source separately and count whether the two pulses feel aligned. You can also use Tap tempo for a manually chosen pulse.

Download tempo report saves the selected start and end, decoded channel count, analysis sample rate and candidate scores. Those scores compare patterns in the selected interval. They do not assign a probability that the estimate is the musical beat.

Common questions

Why can two files of the same song give different BPM estimates?

Different edits, selected intervals or balances of attacks can emphasize different subdivisions. Compare adjacent support and try a representative section.

Does the detector change the original sample rate?

The browser decodes local analysis PCM at 16 kHz. The original file remains the source for playback and is untouched.

Sources

Put it into practice.

Related guides