Scales and modes

A melody that leaps down across hirajōshi's gaps is the quickest to read

A preference for skips across a scale's wide gaps, the same going up as going down, made hirajōshi's question dearer whichever way it leaned — a quarter more melody at the extremes. Split the preference by direction and the cost was never the preference. A repertoire that leaps up across the gaps and fills them going down, the gap-fill pattern corpus studies report, needs about what an even-handed one needs; the mirror image needs less than any repertoire tested so far. The cost came from moving the average skip, which both directions together do and opposed directions do not. And the harmonic minor overtakes the major scale only where upward skips seek its augmented second.

Assumes: Where a melody skips moves the ratios that how often it skips could not · How a melody moves sets how many tunes it takes, and not which scale needs fewest

A melody that wanders comes back towards the middle of its range, and the pull that brings it back can be counted in semitones or in scale degrees. On an evenly spaced scale those are one model; on hirajōshi, whose steps are one and four semitones, they are two, and how much melody it takes to tell them apart has been the question of a run of essays. Counted in degrees, a melody’s pull costs a hundred tunes on hirajōshi, not a dozen put the answer at about a hundred thirty-note tunes. How a melody moves sets how many tunes it takes, and not which scale needs fewest found that how often a melody repeats, steps and skips moves that count a great deal and every other scale’s count with it.

Where a melody skips moves the ratios that how often it skips could not then let a repertoire prefer some skips to others of the same size: those that cross a scale’s wide gaps, or those that avoid them. Two findings came out of it. On hirajōshi, either preference cost melody — about 102 tunes with skips taken evenly, 115 when the wide gaps were sought at a strength of two and 127 at three, 107 and 118 when they were avoided. And the harmonic minor and the major scale, within three per cent of each other, changed places once skips sought the augmented second.

That essay’s preference was the same going up as going down, and it named the obvious objection. Melodies are not symmetric. Many repertoires leap up and step down, so that a wide gap is crossed upwards by leap and filled in downwards by step — the pattern behind the gap-fill tendency corpus studies report, and behind the reversal after a skip that every pull here is fitted to. It asked whether a leap-up, step-down repertoire makes hirajōshi’s question easier or harder than either uniform preference, and whether the crossing of the harmonic minor and the major scale moves with it.

Both questions have answers, and the first one rewrites the earlier essay’s. The preference never cost melody. Moving the average skip did.

Two exponents instead of one

The walk is the earlier essays’ in every other respect. A melody’s position is its distance from the centre in scale degrees. At each note it repeats, steps one degree, or skips two, three or four, in the three tunes’ own shares: 31 repeats, 55 steps and 15 skips in 101 moves. Which way each move goes comes from a pull towards the centre that grows with distance, in semitones or in degrees, each pull fitted so that sixty per cent of skips of two degrees or more are followed by a move the other way. The two fitted walks are compared exactly as Markov chains, and the information per note that separates them gives the notes needed to tell them apart at a likelihood ratio of 99.

The preference is the earlier one split in two. Each skip is weighted by its span in semitones divided by the average span of a skip of that many degrees on that scale, raised to a power. Upward skips now take one power and downward skips another. After weighting, the skips from each degree are rescaled to the share they had, so the melody skips exactly as often as before and from the same degrees; what moves is which skips it takes, and how its skips divide between up and down. With both powers equal the walk is the earlier essay’s, which is the check, and with both at zero it is the walk of every essay before that.

The axis that matters turns out to be the one along which the two powers are opposed. Call it the lean: a lean of two weights upward skips by their span to the power two and downward skips by their span to the power minus two, which is a repertoire that leaps up across the wide gaps and crosses them going down by its smaller skips. A lean of minus two is the mirror image, leaping down across the gaps and filling them going up.

