The Camelot Wheel and Harmonic Mixing
How the 24 keys map to Camelot codes 1A to 12B, which moves stay in key, and how a tempo change by resampling shifts a track's code.
The Camelot wheel gives each of the 24 major and minor keys a code from 1A to 12B, so you can pick tracks that share notes without reading music. The key finder prints that code under "Camelot Code & Relative". This guide goes through the mapping the tool uses, the moves that stay in key, and what happens to a code when you change a track's tempo by resampling.
How do 24 keys become 12 numbers and two letters?
The letter is the mode: A for minor, B for major. The number is the position on the circle of fifths, and each major key shares its number with its relative minor. Relative keys use the same seven notes, with the minor starting three semitones below the major.
These are the pairs the key finder reports:
- C Major is 8B and A Minor is 8A.
- G Major is 9B and E Minor is 9A.
- D Major is 10B and B Minor is 10A.
- F Major is 7B and D Minor is 7A.
Going up a fifth adds one to the number. C Major 8B, G Major 9B, D Major 10B, A Major 11B, E Major 12B, then B Major comes round to 1B. The wheel wraps, so 12 sits next to 1.
The tool spells every black-key note as a sharp. Its A# Major is 6B, which most charts call B flat major.
Which moves stay in key?
Wikipedia states the rule in one sentence: tracks mix harmonically "if they are in the same key, if their keys are relative, or if their keys are in a subdominant or dominant relationship with one another". On the wheel that is three moves:
- Same code. Same key.
- Same number, other letter. The relative key, with all seven notes shared. From 8A that is 8B.
- Plus or minus one number, same letter. A fifth up or down, with six of seven notes shared. From 8A that is 9A (E Minor) or 7A (D Minor).
Anything else puts several notes of one track against the other. That is where a blend starts to clash.
Why does a tempo change by resampling change the key?
Resampling plays the audio at a different rate, and every frequency moves with it. The pitch change in semitones is 12 times the base 2 logarithm of the speed ratio. The Tempo change block in the BPM delay calculator shows it on the "Resampled pitch" line, and the sample pitch calculator shows it as the headline figure.
Some results from that formula:
- 1 percent faster is +0.17 semitones.
- 3 percent faster is +0.51 semitones, about halfway between two keys.
- 5 percent faster is +0.85 semitones.
- 6 percent faster is +1.01 semitones. A 120 BPM track played at 127.2 BPM lands there, at 94.34 percent of its old length.
- Slowing 128 BPM to 120 gives -1.12 semitones.
A time-stretch avoids the shift. The sample pitch calculator has a Time-stretch choice beside Resample, and in the pitch changer the "Speed (pitch kept)" slider does the same.
When does that move a track to a different Camelot number?
A shift by one semitone moves the code by 7 numbers. You can check this on the table. C Major 8B goes up one semitone to C# Major 3B, since 8 plus 7 is 15 and the wheel has 12 numbers. A Minor 8A goes to A# Minor 3A, G Major 9B to G# Major 4B, and E Minor 9A to F Minor 4A.
The reason is arithmetic. A fifth is 7 semitones and one number, so 7 semitones is plus one. Seven times 7 is 49, which is one more than 48, so a single semitone is seven numbers round the wheel.
The same table gives the other shifts:
- Down one semitone is minus 7, which is the same as plus 5. C Major 8B goes to B Major 1B.
- Up two semitones is plus 2. C Major 8B goes to D Major 10B.
- Up seven semitones is plus 1. C Major 8B goes to G Major 9B.
Two worked cases. A track the key finder calls 8A (A Minor) that you speed up 6 percent by resampling sits near A# Minor, which is 3A, and its tuning is only 1 cent above that key. A track in 8A slowed from 128 to 120 BPM lands near G# Minor, 1A, about 12 cents flat of it.
Between those cases is the trap. A 3 percent change lands at +0.51 semitones, on no key at all, so the code no longer describes the track.
How do I use that when mixing?
Compare the two codes before you touch anything.
If they are one number apart, the tracks are already compatible, and shifting would be a mistake. Moving a track by a whole number takes 5 or 7 semitones, a large and audible shift that changing pitch without changing speed warns about.
If they are 5 or 7 numbers apart, they are one semitone apart in pitch, and a small shift fixes it. Say you have 8A and 3A. In the pitch changer, set Pitch to +1 on the A Minor track, then choose A and Minor under Key helper. The page answers "New key: A# minor", which is 3A.
If they are two numbers apart, as with 8B and 10B, the keys are a whole tone apart. Two numbers is outside the three moves above, so treat it as a deliberate jump and not as a safe blend.
If the tempo has to change too, work out the resampled pitch first. How to match a sample to your project tempo works one case through. The sample pitch calculator also lists "Tempos that stay in tune". From 120 BPM, resampling to about 127.14 BPM moves the track exactly +1 semitone, 134.70 BPM is +2, and 113.26 is -1. At those tempos the new key is a whole number of semitones away with no cents left over.
What can go wrong?
The detector can name the relative key. The two keys share all seven notes, and a program that counts notes has little to separate them. The wrong letter keeps the right number, which costs little in a mix. For the Relative key line and the steps that settle it, see how to find the key of a song.
It can also be off by a fifth. C against G and C against F are the classic confusions, and the key finder has a step that re-checks those pairs. A fifth is one number, so a detector error that size looks like a compatible move when it is not.
Confidence matters. The finder reads "Very sure" above 65 percent, "Fairly sure" above 30 percent, and "Not sure, check by ear" below that. A song longer than 90 seconds is analyzed from its middle 60 seconds, so a late key change never reaches the reading.
A matching code is no guarantee that two tracks sound good together. Keys say which notes are in play and nothing about how a melody sits over a bass line. Listen to the overlap before the blend.
Checks before you rely on a code
- The Confidence line says "Very sure" or "Fairly sure".
- You confirmed the key by ear if the card said "Not sure, check by ear".
- You analyzed the track after any resampled tempo change, or worked out the new code with the semitone figure.
- A one-semitone shift is plus 7 numbers, not plus 1.
- You listened to the overlap with both tracks playing.
Sources
More guides
- How to Match a Sample to Your Project Tempo
Fit a loop recorded at one tempo into a project at another, and see how many semitones and cents it moves, with 90 to 100 BPM worked through.
- How to Change Pitch Without Changing Speed
Shift a song up or down by semitones and cents while its length stays the same, and see what changes when you slow it down instead.
- How to Find the Key of a Song
Find a song's key with a key finder, read the relative key and Camelot code beside it, and confirm the answer by ear before you rely on it.
- How to Find the BPM of a Song
Tap the tempo, measure it from a loop of known length, check it against a click and settle half-time or double-time, with real numbers.