How this site is made

The figure library

Every picture here is generated from code at build time. This page lists the generators, each rendered at its defaults.

No figure on this site is a drawing that was made once and saved. Each one is a function: it takes parameters and returns SVG, so the same generator produces the 27° incline and the 5° incline without either being redrawn.

That is the reason the collection can keep growing without the illustrations drifting apart. A generator is written once, checked once, and every essay that calls it inherits the same line weights, the same colour roles, and the same behaviour in dark mode. There are 27 of them so far.

beats

220 Hz against 223 HzTwo tones 3 hertz apart, added. The rapid oscillation is their average; the slow swelling is their difference, heard as 3 beats a second and used by every tuner who has ever worked by ear.00.511.52seconds3 beats per second — the difference, exactlythe carrier is drawn slower than it sounds, or it would be a solid band

cents-ruler

The simple ratios, and the twelve equal stepsOne octave laid out in cents. Above the line, the frequency ratios of small whole numbers, where they actually fall; below it, the twelve equal steps. The two sets almost never coincide.6/5minor third5/4major third4/3fourth3/2fifth8/5minor sixth5/3major sixthCC♯DE♭EFF♯GA♭AB♭BC+16-14-2+2+14-16the ratios of small whole numberstwelve equal steps of exactly 100 cents1200 cents to the octave

chord-shape

Four triads as stacked intervalsEach triad drawn as the semitone distances above its root, with the nearest simple frequency ratio beside each note. The chords differ only in the size of the two stacked thirds, and that difference is the whole of their character.C1/1E5/4G3/243major0–4–7C1/1E♭6/5G3/234minor0–3–7C1/1E♭6/5F♯33diminished0–3–6C1/1E5/4A♭8/544augmented0–4–8semitones above the root

circle-of-fifths

The circle of fifthsThe twelve pitch classes arranged so that each is a fifth above the last. Keys next to each other differ by one sharp or flat, which is why the notes of a key form a contiguous arc rather than a scattering.CaGeDbAf♯Ec♯Ba♭F♯e♭C♯b♭A♭fE♭cB♭gFdone step= one fifth= one sharpouter ring: major keys · inner ring: their relative minors

comma-drift

Where a progression in pure ratios ends upA short chord sequence taken in exact whole-number ratios, with the running difference from equal temperament measured in cents. The sequence returns to its starting chord and the pitch does not, which is the comma arriving in ordinary music.+0.0¢I-2.0¢IV-17.6¢ii-19.6¢V-21.5¢I-2020cents from equal temperamentequal temperament sits on the line

comma-spiral

Twelve fifths do not make seven octavesPitch drawn as a spiral: one turn is one octave, so a note's angle is its pitch class and its radius is how high it has climbed. Twelve pure fifths wind round just over seven times and finish 23.46 cents past seven octaves — the Pythagorean comma, and the reason no keyboard can be tuned in pure fifths.CC♯DE♭EFF♯GA♭AB♭Bstartseven octavestwelve fifthsthey miss by 23.46 centsone turn is one octave · angle is pitch class · radius is how far it has climbed

dissonance-curve

Roughness across an octaveSensory dissonance between two complex tones as the upper one is swept through an octave, computed by summing the roughness between every pair of their partials. Nothing here is placed by hand. The deep wells land on the fourth, the fifth and the octave; the thirds sit on shoulders rather than in wells, which is a real feature of this model and not a defect of the drawing.semitones above the lower tone6/55/44/33/25/32/1CC♯DE♭EFF♯GA♭AB♭BCroughest at about a semitonesmooth at the simple ratios

envelope

Three envelopesHow loudness changes over the life of a note, for a plucked, a bowed and a struck instrument. Remove the attack from a recorded piano and it stops sounding like a piano, which is the shortest demonstration that the envelope carries as much identity as the spectrum.00.511.5200.20.40.60.81secondsamplitudeplucked — no sustainbowedstruck — no sustainkey released

euclid-family

Six rhythms, all from the same constructionEuclidean rhythms generated by Bjorklund's algorithm, which spreads a number of onsets as evenly as a number of steps allows. The patterns were not transcribed from recordings; they are what the algorithm produces, and the names beside them are where each one is already in use.E(2,4)the simplest divisionE(3,8)tresillo — Cuba, and half the world's pop musicE(5,8)cinquilloE(4,9)Turkish aksakE(5,12)West African bell patternE(7,16)Brazilian necklaceone cell per step · filled cells are struck

fifths-chain

The chain of fifths in quarter-comma meantoneThe fifths laid end to end as the chain they are. The bar under each shows how far that fifth departs from a pure three-to-two, and the last one — where the chain is forced to close — is the wolf.E♭B♭FCGDAEBF♯C♯G♯D♯-5.4-5.4-5.4-5.4-5.4-5.4-5.4-5.4-5.4-5.4-5.4+35.7each fifth's departure from a pure 3:2, in centsone fifth carries the whole error

harmonic-lattice

The TonnetzPitch classes placed so that a step east is a fifth and a step north-east is a major third. Every major and minor triad is a triangle, and neighbouring triangles share two notes — which is why the shortest chord changes are the ones that look adjacent.CGDAEBF♯EBF♯C♯A♭E♭B♭A♭E♭B♭FCGDCGDAEBF♯east — a fifth · south — a major third · south-west — a minor thirdtriads are triangles; a shared edge is two shared notes

harmonic-series