Leaping up across the wide gaps and filling them going down, hirajōshi needs 104 tunes, against 115 with the same preference both waysNotes of melody needed to tell a pull towards the centre in semitones from one in degrees at a likelihood ratio of 99, both fitted to a 60 per cent reversal after a skip of two degrees or more, on five scales, with each upward skip weighted by (its span ÷ the mean span of its size)^2 and each downward skip by the same to the power -2, the share of skips at each degree held fixed. hirajōshi 3112 (unbiased 3054; the same preference both ways 3439); double harmonic 8684 (unbiased 8836; the same preference both ways 9922); harmonic minor 13024 (unbiased 13356; the same preference both ways 14144); major 13215 (unbiased 13645; the same preference both ways 14123); major pentatonic 15688 (unbiased 15634; the same preference both ways 15853).31128684130241321515688hirajōshidouble harmonicharmonic minormajormajor pentatonic100030001000030000notes of melody neededleaps up, fills down, 2light: unbiased
Fig. 1 Notes of melody needed to tell a pull in semitones from a pull in degrees, on five scales, with upward skips seeking the wide gaps at a strength of two and downward skips avoiding them at the same strength: hirajōshi 3,112, the double harmonic 8,684, the harmonic minor 13,024, the major scale 13,215, the major pentatonic 15,688. The light bars are the unbiased counts. The dial sets the lean, from −3 (leaping down across the gaps) to +3 (leaping up).

Leaning up at a strength of two, hirajōshi needs 3,112 notes — 104 tunes — against 102 with skips taken evenly and 115 with the same preference both ways. The gap-fill repertoire costs two tunes. The uniform preference of the same strength cost thirteen. Turn the dial the other way and the count falls below the unbiased one: 98 tunes at a lean of minus two and 95 at minus three, fewer than any walk the earlier essays tried. Every other scale moves by a few per cent either way, and hirajōshi stays the scale that needs fewest at every lean.

The whole plane

On hirajōshi it is the difference between the two directions that matters: the same preference both ways costs up to a quarter more melody, opposed preferences cost little or save. Hirajōshi: thirty-note tunes needed to tell the two pulls apart, for each preference of upward skips for the wide gaps (rows) and of downward skips (columns), from −3 (avoided) to +3 (sought). up -3: 118, 111, 105, 101, 98, 96, 95; up -2: 112, 107, 103, 100, 98, 98, 98; up -1: 108, 104, 102, 100, 100, 101, 102; up 0: 106, 103, 102, 102, 103, 105, 107; up 1: 104, 103, 103, 104, 106, 109, 113; up 2: 104, 104, 105, 107, 110, 115, 120; up 3: 104, 105, 107, 111, 115, 121, 127. Unbiased 101.8; least 95.3 at up -3, down 3.
Fig. 2 Hirajōshi: thirty-note tunes needed to tell the two pulls apart, for every pair of preferences — upward skips’ (rows) and downward skips’ (columns), each from −3 (avoiding the wide gaps) to +3 (seeking them). Blue-green cells need fewer than the unbiased 102, red cells more. The diagonal from bottom left to top right is the earlier essay’s single preference, 118 to 127; the bold diagonal is the lean, 95 to 104.

The plane shows where the earlier essay’s cost was. Its single preference runs along the diagonal from the bottom left, both directions avoiding the gaps, to the top right, both seeking them, and that diagonal is the most expensive line through the plane: 118 tunes at one end, 102 in the middle and 127 at the other. Cross it at right angles and the cost falls away. The opposed diagonal never rises above 104 and reaches the plane’s minimum, 95 tunes, in its corner where upward skips avoid the gaps and downward skips seek them.

The numbers do not sit symmetrically about the middle. A repertoire that seeks the gaps going down and is indifferent going up needs 107 tunes; one indifferent going down and avoiding them going up needs 101. Seeking the gaps upward with no preference downward costs 111. The plane slopes towards its bottom right, and its cheapest corner and dearest corner lie on different diagonals, which is the first sign that two separate things are being measured: whether the two directions agree, and which direction does the seeking.

What a corpus would count

