Generator

How far every key is from C major

The 11 other major keys under three measurements. Notes in common and steps round the circle are the same measurement — the first is seven minus the second until it bottoms out at two — and voice-leading distance between the tonic triads is not. E major shares 3 notes and is 2 semitones away; A♭ major shares 3 notes and is 2 semitones away, against the dominant's 6 and 3.
How far every key is from C major. The 11 other major keys under three measurements. Notes in common and steps round the circle are the same measurement — the first is seven minus the second until it bottoms out at two — and voice-leading distance between the tonic triads is not. E major shares 3 notes and is 2 semitones away; A♭ major shares 3 notes and is 2 semitones away, against the dominant's 6 and 3.

Drawn above with its standard settings, which is almost never how an essay draws it: an essay states the numbers it is arguing about, so the figure a reader meets there is about that argument rather than about the drawing in general. Every option a placement passes is checked against the ones this function actually reads, because an option it does not read is silently ignored and the figure quietly draws what is above instead.

It makes a noise. 17 of its 17 placements carry sound, built from the same numbers as the drawing, offering these buttons: C major, then D major: 2 steps round the circle, 6 semitones of voice leading, C major, then E major: 4 steps round the circle, 2 semitones of voice leading, F♯ major, then C major: 6 steps round the circle, 6 semitones of voice leading, F♯ major, then D major: 4 steps round the circle, 2 semitones of voice leading, G major, then C♯ major: 6 steps round the circle, 6 semitones of voice leading, G major, then E♭ major: 4 steps round the circle, 2 semitones of voice leading.

Called by 5 essays

the blast radius of changing it

How far every key is from C major. The 11 other major keys under three measurements. Notes in common and steps round the circle are the same measurement — the first is seven minus the second until it bottoms out at two — and voice-leading distance between the tonic triads is not. E major shares 3 notes and is 2 semitones away; A♭ major shares 3 notes and is 2 semitones away, against the dominant's 6 and 3.

Three ways to measure how far a key is

Notes in common and steps round the circle of fifths are the same measurement — among the twelve major keys the first is seven minus the second until it bottoms out. Voice-leading distance between the tonic triads is a different one, and it disagrees in exactly one place: E and A♭ are four steps from C, share three of its seven notes, and are two semitones away, which is nearer than the dominant.

harmony · Key-relations
The map is two-dimensional and the circle is one axis of it. Major keys along the top, each a fifth from the last; underneath each, its relative minor, which shares all seven of its notes. Moving sideways changes one note; moving down changes none at all and changes the tonic. Among the twelve major keys alone there is only the sideways move, which is why that map really is a circle — the second axis needs the minor keys to exist.

The circle is a circle, and the map is not

Among the twelve major keys, notes in common is a strict function of distance round the circle of fifths — one value for each step count, no exceptions — so there is nothing else to measure and the map really is one-dimensional. A second axis appears only when the minor keys are added, and it is a different kind of move: the relative shares all seven notes and the parallel is one semitone away.

scales · Key-relations
How fast two keys can alternate before the finder stops following. The share of bars a moving key-finder names correctly, once its reading is shifted back by its own lag, against how many bars each key holds for. One line per window. Below a block of three bars the second key is never named at all — 2 of the sweep's readings report a single key for the whole passage — and above about twice the window the tracking is over ninety per cent. The lag itself is about half the window: 0 bars at a window of 3, 0 bars at a window of 4, 3 bars at a window of 8.

The alternation a key-finder cannot follow

Two keys sounding together are not in the key-finder's vocabulary, and an earlier essay ended by pointing at the other case and saying what was missing: a passage whose alternation rate can be varied while everything else is held still. Built, it gives a rule with three numbers in it — the second key is never named below a block of three bars, the tracking clears ninety per cent above twice the window, and the reading is late by half the window throughout.

harmony · Key-relations
The one number the ordered key-finder was tuned on. For each rate of alternation between two keys, the cost of changing key at which the model stops hearing two keys and starts hearing borrowed chords in one. The threshold rises with the period — 0.95 at 1 bar, 0.95 at 2 bars, 0.95 at 4 bars, 2.00 at 8 bars, 3.50 at 16 bars — so the parameter and the rate trade off against each other exactly. The value tuned earlier, 2.2, sits above every threshold on this axis, which means its verdict about fast alternation was a consequence of the tuning rather than a finding about the music. Filled means the model names two keys; hollow means it names one and calls the rest borrowings.

A modulation and a borrowing are one number apart

The key-finder that keeps the order has one tuned parameter, and said so. Sweep it and the parameter turns out to be the whole verdict: below a threshold the model hears two keys alternating, above it one key with borrowed chords. The threshold rises with how slowly the keys alternate — and the value it chose sits above every threshold in range, so its finding about fast alternation was a consequence of the tuning.

scales · Key-relations
How much of the reading comes from what has not happened yet. Every margin reported earlier is two-sided: the best path through a key at a bar is the best score into it plus the best score onward from it, and the second half uses bars a listener has not heard. Dropping that term is one line, because the dynamic program already had both halves separately. The mean margin falls from 3.90 bits with hindsight to 1.79 without it, so 54 per cent of this passage's certainty is retrospective. The two passes never disagree about which key is best here, so the hindsight buys confidence rather than a different answer. This is the quantity every earlier essay has assumed and none has measured.

How much of the reading arrives late

Every margin reported earlier is two-sided: the best path through a key at a bar is the score into it plus the score onward from it, and the second half uses bars a listener has not heard. Dropping that term is one line. On a thirty-two-bar song it removes more than half the certainty, and on a passage built to be ambiguous it changes the key named at nine bars out of eleven.

scales · Key-relations

All figures · What can be heard