Concept

Melodic interval — where it appears

The distance between two notes that follow one another, as opposed to two sounded together. Melodies are overwhelmingly made of small ones, and how large one may be is capped by how fast the line is going.

Named by 14 essays across 6 fields — each of them below, with the objects they name alongside it.

Ode to Joy as a path. Ode to Joy plotted as 30 notes against the 8 scale degrees it uses, one column per note. Its largest melodic interval is 2 semitones and it spans 7; the mean absolute step is 1.24 semitones. Beethoven, Ninth Symphony, finale, 1824 — the theme as first stated, eight bars.

A melody is a walk, not a set

Nine essays here are about which seven of the twelve a scale takes, and every one of them describes a set. A tune is not a set; it is a path across one, and the path is nearly all small steps. That is not a matter of taste. Above about eight notes a second the ear stops being able to hold a large interval and a small one in the same line, and at sixteen the choice disappears altogether — so a fast passage is scalar because a fast passage that leaps is two pieces of music.

scales · Melody
How much of the rule a walk with no rule reproduces. Post-skip reversal in 20,000-note random walks with no melodic knowledge of any kind. An unbounded walk reverses after 50.0 per cent of leaps, which is the chance rate and is the check that the measurement is right. Confining it to 12 semitones raises that to 61.3 per cent. Reaching the 70 per cent that corpus studies report needs a central tendency of 0.95 — an almost deterministic pull back toward the middle at the edges of the range. A wall is not enough; there has to be a spring.

The leap that pays itself back

Every melody textbook teaches that a leap should be followed by a step in the opposite direction, and every corpus that has been counted agrees — around seven leaps in ten are answered that way. A random walk with two walls, no memory of the leap and no rule of any kind reverses after 61 per cent of them, and the residue is not a rule either. What is left when the walls are accounted for is a prediction the rule does not make, and it is the prediction that decides between them.

form · Melody
The arch is not a preference. Every sequence of 6 notes over 8 scale degrees — 262,144 of them, enumerated rather than sampled — classified by contour, under three constraints. With none, the nine classes are spread. Requiring the sequence to return to its starting degree leaves only the arch, the valley and the flat, at 42.2 per cent each for the first two. Requiring it to begin and end on the LOWEST degree leaves the arch alone, at 99.6 per cent. Nothing here prefers a rise followed by a fall; the constraint is that the melody comes home, and a melody that comes home from below has nowhere to go but up first.

The shape that survives everything else

Throw away a melody's key, its tuning, its instrument and the sizes of its intervals, and what is left is a string of pluses and minuses. That string is what a listener who cannot name a note still has, and it costs 37 per cent of the tune to keep. The arch that melodic shape is famous for is not in it as a preference: enumerate every six-note sequence that begins and ends on the lowest degree it uses and 99.6 per cent of them are arches, because a melody that comes home from below has nowhere to go first but up.

form · Melody
Where the series stops being a chord and becomes a scale. The interval between each partial and the next, in semitones, against partial number. It is an octave, then a fifth, then a fourth, a major third, a minor third — and it crosses 2 semitones between partials 9 and 10. Each shaded band is one octave of pitch and holds twice as many partials as the band below it: 2 between 1 and 2, 3 between 2 and 4, 5 between 4 and 8, 9 between 8 and 16. Nothing about the series changes with height; what changes is the density, and a set of notes becomes usable as a melody when its neighbours are a step apart.

The register where the series becomes a scale

A melody needs steps, and a natural trumpet has only the harmonic series. The gap between one partial and the next falls as the series rises — an octave, a fifth, a fourth, a third — and does not reach a whole tone until the eighth. That single arithmetic fact decides what two centuries of brass writing could be: fanfares below, and melody only in a band one octave wide with nine notes in it, three of them badly out of tune and every one of them lipped into place by a player who had no valve to press.

instruments · Melody
How far each system sits from equal temperament. Deviation 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.

