How accurate is our key finder?

We ran the finder on 80 clips with known keys and scored it the same way academic key-detection benchmarks do. It named the exact key 65% of the time. Tunebat's free mode got 58% on the same files. Test run on 24 November 2026.

Results

Clipsbpmkeys exactbpmkeys MIREXTunebat free exactTunebat free MIREX
Electronic (40)60%67%55%61%
Pop, rock and other (40)70%80%60%70%
All 8065%74%58%65%

The scores are for the version that runs on this site, in your browser. A classic template-matching method (Krumhansl–Kessler key profiles) scored 46% exact on the same clips, which gives a sense of how hard the set is.

What the numbers mean

How the confidence label helps

The finder labels each answer by how sure the model is. On this test, 54% of clips got a high confidence label, and those were exactly right 84% of the time. When confidence is lower, the finder shows a second guess; the right key was one of the two shown for 80% of all clips. These two figures come from the full-precision reference run, which matches the browser version on 79 of 80 clips.

The test set

Every tool received the same audio files. Tunebat was tested in its free mode, uploading each file and recording the key it reported.

Tempo

On 39 of the pop clips with a known tempo, the BPM was within 4% of the reference for 34 (87%). Another 3 came out at half, double or 3:2 of the reference, which the ÷2 and ×2 buttons fix. One solo piano piece had no steady beat and got no reading; for music like that, use tap tempo.

Limits of this test

The model behind it

Key detection uses MusicalKeyCNN, an open-source convolutional network (MIT licence) based on the design by Korzeniowski and Widmer (2018). It reads a constant-Q spectrogram of the audio and outputs a score for each of the 24 keys. We run it in your browser with weights stored at half precision to keep the download under 1 MB; the half-precision version changed one answer out of 80 compared with the original. Tempo uses the open-source music-tempo library.

Reproduce it

  1. Download the GiantSteps Key dataset and collect 30-second previews for a list of songs with known keys.
  2. Drop the files into the BPM and key finder and use Download CSV to save the results.
  3. Score each answer as exact, fifth, relative, parallel or other, and average the MIREX weights. Run the same files through any other tool you want to compare.

Found a song where the finder is wrong? Tell us. Wrong answers are how the next test set gets built.