A direction-dependent preference shows in a corpus as two different skip sizes up and down, while the average skip barely moves. Hirajōshi, pulled by degrees: the mean span in semitones of the upward and of the downward two-degree skips, and of all of them, against the opposed preference (upward skips' exponent; downward skips take its negative). -3: up 4.38, down 5.14, all 4.74; -2: up 4.52, down 5.04, all 4.77; -1: up 4.66, down 4.93, all 4.79; 0: up 4.79, down 4.81, all 4.80; 1: up 4.92, down 4.69, all 4.80; 2: up 5.03, down 4.57, all 4.79; 3: up 5.11, down 4.45, all 4.77.
Fig. 3 Hirajōshi, pulled by degrees: the mean span in semitones of the upward two-degree skips, the downward ones and all of them together, against the lean. Up 4.38 and down 5.14 at a lean of −3, 4.79 and 4.81 with skips taken evenly, 5.11 and 4.45 at +3. The average of all two-degree skips stays between 4.73 and 4.80 throughout.

The lean has a signature anyone with a transcribed corpus can look for, and it is not the one the earlier essay offered. That essay measured the average span of a melody’s two-degree skips, which on hirajōshi moved by more than a semitone between avoiding the wide gaps and seeking them. Along the lean the average hardly moves — between 4.73 and 4.80 semitones — while the upward and downward skips part by three quarters of a semitone at either end. A corpus that reported only the average would see a lean of three as no preference at all; the preference shows only when skips up and skips down are counted separately.

The lean also tilts which way the skips go, slightly. Because the weights are renormalised over all the skips at each degree, a repertoire that seeks wide gaps going up and avoids them going down takes a few more of its skips downward — 52 per cent at a lean of three, 47 per cent at minus three. That is a side effect of keeping the total share of skips fixed, not a separate preference, and it is small.

Why the same preference both ways was dear

The same preference both ways weakens both fitted pulls, which is what made it costly; opposed preferences leave them where they were. Hirajōshi: the fitted strength κ of the pull in semitones and of the pull in degrees, each fitted to a 60 per cent reversal, against the preference exponent, with the downward skips' exponent opposite to the upward (solid) or equal to it (dashed). Opposed: -3 0.449/0.440, -2 0.448/0.440, -1 0.448/0.441, 0 0.449/0.443, 1 0.450/0.445, 2 0.453/0.449, 3 0.457/0.453. Equal: -3 0.429/0.409, -2 0.444/0.429, -1 0.450/0.440, 0 0.449/0.443, 1 0.441/0.439, 2 0.429/0.431, 3 0.414/0.419.
Fig. 4 Hirajōshi: the fitted strength κ of the pull in semitones and of the pull in degrees, each fitted to a 60 per cent reversal after a skip, against the preference’s strength — with the downward skips’ preference opposite to the upward (solid) or the same (dashed). Opposed, the pulls stay between 0.448 and 0.457 in semitones and 0.440 and 0.453 in degrees. The same both ways, they fall to 0.429 and 0.409 at −3 and to 0.414 and 0.419 at +3.

The earlier essay explained its cost through the fitted pulls, and the figure confirms the explanation and narrows it. Both pulls are fitted to one observable, sixty per cent of skips followed by a turn back. A preference that makes every skip larger in semitones carries the melody further from the centre and needs a different pull to turn it back sixty per cent of the time; so does one that makes every skip smaller. In both cases the refitted pulls weaken, and weaker pulls make each note less informative about which one is in force. With the same preference both ways the pulls fall by nearly a tenth; with opposed preferences they stay within two hundredths of where they were. Leaping up across the gaps enlarges the upward skips and shrinks the downward ones, the average skip is left alone, and the reversal the pulls are fitted to is reached with the same pulls.

So the cost the earlier essay measured was a cost of moving the average skip, and a gap preference only paid it because a direction-blind preference has no way not to move the average. That is a different statement from the one the essay made — that a repertoire with idiosyncratic skips is the worst one to read the pull from. An idiosyncratic repertoire whose idiosyncrasy is directional is not worse at all.

The opposed lines do not stay perfectly flat, and their small slope is the second thing the plane showed. At a lean of minus three the two fitted pulls are 0.449 and 0.440, nine thousandths apart; with skips taken evenly 0.449 and 0.443; at plus three 0.457 and 0.453, four thousandths. Leaning down across the gaps pushes the two fitted pulls apart; leaning up draws them together. Two pulls that need different strengths to produce the same reversal are two models making more different predictions, and that is what makes them quicker to tell apart. Why the direction matters this way is a fact about hirajōshi’s layout around its centre. Above the centre its first two degrees are close, two and three semitones up; below it the wide gap comes first, four semitones down. The two notes that carry nearly all the evidence, one degree below the centre and two above, are four and three semitones away, the reverse of their order in degrees. A skip that crosses a wide gap downward lands the melody on the side where semitones and degrees disagree most. The figures record the outcome; the layout is where it comes from.

Every multiple of hirajōshi moves the same way

Along the opposed axis every multiple of hirajōshi rises as the skips lean down across the gaps, because hirajōshi alone gets cheaper there. Notes needed on each scale as a multiple of hirajōshi's, against the opposed preference (upward skips' exponent; downward skips the negative). double harmonic: -3 2.98, -2 2.96, -1 2.93, 0 2.89, 1 2.85, 2 2.79, 3 2.74; harmonic minor: -3 4.77, -2 4.63, -1 4.49, 0 4.37, 1 4.27, 2 4.19, 3 4.11; major: -3 5.01, -2 4.80, -1 4.62, 0 4.47, 1 4.34, 2 4.25, 3 4.17; major pentatonic: -3 5.42, -2 5.30, -1 5.20, 0 5.12, 1 5.07, 2 5.04, 3 5.03.
Fig. 5 Notes needed on each scale as a multiple of hirajōshi’s, against the lean. The double harmonic from 2.98 at −3 through 2.89 unbiased to 2.74 at +3; the harmonic minor 4.77, 4.37, 4.11; the major scale 5.01, 4.47, 4.17; the pentatonic 5.42, 5.12, 5.03.