The note that is sharp because of where it goes

Eleven essays here have tuned notes against other notes sounding at the same time. A melodic line makes the opposite demand of the same note. In C major the leading note wants to be 1088 cents if the argument is vertical — a pure third above the dominant — and 1110 if it is horizontal, because a leading note is a note that is about to arrive somewhere and performers narrow the step. The two answers differ by 21.5 cents, which is a syntonic comma exactly, and no keyboard has ever been able to hold both.

tuning · Melody
The same steps, counted by the clock. The step distribution of Ode to Joy and Twinkle, twinkle counted two ways: once per interval, which is what every earlier figure did, and once weighted by how long the note it leaves is held. The two disagree because a tune's long notes are not distributed evenly over its interval sizes — in Ode to Joy the 2-semitone step is 55.2 per cent of the moves and 60.0 per cent of the time. Which of the two a claim about melodic motion means has never been stated here, and the answer matters most exactly where a tune slows down, which is at the ends of its phrases.

The note that has a length

Every melodic figure so far reads a table where each note is a pair — a pitch and a duration — and throws the second number away. A step between two minims and a step between two quavers have been one event in every histogram it has drawn. Weighting the same statistics by time moves the step distribution by up to seven points, changes forty-four of a hundred and one contour signs, and turns up an off-by-one in the one figure that did use the durations: it took the length of the note arrived at where the time between two onsets is the length of the note left.

rhythm · Melody
Where a twelfth comes from. The range of a walk with no walls, against how many notes it runs for, at three settings of the one parameter it has. The parameter is fitted to the post-skip reversal rate and to nothing else; the range is then read off. With no central tendency at all the walk passes two octaves by 60 notes and keeps going. At the setting that reproduces 70 per cent reversal — κ = 0.78 — the range is 11.9 semitones at thirty notes and 17.9 at a hundred and twenty. It grows logarithmically, so over the whole plausible length of a tune it sits between an octave and a fifteenth, and a twelfth is the middle of that. The three tunes carried here are marked and all three fall below the curve.

The twelfth, and where it comes from

Melodies occupy about an octave and a fifth, and an earlier essay set out to explain that by the singer's register break and found that it does not: the chest mechanism alone spans two octaves and a semitone. The answer is in a parameter the essay on leaps fitted and then put down. A walk with no walls whose central tendency reproduces the post-skip reversal rate has a range that grows logarithmically — six semitones at eight notes, twelve at thirty, eighteen at a hundred and twenty — so across every length a tune plausibly has, the span is between an octave and a fifteenth.

form · Melody
Where the page ends a phrase, and where the ear does. Twinkle, twinkle with two sets of phrase boundaries on it. The lower curve is a local boundary detector — a peak in how much the interval and the note length change from one to the next, with nothing in it about bar lines or harmony — and the marks above it are where the notation puts the phrase ends. It finds 100 per cent of them and 2 boundaries the page does not have. Where the two agree it is because a long note is sitting at the join; where they disagree the page is marking a grammatical unit and the detector is finding a perceptual one.

Where a phrase ends

Run a boundary detector over the three tunes used throughout and it agrees with the notated phrasing on one of them perfectly and on another almost not at all. The reason is which cue each tune uses: Twinkle's phrases all end on a long note, so a duration-weighted detector finds five of five with no false alarms; Ode to Joy's run on in crotchets and its phrasing is in the intervals, where a duration detector finds one of three and a pitch detector finds all three and eight others. No fixed weighting serves both, and the published one is worse on each tune than the single cue that tune uses.

form · Phrase
The same interval, mistuned by the same amount, at each of its two ends. A C to G in the major key, played 25 cents wrong, with the departure carried by the lower note, split between the two, and carried by the upper note. All three are the same interval size; what differs is which note is off the scale. The share of the departure that survives into what a listener hears is 32 per cent when the lower note carries it and 56 when the upper does. The middle bar is the mean of the other two to within a hundredth, so the averaging is linear and the asymmetry is the whole of the effect. Two things produce it: the prior is 9.0 cents wide at the C and 10.0 at the G, and the likelihood is 13.2 cents wide at the lower pitch and 8.8 at the higher.

