SESSION Apps

Question

Why does the key change halfway through a song?

There are three reasons, and only two of them are the music. Somebody wrote a modulation, or a section borrowed chords from somewhere else without actually leaving home, or nothing changed at all and a detector averaged two different sections into one answer that is true of neither.

The short version

A real modulation
The music genuinely moves to a new home and stays there. The last chorus lifting a whole step is the version everybody knows.
Borrowed chords
A section pulls in a chord from the parallel major or minor for color and comes straight back. It sounds like a change and it is not one.
An averaging artifact
Nothing moved. The tool gave one label to a file that held more than one answer, and the label landed between them.
How do I tell them apart?
Read the sections separately. A real change survives being looked at one section at a time. An artifact does not.

Case one: somebody wrote a modulation

A modulation is a deliberate move to a new tonal center that the music then treats as home.

Case two: it borrowed a chord and came back

A section can pull a chord from the parallel key, the one with the same root and the opposite quality, without leaving its own key at all.

Your ear registers something foreign, which is the entire point of doing it. The home note never moves.

The test is what happens next. If the music resolves back to the original center within a phrase or two, nothing modulated, and calling it a key change makes the arrangement harder to think about rather than easier.

Case three: nothing changed and the tool averaged it

Most detectors give a file one key. A song is not one thing, so that label has to come from somewhere, and it comes from weighing the whole runtime together.

When a track really does contain two centers, the weighted answer can land on whichever one had more bars, or on a third key that fits the mixture better than it fits any actual section.

The giveaway is that the answer does not match any part of the song when you listen to the parts separately. That is not the music changing key. That is a measurement with the wrong unit.

Why a whole-file label hides all of this

The question a producer actually has is almost never what key the file is. It is what key this part is, the part playing right now, the eight bars being sampled.

A single label for a four-minute record cannot answer that, and it does not tell you that it failed to. It prints one key with the same confidence whether the song held still or moved twice.

What to do when your reference track changes key

Read the sections you actually care about, one at a time, and write down the answer for each. Two reads on two sections beat one read on the whole file every time.

Then check whether the two answers are three semitones apart, because that is usually the relative-key question rather than a modulation. Our page on relative major and minor covers how to settle that one.

If you are pitching a sample to fit, use the key of the section you are taking, not the key of the record it came from.

What an honest reader does about it

It reads what is playing now rather than labeling a file once and standing by it, and it shows how sure it is as the music moves.

A read that shifts when the song shifts is not the tool being unstable. That is the tool telling you something the single label was hiding.

Frequently asked

What is it called when a song changes key partway through?

A modulation, or a key change in everyday speech. The most familiar version lifts the final chorus by a whole step for a burst of energy.

How do I know if the key really changed or my detector is wrong?

Read the sections separately. If each section returns a stable answer of its own, the music moved. If the whole-file answer matches no section at all, the label was an average rather than a reading.

Do borrowed chords count as a key change?

No. A borrowed chord colors a section and resolves back to the same home. Nothing about the tonal center has actually moved.

Which key do I use when I sample a section that modulates?

The key of the bars you are actually taking. The record's overall key is a description of the record, not of your sample.

Session™ Key

A key and BPM reader for Mac that reads what is playing right now rather than labeling a file once, and marks every read with how sure it is. The audio never leaves the machine.

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