Against the lean every other scale’s count moves by a few per cent and hirajōshi’s by about nine, so every multiple of hirajōshi moves together: all of them highest where the skips lean down across the gaps, all lowest where they lean up. The pentatonic runs from 5.42 times hirajōshi to 5.03, the major scale from 5.01 to 4.17. At a lean of minus three the pentatonic sits higher than any walk across repeats, skips or a direction-blind preference ever put it, whose range was 4.23 to 5.15. The double harmonic moves least, and its own count is exactly the same at a lean of two as at minus two, because its steps — one, three, one, two, one, three, one — read the same backwards, so a preference upward on it is the same walk as the mirror preference downward. That symmetry is a check the calculation passes; hirajōshi’s two, one, four, one, four does not read the same backwards, and so it can tell the two leans apart.

For the earlier essays’ practical conclusion this is a further qualification. The ratio between two scales was once a property of the scales alone, then of the scales and where their melodies skip. It is now also a property of which way they skip across what. A corpus that reports how often skips are taken, how often a skip is followed by a turn and how large the skips are on average still cannot fix the ratio; it also has to say how large its upward and downward skips are separately.

The augmented second decides the crossing going up

The harmonic minor needs more melody than the major scale only where upward skips seek the augmented second; downward skips hardly decide it. Notes needed on the harmonic minor, as a percentage above (+) or below (−) the major scale's, for each preference of upward skips for wide gaps (rows) and of downward skips (columns). up -3: -0.6, -1.0, -1.4, -2.0, -2.8, -3.7, -4.7; up -2: -1.5, -1.7, -2.0, -2.4, -3.0, -3.7, -4.5; up -1: -2.1, -2.2, -2.2, -2.5, -2.8, -3.3, -3.9; up 0: -2.4, -2.3, -2.1, -2.1, -2.3, -2.5, -2.9; up 1: -2.4, -2.0, -1.7, -1.4, -1.3, -1.4, -1.5; up 2: -2.1, -1.4, -0.9, -0.4, -0.0, 0.1, 0.2; up 3: -1.4, -0.5, 0.3, 1.0, 1.6, 2.0, 2.3.
Fig. 6 The harmonic minor’s count as a percentage above (+) or below (−) the major scale’s, for every pair of upward (rows) and downward (columns) preferences. The harmonic minor needs more only where upward skips seek the wide gaps at three and downward skips do not avoid them strongly (+0.3 to +2.3), and at two with downward skips seeking them too (+0.1, +0.2). Along the lean it needs less everywhere: 1.4 per cent at +3, 4.7 at −3.