The first eight partials of a stringA string vibrating in one, two, three and more equal parts, with the frequency ratio and the nearest named note beside each. The seventh partial is a third of a semitone flat of anything on a keyboard, which is a fact about strings rather than about tuning.1130.8 HzC2261.6 HzC3392.4 HzG4523.3 HzC5654.1 HzE -14¢6784.9 HzG7915.7 HzB♭ -31¢81046.5 HzCpartialthe dots are the nodes — the places that do not move

interval-ratio

Two tones in the ratio 3 to 2Two sine tones whose frequencies are in the ratio 3 to 2, and their sum. The combined pattern repeats every time both waves return to the start together, which for a simple ratio is soon.one frame = one repeat of the combined wavelower — 2 per frameupper — 3 per frametheir sumthe pattern repeats after 2 cycles of the lower tone

key-overlap

Neighbouring keys differ by one noteThe seven notes of several major keys, laid out against the chromatic scale. Keys a fifth apart share six of their seven notes, and the one that differs is the note that changes the key signature.CC♯DE♭EFF♯GA♭AB♭BE♭ majorB♭ majorF majorC majorG majorD majorA majorone note enters and one leaves for each step round the circle

keyboard

Notes on the keyboardA piano keyboard with the notes under discussion marked. The keyboard is used throughout this site because it shows distance rather than name, and distance is what the theory is about.CEG3 notes sounding

metre-tree

Three metres as treesEach metre drawn as the bar dividing into beats and the beats dividing again. Simple and compound metres have the same number of beats and differ in the second division; an additive metre has beats of unequal length, which no single division produces.4/42 + 2 + 2 + 2simple6/8♩.♩.3 + 3compound5/8♩.3 + 2unequal beats — additive

mode-compare

The seven modes, brightest firstThe same seven pitch classes started on each of its degrees in turn, ordered by how many of their notes are raised. Each row differs from the one below it by exactly one note, and that note moves down one semitone each time.CC♯DE♭EFF♯GA♭AB♭BCLydianIonianMixolydianDorianAeolianPhrygianLocrianbrightest at the top, darkest at the bottomeach row drops exactly one note by a semitone from the row above

polyrhythm

3 against 2Two evenly spaced pulses over the same span, one in 3 and one in 2. They agree only where both grids land together, and the gap between agreements is the least common multiple — which is what makes one polyrhythm sound like a shape and another like two unrelated things.32they coincide every 6 subdivisionscommon grid: 6 equal steps

progression-path

The seven chords of a key, by distance from homeEach triad of the major scale placed at a radius equal to how far its voices must move from the tonic chord. The chords that feel closest to home are the ones that are closest, in the plain arithmetic sense.ICiiDiiiEIVFVGviAvii°BI – vi – IV – Vradius = semitones of voice motion from the tonic chord

rhythm-cycle

E(3, 8) as a cycleA rhythm drawn round a circle, one equal arc per step, with the struck steps filled. On a circle the pattern has no beginning, which is why the same necklace of onsets is several different named rhythms depending on where a listener decides bar one is.12345678x..x..x.3 onsets in 8 stepsthe polygon is what stays the same when the rhythm is rotated

room-modes

A small room's lowest modesThe first few axial standing waves of a room, drawn in plan, with the frequency of every mode below 160 hertz listed underneath. The low modes are far apart in frequency, so some bass notes are loud in one corner and absent in another. The sound buttons play these two octaves above their real pitch, because a room's lowest modes are below what most speakers reproduce.mode 1 · 40.8 Hzloudest at both endsmode 2 · 81.7 Hz2 quiet linesmode 3 · 122.5 Hz3 quiet lines4.2 × 3.4 × 2.5 m — every mode below 160 Hz:4150658094107118129140151gaps here are notes the room does not support

scale-necklace

The major scale as a cycleThe twelve semitones drawn as a cycle, with the notes of the scale filled in. The gaps between filled positions are the step pattern, and reading them round the circle is what makes the scale's asymmetry obvious.CC♯DE♭EFF♯GA♭AB♭B2 · 2 · 1 · 2 · 2 · 2 · 1steps, in semitonesthe short chords are the semitones — two of them, unevenly spaced

spectrum

Four spectra of the same noteThe amplitude of each partial for four timbres at the same pitch. These are the exact lists the sound buttons on this site synthesise from, so the picture and the sound are the same data.1pureone partial, nothing else12345678stringall partials, falling12345678clarineteven partials nearly absent123456789bellodd partials onlyamplitude

stave

A phrase in ordinary notationA phrase written on a stave. Notation records what a player should do rather than what the air does, so it shows the note names exactly and the pitches only by convention — which is the reason this site draws so much of its evidence some other way.

tuning-comparison

How far each system sits from equal temperamentDeviation from equal temperament, in cents, for each degree of the chromatic scale. Zero is equal temperament by definition; the just major third is about fourteen cents flat of it and the Pythagorean major third about eight cents sharp.024681012-20-1001020semitones above the tonicCC♯DE♭EFF♯GA♭AB♭BCjust intonationPythagoreanquarter-comma meantonesharp of equalflat of equal

voice-leading

How far the voices have to moveThree chord changes with their voices joined by the assignment that moves the least in total. The distance is computed over every way of pairing the notes, so a change that shares two of its three notes shows as two flat lines.2C majorA minortotal 2 semitones12C majorF majortotal 3 semitones231C majorF♯ majortotal 6 semitonesthe shortest change is the one nobody has to sing far

waveform

The same partials, drawn as pressureEach spectrum summed into the wave it actually produces, over two cycles. The shapes are strikingly different and the ear has almost no access to that difference — what it hears is the list of partials, not the shape they add up to.pure1 partialstring8 partialsclarinet8 partials2 cycles · each normalised by its own peak