An interval is two posteriors subtracted

Treating a key as a prior over one note predicts that an interval's pull is not the single-note pull doubled, because the two degrees are not equally weighted. Half of that is wrong: splitting a mistuning between the two notes gives exactly the mean of what each end gives alone, to a thousandth, at every one of the twenty-one intervals in the scale. What is not the mean is which end carries it — and the pull turns out to be largest not on the shortest notes but on notes of about an eighth of a second, where the likelihood is a quarter of a semitone wide.

intervals · Pitch-acuity
Which intervals in a key can be mistuned invisibly, and from which end. Every interval between two degrees of the major scale, ranked by how differently its two ends treat a 25-cent departure on notes of 0.25 seconds. The C to B is the most lopsided, at 47 points: a mistuning on its upper note reaches the listener nearly 2.5 times as strongly as the same mistuning on its lower one. The D to E is the most even, at -0. A negative bar is an interval whose LOWER note is the one that carries a mistuning into the listener, which happens whenever the lower degree is the less specified of the two. No account of interval perception predicts a table like this, because an interval is usually treated as one quantity rather than as a difference of two estimates.

Which end the mistuning is on

Twenty-one intervals in the major scale, each with two ends, and the same twenty-five cents reaches a listener at anywhere between 32 and 79 per cent of its size depending on which of the two notes carries it. The most lopsided is the tonic to the leading note, where a departure on the upper note arrives two and a half times as strongly as the same departure on the lower. Two mechanisms produce it and they can be separated by one flag: two thirds of the asymmetry is register and one third is the key.

intervals · Pitch-acuity
Leaps do not fall where offbeats do, and a reader gets the difference free. Where each size of melodic move actually lands in the bar, over the 101 moves of the three tunes measured here. The two axes are priced separately everywhere and they are not independent: the mutual information between them is 0.31 bits a note, which is 20 per cent of the smaller of the two. That is the amount the sum over-charges. A reader who has seen where a note falls already knows something about how far it moved, so the joint cost is 3.47 bits rather than the 3.79 the two axes add to — and every reading load computed so far is high by the difference.

Leaps do not fall where offbeats do

Every reading load computed so far is a sum of two terms priced as though the axes were independent, and an earlier essay named the interaction it could not reach. Measured on the same hundred and one notes every other essay uses, the mutual information between how far a note moves and where it falls in the bar is 0.31 bits — a fifth of the smaller axis, and a sixth of a note's total load. Every reading load published so far is high by that amount, and the quantity saturates at exactly the grid the tunes are notated on, which is the check that it is measuring the music rather than the grid.

scales · Notation
One number a page, and what a hard rhythm buys against a hard tune. Every combination of six kinds of line and seven kinds of rhythm, placed by what each axis costs a reader. The duration term (0.67 bits) and the interaction (0.31) are the same for every cell, so the diagonals are pages of equal difficulty and the exchange rate between the two axes is the slope of one. The pitch axis spans 5.26 bits across the six lines and the position axis 4.46 across the seven rhythms, so a composer choosing between the hardest line and the hardest rhythm is choosing between quantities within 18 per cent of each other. The hardest page is wide leaps in off the beat at 14.0 bits a note and the easiest is a scale on the beat at 4.2.

One number for a page

Four terms and an interaction give a single bit rate per note, and with it the exchange rate a long run of essays has been pointing at. Six kinds of line span 5.26 bits and seven kinds of rhythm span 4.46, so a composer trading a harder tune against a harder rhythm is trading quantities within eighteen per cent of each other — and pages that look nothing alike sit on the same contour. The hardest page on the grid costs 13.96 bits a note and the easiest 4.24, a factor of three and a half, and the subject closes there.