The second half of the question was whether the crossing of the harmonic minor and the major scale moves with a direction-dependent preference. It does more than move. Along the lean, in either direction, the crossing never happens: the harmonic minor needs less melody than the major scale at every lean, by 1.4 to 4.7 per cent. The gap-fill repertoire, leaping up and filling down, leaves the two scales in the order they had with skips taken evenly.

The plane shows where the crossing went. The harmonic minor overtakes the major scale only in its top right corner: where upward skips seek the wide gaps at a strength of three and downward skips are anything from slightly avoiding them to seeking them, and at two only where both directions seek. Down the columns the sign hardly changes; across the rows it changes once. What decides which scale needs more melody is whether the melody leaps up across the augmented second. What it does coming down scarcely matters.

That is a sharper version of the earlier essay’s surprising connection, and it fits the practice better than the symmetric version did. The augmented second in the harmonic minor lies between its sixth and seventh degrees, the leading note above it. A melody that leaps up across it arrives on the leading note by leap, the move the conventions of tonal counterpoint forbid; a melody that comes down across it leaves the leading note by leap, which the same conventions dislike less. The melodic minor scale was codified to avoid the first move, raising the sixth on the way up and restoring it on the way down — a directional rule for exactly the directional case. Melodies in the hijaz mode, which shares the augmented second, use the leap freely in both directions. In this model the counterpoint rule keeps the harmonic minor the easier of the two scales for this question and the hijaz habit, if its upward leaps are strong enough, makes it the harder. As before, the two scales are so close that the change of rank is the smallest possible, and nothing about hirajōshi’s place at the top or the pentatonic’s at the bottom is disturbed anywhere in the plane.

What the lean does not reach

One kind of preference, in two directions. Each skip is weighted by its span relative to the average for its size, one rule at every degree, with a separate exponent for each direction. Real repertoires prefer particular leaps for reasons of their own — to the fifth of the mode, to a characteristic figure, into a cadence — and a gap-fill tendency is a statement about what follows a leap, which this walk represents only through the fitted reversal. A walk whose next move depended on whether the last skip crossed a gap is the natural next model and is not this one.

Skips only. Steps keep their unbiased directions. On hirajōshi a step is the move whose size varies most, a semitone or a major third, and a melodist who prefers one size of step going up and another going down would move the evidence in ways the lean does not reach.

The reversal rate is fixed at sixty per cent, taken from corpus studies of mostly Western melodies, and every number rests on fitting both pulls to it. The leap that pays itself back and the smoothness is in the skips are the reminders that the reversal may be a consequence of range rather than of a pull, in which case both pulls stand in for something else — and the reversal, unlike the pulls, is not symmetric between up and down in any corpus that shows gap-fill.

A walk is not a tune. A melody is a walk, not a set, but a tune also has phrases and cadences, and a descent to the final is a directional fact about every phrase that no stationary walk can represent. A melody’s pull can be counted only where a step is a skip is the reminder of how little of a tune’s evidence about the pull comes from where the evidence is most needed.

Which repertoires

The five scales are hirajōshi, the double harmonic, the harmonic minor, the major scale and the major pentatonic, each as a pattern of steps with no tonal hierarchy, and the walk is borrowed from three tunes’ counts of repeats, steps and skips. The lean is a hypothetical parameter, not a measurement of any repertoire. Corpus studies of Western folk melody report the leap-up, step-down shape; whether music in hirajōshi has it, and how strongly, has not been counted here, and the figures say only what each strength of lean would cost a study that tried to settle the question of the pull in that repertoire.

The surprising part

