SESSION Apps

Question

Why does key detection get the wrong key?

Key detection returns the wrong key when the audio does not carry enough evidence for the right one. A detector reads the pitches that are actually present and names the key they fit best, so a section with no clear tonal center, a relative major and minor that share every note, or a mix that buries the third will all produce an answer that looks exactly as confident as a correct one.

We build a key reader, so treat the last section as an argument for what we made. Everything above it is how detection works in general and applies to any tool you use.

The six reasons, shortest first

It gave the relative major instead of the minor
Those two keys contain the same notes. Nothing in the pitch content separates them, only which note the music leans on.
You read a section, not the song
An intro, a breakdown or a bridge can sit somewhere else entirely, and the reading is correct for what was playing.
The third is missing or buried
Major and minor are told apart by one note. Power chords, sub-heavy mixes and unison lines can leave that note out completely.
There was not much pitched material to read
Percussion, noise, risers and heavily processed textures give a detector very little to work with.
The record is not in one key
Modulations, key changes and layered samples from two different records genuinely have more than one answer.
The whole record is tuned off
A song a half step down, a track pitched for a vocal, or a sample lifted off a slightly fast record all sit between the notes a detector is looking for.

What a detector is actually doing

It is not listening to the song the way you do. It measures which pitches are present and how much energy each one carries, then compares that pattern against what every key would look like.

The key that fits best wins. That is a good method, and it is why detection works at all on a normal record with a chord progression and a melody.

It also explains every failure on this page. When the pattern is ambiguous, some key still fits better than the rest, and a detector built to always answer will hand you that one without mentioning how close the race was.

Relative major and minor is the miss you will see most

C major and A minor use the same seven notes. So do every other relative pair. There is no difference in pitch content at all, only in which note the music treats as home.

Working out home means following how the music resolves, where phrases land, and what the bass does at the end of a section. That is musical reasoning, not a measurement, and it is much harder than reading pitches.

So when a detector hands you the relative, it did not fail at the thing it measures. It got the note set right and the center wrong, which is a much smaller error than it looks like on screen.

Practically it barely matters for writing. The notes available to you are identical either way, and your ear will settle the rest in a bar.

A section is not the song

Anything reading live audio reads what is playing right now. That is the feature, not the bug.

Point it at an intro that is one pad and no bass and you get the key of that pad. Point it at a bridge that modulated up and you get the bridge, correctly, which is not what the chorus was in.

The fix is to read the part you actually care about. If you want the key of the chorus, play the chorus.

When the third is not there

Major and minor differ by a single note. Take that note away and the two keys become the same set of evidence.

Rock and metal built on power chords leave it out by design. Trap records that are 808 and melody sometimes never state a full chord. Doubled unison lines and heavily filtered mixes can hide it under everything else.

The detector is not being careless. It is answering with the only information the record gave it.

When the record is genuinely tuned off

A detector is looking for notes at standard pitch. Records pitched down for a vocal, guitars tuned a half step or more below standard, and old samples lifted off a record running slightly fast all sit between the reference points.

Sometimes that pushes the answer to a neighboring key. Sometimes it just makes every candidate fit badly, which is the case where a detector should say the reading is weak.

The real problem is not the wrong key

Every situation above is understandable, and a good tool will still miss some of them. That is not the part that costs you time.

The part that costs you time is that a shaky read and a solid read arrive looking identical. Both are a key name in a box. Nothing on screen tells you that one came off a clean chorus and the other came off a filtered intro with no bass.

So you either verify everything by ear, which is the work you were trying to skip, or you trust a reading that had almost nothing behind it. Neither of those is the tool doing its job.

Four things you can check in about ten seconds

These work on any detector, including ours.

What a detector should do instead

  • Say how sure it is, every time. Confidence is information the detector already has internally, and hiding it is a choice.
  • Return nothing when there is nothing to read. An empty answer on a drum loop is the correct answer.
  • Follow the audio. If the section changed, the reading should change, not average the two together.
  • Not dress a coin flip as a result. The point of the tool is to save you the verification, and a confident wrong answer costs you more than no answer at all.

Frequently asked

Why is my key detector giving the relative minor?

Because a key and its relative contain exactly the same notes, so pitch content cannot separate them. Telling them apart takes following how the music resolves, and for writing purposes the available notes are identical anyway.

Is key detection accurate?

On a normal record with clear chords and a melody it is reliable enough to work from. On ambiguous material it is a best fit, and the useful question is not how often a tool is right but whether it tells you when it is unsure.

Why does the key change halfway through the song?

Usually because the song changed. A modulation, a bridge or a loud sample can move the tonal center, and anything reading live audio follows what is playing now.

Can key detection handle songs tuned below standard pitch?

It can read them, but a record sitting between standard pitches gives every candidate key a worse fit, which is exactly the case where a detector should report a weak reading rather than a confident one.

How do I check the key myself?

Play the strongest pitched section, find the note the phrases land on, and try both the major and the minor built on it. The one that sounds like home is the key.

Session™ Key

A key and BPM reader for Mac that marks every read with how sure it is, so a strong read and a rough guess never look the same. It reads the audio your Mac is already playing, so it works with a DAW, a browser tab or a reference track.

$39 once, no subscription. Available now for macOS 14.4 or later on Apple Silicon.