scales · Notation
Weighted by the pairs a melody sounds next to each other, every seven-note scale is rougher than most. Each scale placed by how smooth it is against 2000 random scales of the same size, under 4 spectra, with each pair of its degrees weighted by how often the plainest melody its ascent and descent permit sounds the two — here the pairs a melody sounds next to each other. Low is smooth. Raga Bhupali: 40.3 to 56.8, spread 16.5; Raga Deshkar: 25.1 to 37.5, spread 12.4; one measured slendro: 31.8 to 44.5, spread 12.7; Rast, Arabic theory: 92.0 to 98.6, spread 6.6; Rast, Turkish theory: 91.8 to 97.8, spread 6.0; the diatonic major, tempered: 90.7 to 97.0, spread 6.3; the diatonic major, five-limit just: 91.8 to 97.8, spread 6.0.

The smoothness is in the skips

Traditional scales come out smoother than random scales of their size because every pair of their degrees is counted once. Count only the pairs a melody on the scale actually sounds next to each other, and every seven-note scale here is rougher than ninety per cent of random ones, under every spectrum, and under a pure tone as well. The smoothness is carried by the pairs a melody reaches by skipping — its thirds and above all its fifths, which are smoother than all but two random scales in two thousand. Counted by their own ascents and descents, the two ragas that share one set of notes stand in different places at last: Deshkar's skipped Re buys a smoother ascent and costs it the fifths.

scales · Beyond twelve
Weighted by the ring of the note before, a note every 0.6 seconds, Raga Deshkar moves least. Each scale placed by how smooth it is against 2000 random scales of its size under 4 instruments, each with its own spectrum and its own ring, with every pair of notes its plainest melody sounds weighted by how much of the earlier note is still sounding when the later one begins, a note every 0.6 seconds. Low is smooth. Raga Bhupali: plucked string, 6 s 53.6, long-ringing string, 12 s 35.8, blown note, 2 s hall 41.3, free bar, 4 s 58.5; spread 22.8; Raga Deshkar: plucked string, 6 s 39.0, long-ringing string, 12 s 25.9, blown note, 2 s hall 26.1, free bar, 4 s 42.0; spread 16.1; one measured slendro: plucked string, 6 s 42.9, long-ringing string, 12 s 27.8, blown note, 2 s hall 32.6, free bar, 4 s 46.4; spread 18.6; Rast, Arabic theory: plucked string, 6 s 92.0, long-ringing string, 12 s 65.2, blown note, 2 s hall 92.3, free bar, 4 s 96.1; spread 30.9; Rast, Turkish theory: plucked string, 6 s 88.0, long-ringing string, 12 s 58.1, blown note, 2 s hall 90.8, free bar, 4 s 93.6; spread 35.5; the diatonic major, tempered: plucked string, 6 s 84.8, long-ringing string, 12 s 54.2, blown note, 2 s hall 89.5, free bar, 4 s 91.3; spread 37.0; the diatonic major, five-limit just: plucked string, 6 s 87.7, long-ringing string, 12 s 56.7, blown note, 2 s hall 90.3, free bar, 4 s 92.9; spread 36.2.

A scale is committed to how long its instrument rings

A traditional scale's standing on the roughness model moves when the instrument changes, and that movement was read as a commitment to the instrument's spectrum. Weight every pair of notes a melody sounds by how much of the earlier note is still ringing when the later one begins, and the movement grows — the tempered diatonic's by 37 percentile points at a note every 0.6 seconds — but almost none of it is the spectrum. Put four instruments' rings on one spectrum and the scale moves 38.6 points; put four spectra under one ring and it moves 9.4. And the partials that make a fifth smooth are the first to stop sounding.

scales · Beyond twelve

Named alongside it

The objects these essays reach for when they reach for this one.

Null modelContourCentsDifference limenNotationPhraseScale degreeTessituraBayesian inferenceCritical bandwidthEntropyInformation

All concepts