# BPM finder & key finder

Drop a song to measure its tempo and musical key, or tap along to any music you can hear. Then grab delay and reverb times for that tempo in one click. Your audio is analyzed on your own device.

## In short

Drop a song on the finder above and it reports the tempo to a tenth of a BPM and the key with its Camelot code, without uploading anything. At 120 BPM a beat lasts 60,000 ÷ 120 = 500 ms. When a song could be counted at two tempos, the detector leans toward 120 BPM, the centre that best matched 40 listeners’ taps in Ellis’s tests ([Ellis 2007](https://www.ee.columbia.edu/~dpwe/pubs/Ellis07-beattrack.pdf)); a song in A minor shows Camelot 8A, and its relative major, C major, is 8B ([Camelot wheel](https://mixedinkey.com/camelot-wheel/)).

## How the detection works

The file is decoded by your browser, mixed to mono and resampled. For tempo, the audio is split into short overlapping slices (about 6 ms apart) and the energy in 36 frequency bands is compared slice to slice; sudden increases mark note and drum onsets. The resulting “onset strength” curve is then compared with time-shifted copies of itself: when the shift equals one beat, the peaks line up and the match is strongest. The best match, refined to a tenth of a BPM, becomes the tempo.

For key, the analyzer measures how much energy falls on each of the twelve pitch classes (C, C♯, D … B) across the whole song and compares that profile with the classic Krumhansl–Kessler profiles for the 24 major and minor keys, which come from listening experiments on how strongly each note “belongs” in a key. The closest match wins, and the runner-up gap becomes the confidence figure. Keys that share the same notes — like C major and A minor — are the hardest to tell apart, so the relative key is shown as well.

In numbers: each candidate beat length is scored by how well the onset curve lines up with a copy of itself shifted by that length, and the score is multiplied by `exp(−½ · log₂(BPM ÷ 120)²)`, a bell curve on a logarithmic tempo axis centred on 120 BPM. It is the weighting Ellis ([2007](https://www.ee.columbia.edu/~dpwe/pubs/Ellis07-beattrack.pdf)) tuned on listeners’ taps, used here one octave wide. For key, the 12 chroma values are correlated with the Krumhansl–Kessler profile ([1982](https://doi.org/10.1037/0033-295X.89.4.334)) rotated to each of the 24 keys.

## Worked example: a 128 BPM house track in A minor

| What | Value | How it’s worked out |
| --- | --- | --- |
| One beat (quarter note) | 468.75 ms | 60,000 ÷ 128 |
| Dotted eighth delay | 351.56 ms | 468.75 × 0.75 |
| Sixteenth (reverb pre-delay) | 117.19 ms | 468.75 ÷ 4 |
| One bar of 4/4 | 1,875 ms | 468.75 × 4 |
| Tempo weight, 128 vs 64 BPM | 0.996 vs 0.663 | the bell curve above, so 128 is preferred to its half time |
| Camelot code | 8A | A minor on the Camelot wheel |
| Keys that mix smoothly | 7A, 9A, 8B | D minor, E minor and the relative major, C major |

## Limitations

- One tempo per file: a song that speeds up or switches feel is reported as an average, so trim the section you care about.
- Half and double time are a judgement call (see below); the detector picks one and the buttons switch it.
- Relative keys such as A minor and C major share all seven notes, so the analyzer can only go by emphasis — the relative key is printed alongside for that reason.
- Files shorter than about 4 seconds, silent files, and music without a steady pulse give no tempo; the key may still be found.
- Only the first 10 minutes of a file are analyzed.

## Sources

- [Daniel P. W. Ellis, “Beat Tracking by Dynamic Programming”, Columbia University, 2007](https://www.ee.columbia.edu/~dpwe/pubs/Ellis07-beattrack.pdf) — the onset-autocorrelation tempo method and its 120 BPM centre (τ₀ = 0.5 s, 1.4 octaves wide, tuned on taps from 40 listeners). Checked October 10, 2026.
- [Carol L. Krumhansl and Edward J. Kessler, “Tracing the dynamic changes in perceived tonal organization in a spatial representation of musical keys”, *Psychological Review* 89(4), 334–368, 1982](https://doi.org/10.1037/0033-295X.89.4.334) — the major and minor key profiles the key finder compares against. Checked October 10, 2026.
- [Mixed In Key, “Interactive Camelot Wheel: Compatible Keys”](https://mixedinkey.com/camelot-wheel/) — the Camelot codes: 8A is A minor, 8B is C major, 7A D minor, 9A E minor. Checked October 10, 2026.

## How to find the BPM of a song

There are two ways, and they work best together. **Automatic detection**: drop an audio file onto the left panel. Within a second or two you get the tempo, the key, the Camelot code DJs use for harmonic mixing, and a confidence reading. **Tap tempo**: if the music is playing somewhere you can’t grab a file from — a radio, a club, a video, a band rehearsal — tap the big pad (or press the space bar) on every beat. After four to eight taps the reading settles.

Whichever you use last fills the tempo box above the delay table, so you can go from “what tempo is this?” to “what delay time do I need?” without retyping anything. Hit *Open drum machine at this tempo* to start a beat at the song’s BPM with the 808 kick already tuned to the song’s key.

## Half time, double time and why detectors disagree

Tempo is partly a matter of perception. A trap beat can be counted at 140 BPM, with the snare on beat three, or at 70 BPM with the snare on two and four — both are “correct”. Drum & bass is written at around 174 BPM but many listeners nod along at 87. Automatic detectors, including this one, have to choose a level, so xx808 prefers tempos between roughly 70 and 180 BPM and checks whether the beats in between are as strong as the beats it picked. If you disagree with the choice, the *Half time* and *Double time* buttons switch instantly and update everything downstream.

| Style | Typical tempo | Often felt as |
| --- | --- | --- |
| Boom bap / classic hip-hop | 85–95 BPM | — |
| Reggaeton / dembow | 88–100 BPM | — |
| Pop | 95–130 BPM | — |
| House | 120–128 BPM | — |
| Techno | 125–140 BPM | — |
| Trap | 130–160 BPM | 65–80 (half time) |
| Dubstep | 138–142 BPM | 69–71 (half time) |
| Drum & bass / jungle | 165–178 BPM | 83–89 (half time) |

Ranges are typical, not rules — plenty of records sit outside them.

## Delay and reverb times from BPM

The table under the tool converts the current tempo into note lengths in milliseconds. A quarter note lasts 60,000 ÷ BPM milliseconds: 500 ms at 120 BPM. An eighth note is half that, a sixteenth a quarter. Dotted values are 1.5 times longer and triplets two-thirds as long. Set a delay plug-in to the 1/8 dotted value for the classic rhythmic echo, or use the 1/16 or 1/32 value as a reverb pre-delay so the dry hit stays clear before the tail arrives. The hertz column is handy for syncing an LFO or tremolo by ear on gear without tempo sync.

## Tips for accurate results

- Songs with a steady drum beat give the most reliable tempo. Rubato piano, ambient music and live recordings that speed up will read as an average.
- For key detection, choose a section with harmony — a long drum intro or an a cappella breakdown can mislead it.
- When tapping, tap on the kick and snare rather than the hi-hats, and keep going for at least eight taps.
- If the result looks wrong, check the candidate list under the chroma bars: the alternative tempos the detector considered are listed there.

## Frequently asked questions

### How accurate is the BPM detection?

On the synthetic test tracks it is checked against — click tracks and drum patterns from 70 to 174 BPM — it lands within 1 BPM of the true tempo, so allow for about 1 BPM either way. The tenth of a BPM on screen is display detail, not a promise, and there is no published test on real songs yet. The most common “error” is choosing half or double the tempo you would count, which is why one-click half/double buttons are there; if you are not sure which one you hear, tap along to check.

### Does it work on songs that change tempo?

It reports a single average tempo for the file. For songs with tempo changes, trim the section you care about or use tap tempo for each part.

### What is the Camelot code?

The Camelot wheel numbers the 24 keys so that harmonically compatible keys sit next to each other: 8A is A minor and 8B is C major. DJs mix from one code to the same number or one step either way to keep transitions in key.

### Is my file uploaded?

No. Decoding and analysis happen in your browser. Nothing about the file — not even its name — is sent to us.

### Which file formats can I use?

MP3, WAV, AAC/M4A and FLAC work in all modern browsers; OGG and Opus in most. If a format won’t open, convert it to WAV or MP3 first.

### Why does the key say minor when the song sounds major?

Relative keys (for example A minor and C major) use exactly the same notes, so the analyzer relies on which notes are emphasized. Check the relative key shown underneath — one of the two is almost always right.

### Can I find the BPM without a file?

Yes — use the tap pad. It works with a mouse, touch screen or keyboard (space or T), resets itself after a two-second pause, and ignores the odd mistimed tap. There is also a [dedicated tap tempo page](https://xx808.com/tap-tempo/).

Tempo and key are automatic estimates. Always trust your ears when they disagree with the numbers.

Last updated: October 15, 2026

Camelot is a trademark of Mixed In Key LLC. xx808 shows Camelot codes as a key reference for DJs and is not connected with that company.

Web page: https://xx808.com/bpm-finder/
