How the key finder works
A key is a home note plus a set of notes that belong with it. To find it, the tool listens for which notes the song uses and how much, then asks which key would produce that pattern.
- Pitch profile. The song is split into short overlapping slices and each slice is turned into a spectrum. The tonal peaks in the spectrum are folded onto the 12 note names, C to B, across six octaves. The result is a 12-bar profile: the chart above.
- Tuning. Before folding, the tool measures how far the song sits from A = 440 Hz and corrects for it, so a song tuned a quarter-tone flat is not read as the key next door.
- Matching. The profile is compared with the Krumhansl–Schmuckler key profiles, which come from listening experiments that measured how well each note fits a given key. They are rotated to all 12 home notes in major and minor, and the closest of the 24 wins.
The analysis gives the same answer every time for the same file, and all of it happens in your browser. Once you know the key, you can take the song into the lyric video maker with the button above, or check its tempo with the BPM finder.
When the key finder can be wrong
- Relative keys. A major key and its relative minor use the same seven notes. If a song sits between them, the scores are close and the result says so.
- Key changes. The finder reports one key for the whole file. A song that modulates for the last chorus will lean toward whichever key lasts longer.
- Modes and riffs. Music in Dorian or Mixolydian, or built on a two-chord loop, does not fit major or minor cleanly.
- Mostly drums. With few pitched notes there is not much to go on. If there are none at all, the tool tells you instead of guessing.
The Camelot wheel
DJs use the Camelot codes to mix in key: keep the same number, move one step either way, or switch between A and B on the same number.
| Code | Major key | Code | Relative minor |
|---|---|---|---|
| 1B | B major | 1A | G♯ minor |
| 2B | F♯ major | 2A | E♭ minor |
| 3B | D♭ major | 3A | B♭ minor |
| 4B | A♭ major | 4A | F minor |
| 5B | E♭ major | 5A | C minor |
| 6B | B♭ major | 6A | G minor |
| 7B | F major | 7A | D minor |
| 8B | C major | 8A | A minor |
| 9B | G major | 9A | E minor |
| 10B | D major | 10A | B minor |
| 11B | A major | 11A | F♯ minor |
| 12B | E major | 12A | C♯ minor |