The earlier essay’s warning to a researcher was that the repertoire with the most idiosyncratic skips is the worst one to settle the question in. The direction-dependent walk reverses half of that. A repertoire whose skips are idiosyncratic in a way that keeps their average size — leaping one way across the gaps and filling them the other — is no worse, and one particular direction of it is better than any even-handed repertoire. Two sizes of every step and a scale is not a set of pitches argued that a scale degree is a position with neighbours of particular sizes; the walk adds that it also has neighbours in a particular order, above and below, and that a melody’s habit of crossing a gap one way rather than the other is part of what its scale is to a listener trying to learn the pull.

Still open: a reversal that depends on the gap just crossed

Every walk here fits both pulls to one reversal rate, sixty per cent after any skip. Gap-fill as corpus studies describe it is a reversal that depends on the skip: a leap across a wide gap is followed by a step back into it more often than a leap of the same size that crossed no gap. A walk with a memory of one move, its reversal after each skip set by whether that skip crossed one of the scale’s wide gaps, would make gap-fill a property of the walk rather than of the pull. The calculation is these two pulls fitted with a reversal that is higher after a gap-crossing skip than after another, and it would say whether hirajōshi’s question gets easier when the reversals carry information about the gaps — and whether, with reversal and preference both directional, the semitone pull and the degree pull can still be told apart at all.

Part 14 of 15

One essay in the series on melody. The essays either side of this one:

With skips taken as the three tunes take them, hirajōshi needs about three thousand notes and the pentatonic five times as many. Notes of melody needed to tell a pull towards the centre in semitones from one in degrees at a likelihood ratio of 99, both fitted to a 60 per cent reversal after a skip of two degrees or more, on five scales, with each skip weighted by (its span in semitones ÷ the mean span of a skip of that many degrees) to the power 0, the share of skips at each degree held fixed. hirajōshi 3054 (unbiased 3054); double harmonic 8836 (unbiased 8836); harmonic minor 13356 (unbiased 13356); major 13645 (unbiased 13645); major pentatonic 15634 (unbiased 15634). Where a melody skips moves the ratios that how often it skips could not Part 13 — How often a melody repeats, steps and skips changed how many tunes it takes to tell a pull counted in semitones from one counted in degrees, and left every scale a fixed multiple of hirajōshi to within a few per cent. Where it skips does not. Let a melodist prefer the skips that cross a scale's wide gaps, or avoid them, holding how often it skips, and the multiples move by up to a fifth: the pentatonic from 5.1 times hirajōshi to 4.2, the double harmonic from 2.9 to 2.4. Hirajōshi still needs fewest and the pentatonic most, but the harmonic minor and the major scale change places once skips seek the augmented second. A ranking of scales is mostly a property of the scales; their ratios belong to the scales and their repertoire together. With the memory supplying 10 per cent of the missing reversals, hirajōshi needs 255 tunes and the major scale still 455. Thirty-note tunes needed to tell a pull towards the centre counted in semitones from one counted in degrees at a likelihood ratio of 99, on five scales, both pulls fitted to a 60 per cent reversal after a skip of two degrees or more, when a skip across a step of three semitones or wider is remembered for one move and the memory supplies 10 per cent of the reversals the pull would not have produced. hirajōshi 255 (no memory 102); double harmonic 637 (no memory 295); harmonic minor 636 (no memory 445); major 455 (no memory 455); major pentatonic 1.3k (no memory 521). The major scale has no such step, and nothing changes on it. A melody that remembers its gaps hides its pull on the scales that have them Part 15 — Every walk here made its reversals after a skip from a pull towards the centre and nothing else, and the pull was the thing being measured. Give the walk a memory of one move — a skip across a wide gap is answered the other way more often — and the memory and the pull share the reversals. If the memory supplies a tenth of the reversals the pull would not, hirajōshi needs two and a half times the melody; past a fifth there is no pull left to measure. The scales whose gaps made the question cheapest lose it first, and the major scale, which has no gap, overtakes them all.

The objects named here

The third way in, after the field and the series: the things themselves, and every essay that touches each one.

Melodic intervalPost-skip reversalRandom walk