BPM finder
Drop a song, a loop or a beat: its tempo, its beats on the waveform, a click on them to check it by ear. Or tap the tempo in.
Tap tempo
Space or T taps too; a pause of 2 s starts over
Nothing is uploaded. Everything runs in this tab with @audio/beat.
A BPM finder that shows its beats
A tempo on its own is hard to trust. This page draws the beats it found over the sound's waveform and plays them as a click with the file, so a wrong reading shows and is heard: marks that slide off the hits, a click that drifts from the drums. It runs @audio/beat in your browser: @audio/onset measures the onsets as spectral flux1, @audio/beat-tempo finds the beat period with a comb over their autocorrelation23, and @audio/beat-track places the beats by dynamic programming4. The tempo is the even grid that fits those beats best, to a tenth of a BPM, so a loop made at 127.5 reads 127.5.
Half and double time
Every tempo detector meets the same question: is it 87 or 174, 70 or 140? Both are in the music; which one is the tempo depends on how you count. The page gives its reading with the half and the double beside it. Press the one you count: the beat marks and the click change with it.
Tempo over time
The sound is also read in stretches of 10 seconds, 2.5 seconds apart. Where they agree, the tempo is steady and one grid of beats runs through the track; where a run of stretches holds another tempo, the page says the tempo changes, gives each part's tempo and lays each part its own grid. Stretches with no clear beat, an intro or a break, are left out of the line.
The key of the same song, its Camelot code and its chords: the Key finder.
Limits
- Music without a steady pulse (free time, rubato, much ambient music) has no single tempo. Where fewer than a quarter of its 10-second stretches reach a beat clarity of 30 %, the page says so and gives no number.
- The time signature and the first beat of the bar are not measured.
- Tempo is searched between 60 and 200 BPM; slower or faster music reads at its double or half, which the buttons give.
- A held chord of pure sine tones, a test signal with no attack at all, can read as a beat: the spectrum of steady tones still flickers from frame to frame at a fixed rate.
References
- S. Dixon, “Onset Detection Revisited,” Proc. DAFx 2006: spectral flux.
- M. E. P. Davies, M. D. Plumbley, “Context-Dependent Beat Tracking of Musical Audio,” IEEE TASLP 15(3), 2007: the comb over the autocorrelation, the Rayleigh weighting of the period, the adaptive threshold this page measures beat clarity after.
- E. D. Scheirer, “Tempo and Beat Analysis of Acoustic Musical Signals,” JASA 103(1), 1998.
- D. P. W. Ellis, “Beat Tracking by Dynamic Programming,” Journal of New Music Research 36(1), 2007.
Questions
How does it find the tempo?
It measures how much the spectrum rises from one frame to the next, every 512 samples (11.6 ms at 44.1 kHz: spectral flux), finds the beat period at which those onsets repeat most (a comb over their autocorrelation, after Davies and Plumbley), and places the beats where the onsets are strongest (dynamic programming, after Ellis). The tempo shown is the even grid that best fits those beats, to a tenth of a BPM. Each 10-second stretch, every 2.5 seconds, is read the same way: that is the tempo over time.
Why is it half or double what I expect?
A beat can be counted at more than one speed: a groove at 87 BPM with hi-hats on every eighth note also fits 174, and drum and bass at 174 is often felt at 87. The detector leans towards tempos near 120 and can land on either. The half and the double stand beside the tempo: press the one you count, and the marks and the click follow it.
How sure is it?
Two things say it. Beat clarity is how much of the sound's onset strength repeats one beat later. The click tracks and drum loops this page is tested on read 64 to 83 %, five songs with drums 37 to 79 %, a recorded interview and a blackbird's song 15 % at most. Where fewer than a quarter of the stretches reach 30 %, the page gives no tempo rather than a guess. Over time says whether the tempo holds through the track. Then check by ear: play the file with the click on, and a wrong tempo runs away from the music within a few bars.
Does it follow a change of tempo?
A change that holds, as from 100 to 140 BPM halfway through a track, reads as Changes: each part's tempo, where it starts to within a couple of seconds, and an even grid of beats of its own. A gradual speeding up shows in the tempo over time as a slope and is cut into steadier parts, each with an even grid. Rubato is not followed beat by beat.
Does it find the time signature or the first beat of the bar?
No. Nothing here measures how many beats make a bar or which beat is the first: every beat is marked alike. Count the bar yourself against the click.
How does tap tempo work?
Tap the button, or press Space or T, on the beat. The tempo is the median gap of your last eight taps, so one early or late tap does not move it; the ± figure is how far the tempo of each gap strays. A pause of two seconds starts over. Tap along while the file plays to set your count beside the page's.
Is my music uploaded?
No. The file is decoded and analysed in this tab, by @audio/beat, which loads from esm.sh; the sound never leaves your device.
More audio tools
- Extract audio from video
- Remove or replace video audio
- Audio converter
- Loudness meter and normalizer
- Noise remover
- Remove silence from audio
- Wow and flutter fixer
- Transcribe audio to text and subtitles
- Key finder
- Vocal remover
- Stem splitter
- Pitch and tempo changer
- MIDI to MP3
- Audio to MIDI converter
- Tuner
- Metronome
- Tone generator
- Speech prosody editor
- Audio recorder
- Lossless audio checker
- Spectrogram
- Room and speaker measurement
- Audio latency test