Scales and modes

A melody that remembers its gaps hides its pull on the scales that have them

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.

Assumes: A melody that leaps down across hirajōshi's gaps is the quickest to read · The leap that pays itself back

A melody that wanders comes back towards the middle of its range, and a run of essays has asked in what unit the pull that brings it back is counted: in semitones, the distance on a keyboard, or in scale degrees, the distance in the scale. On an evenly spaced scale the two are the same model. On hirajōshi, whose steps are one and four semitones, they differ, and counted in degrees, a melody’s pull costs a hundred tunes on hirajōshi, not a dozen priced telling them apart at about a hundred thirty-note tunes. Three essays since have moved that price by changing how a melody moves — how often it skips, where it skips to, and in which direction — and each time hirajōshi stayed the cheapest scale to settle the question on.

Every one of those walks had no memory. Which way a move goes depended on where the melody was and on the pull, never on the move before it, and the sixty per cent of skips followed by a move the other way was produced by the pull alone. That was a convenience and also the whole of the method: the pull was fitted to the reversal, and the reversal was the evidence. A melody that leaps down across hirajōshi’s gaps is the quickest to read ended by naming the obvious objection. Gap-fill, as corpus studies describe it, is a reversal that depends on the skip: a leap across a wide gap is answered by a move back into it more often than a leap of the same size that crossed none. That is a memory, and a memory makes some of the reversals that the pull was being credited with.

So the walk was given one. The result is not that hirajōshi’s question gets easier because the reversals now carry information about its gaps. It gets harder, much faster than any change to how a melody moves has made it, and it gets harder exactly because hirajōshi has gaps.

With the memory supplying 10 per cent of the missing reversals, hirajōshi needs 255 tunes and the major scale still 455Thirty-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.2556376364551.3khirajōshidouble harmonicharmonic minormajormajor pentatonic5010030010003000thirty-note tunes neededmemory 10%light: no memory
Fig. 1 Thirty-note tunes needed to tell a pull counted in semitones from one counted in degrees, on five scales, when a skip across a wide gap is remembered for one move and the memory supplies the share of the missing reversals the dial sets; the light bars have no memory. The major scale, with no gap to remember, never moves. At any strength above nought every other scale needs more melody, and the scales whose skips most often cross a gap rise the most.

A memory of one move

The walk is the earlier essays’ in every other respect, and like theirs it is a walk because a melody is a walk, not a set: a path of mostly small moves across a scale rather than a choice among its notes. 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 shares three tunes gave: 31 repeats, 55 steps and 15 skips in 101 moves. Which way a move goes comes from a pull towards the centre that grows with distance, either in semitones or in degrees.

The new thing is what the walk remembers. Its state is now the degree and what its last move was: nothing worth remembering, a repeat or a step; a skip of two degrees or more that crossed a wide gap, meaning a step of the scale three semitones or wider lies inside it; or a skip that crossed none — each of the last two either up or down. After a remembered skip across a gap, the chance q that the next move, a repeat aside, goes back the other way under the pull becomes

q + γ (1 − q)

so γ is the share of the reversals the pull would not have produced that the memory supplies instead. A skip that crossed no gap is answered by the pull alone, as before. The pull’s strength κ is then refitted, as in every earlier essay, so that sixty per cent of all skips of two degrees or more are followed by a move the other way. Memory and pull now share that sixty per cent.

The two fitted walks, one pulled in semitones and one in degrees, are compared exactly as Markov chains on degree and memory together. The information per note separating them gives the notes needed to tell them apart at a likelihood ratio of 99, and dividing by thirty gives tunes. With γ at nought the walk is the earlier essays’ state for state, and so are its numbers: 102 tunes on hirajōshi, 295 on the double harmonic, 445 on the harmonic minor, 455 on the major scale and 521 on the major pentatonic.

What counts as a gap matters and is a choice. Three semitones makes the major third steps of hirajōshi gaps, and the augmented seconds of the harmonic minor and the double harmonic, and the minor thirds of the pentatonic. The major scale’s widest step is a whole tone, so on the major scale there is no gap to remember and γ changes nothing — the figures check that it changes nothing to the last digit, since it is the one control the model carries inside itself.

The pull drains

At γ of a tenth, the hero’s bars, hirajōshi needs 255 tunes instead of 102. The double harmonic needs 637, the harmonic minor 636 and the pentatonic about 1,300. The major scale still needs 455.

The memory takes the reversals over and the pull drains to nothing a little past a fifth. Hirajōshi, both pulls refitted at each strength of the memory so that sixty per cent of skips reverse: the fitted κ of the pull in semitones and in degrees. 0: 0.449 and 0.443; 0.025: 0.420 and 0.414; 0.05: 0.388 and 0.384; 0.075: 0.355 and 0.351; 0.1: 0.318 and 0.315; 0.125: 0.278 and 0.275; 0.15: 0.232 and 0.230; 0.175: 0.178 and 0.177; 0.2: 0.101 and 0.100. At 0.206 the memory reverses sixty per cent of skips by itself, κ is nought, and the two meanings of distance are one walk.
Fig. 2 Hirajōshi, both pulls refitted so that sixty per cent of skips reverse, as the memory of the last gap-crossing skip supplies more of the reversals: the fitted strength of the pull in semitones and in degrees. Both fall together, steadily and then steeply, and reach nought at 20.6 per cent, where the memory alone makes sixty per cent of skips reverse.

The mechanism is simple once the fitted pull is drawn. Every reversal the memory makes is one the pull no longer has to, so the refitted κ falls: on hirajōshi from 0.443 with no memory to 0.315 at a tenth and 0.100 at a fifth, the semitone pull and the degree pull falling together within a few thousandths of each other. The information that separates them falls faster than κ does. The two pulls differ in where they push hardest — at the notes beside hirajōshi’s major thirds, where a semitone of distance and a degree of distance part company — and a weaker pull pushes less hard everywhere, so the difference it leaves for a listener or a corpus to detect shrinks faster than the pull itself does. At a fifth the pull is under a quarter of its strength and the melody needed is fifty-seven times as long.

At 20.6 per cent the memory makes sixty per cent of skips reverse by itself. κ is nought, both walks are the same walk, and no amount of melody tells a semitone pull from a degree pull, because there is no pull to tell. Before that point the cost climbs steeply: 150 tunes at five per cent, 367 at twelve and a half, 596 at fifteen, about 1,200 at seventeen and a half, 5,800 at twenty.

This is a different kind of effect from anything the earlier essays varied. How often a melody repeats moved hirajōshi’s count between 52 and 246, and where and which way it skipped moved it by a quarter. A memory as weak as one reversal in ten that the pull would not have made moves it by a factor of two and a half. The question was always a question about a pull, and anything else that makes reversals takes the pull away.

How much memory leaves nothing

The strength at which the pull vanishes is a property of each scale, and the comparison between scales holds the essay’s first surprise.

A memory of gaps replaces the pull soonest where the gaps are, and never on the major scale. The share of the missing reversals at which the memory alone reverses sixty per cent of skips of two degrees or more, leaving no pull to fit, on five scales: for a memory of skips across a step of three semitones or wider, and for a memory of every skip. hirajōshi: gaps 0.206, every skip 0.189; double harmonic: gaps 0.242, every skip 0.189; harmonic minor: gaps 0.447, every skip 0.189; major: gaps never, every skip 0.189; major pentatonic: gaps 0.206, every skip 0.189. With no pull the walk is the same in degrees on every scale, so a memory of every skip runs out of pull at one strength everywhere; a memory of gaps acts only on the skips that cross one, so it takes longer where fewer do.
Fig. 3 The share of the missing reversals at which the memory alone reverses sixty per cent of skips, leaving no pull to fit, on five scales: for a memory of skips across a gap of three semitones or wider, and for a memory of every skip of two degrees or more. Remembering every skip empties the pull at 18.9 per cent on every scale; remembering only gaps takes 20.6 on hirajōshi and the pentatonic, 24.2 on the double harmonic, 44.7 on the harmonic minor, and never empties it on the major scale.

A memory of every skip runs the pull out at exactly the same strength on all five scales, 18.9 per cent. The reason is that with no pull the walk does not know which scale it is on. It moves in degrees with the tunes’ step shares and goes either way with equal chance, and on any scale with any spacing that is one walk. Its reversals after a skip are then the same everywhere, and so is the memory needed to lift them to sixty per cent.

A memory of gaps acts only on the skips that cross one. On hirajōshi and the pentatonic that is 92 per cent of skips, so the memory has to be only slightly stronger than a memory of everything — 20.6 per cent — to do the same work. On the double harmonic it is 80 per cent and the pull lasts to 24.2. On the harmonic minor, whose only gap is the augmented second between its sixth and seventh degrees, fewer than half of skips cross a gap, and the memory has to supply 44.7 per cent of the missing reversals on those to carry the whole sixty. On the major scale, no strength suffices. A melody that only remembers gaps cannot replace the pull on a scale with none.

The ranking turns over

Put those together and the order of the scales reverses.

The scale that was quickest to read falls behind three others, and the major scale overtakes all four. Thirty-note tunes needed on five scales against the share of the missing reversals a memory of the last gap-crossing skip supplies, the pulls refitted at each strength. hirajōshi: 0 102, 0.05 150, 0.1 255, 0.125 367, 0.15 596, 0.175 1.2k, 0.2 5.8k; double harmonic: 0 295, 0.05 412, 0.1 637, 0.125 838, 0.15 1.2k, 0.175 1.8k, 0.2 3.2k; harmonic minor: 0 445, 0.05 526, 0.1 636, 0.125 706, 0.15 790, 0.175 893, 0.2 1k; major: 0 455, 0.05 455, 0.1 455, 0.125 455, 0.15 455, 0.175 455, 0.2 455; major pentatonic: 0 521, 0.05 766, 0.1 1.3k, 0.125 1.9k, 0.15 3k, 0.175 6.2k, 0.2 29.3k. Infinity is a memory that leaves no pull to measure. The major scale does not move; the scales with the widest gaps rise fastest.
Fig. 4 Thirty-note tunes needed on five scales against the share of the missing reversals a memory of the last gap-crossing skip supplies. The major scale is flat. Hirajōshi, the cheapest with no memory, passes the major scale between twelve and a half and fifteen per cent and ends behind three others; the pentatonic, the dearest throughout, rises fastest of all.

With no memory, hirajōshi needs 102 tunes and the major scale 455, four and a half times as many. That ratio was the argument of where a melody skips moves the ratios that how often it skips could not and the two essays before it: the scale with very unequal steps is where a semitone pull and a degree pull disagree most, so it is where the question can be settled with least melody. With a memory of gaps that ordering is temporary. The harmonic minor passes the major scale almost immediately, before five per cent; the double harmonic between five and ten; hirajōshi between twelve and a half and fifteen. At a fifth, the major scale needs 455 tunes, the harmonic minor about a thousand, the double harmonic 3,200, hirajōshi 5,800 and the pentatonic 29,000.

The order at the end is the order of how many of each scale’s skips cross a gap, from none on the major scale to ninety-two per cent on hirajōshi and the pentatonic. The disagreement between the two pulls lives at the edges of the wide steps. So does the memory. The scale with the most to say about the pull is the scale on which a memory of its gaps can say it instead.

The pentatonic deserves a line of its own. It was the dearest scale with no memory, because its steps of two and three semitones are nearly even and the two pulls barely disagree. Its gaps are minor thirds, every one of its skips crosses one, and the memory takes its small disagreement away at the same rate as hirajōshi’s large one. A scale that was hard to read becomes very nearly unreadable.

What a corpus would count

The memory was introduced as a model of gap-fill, so the obvious check is whether gap-fill would show it: whether, in a melody with this memory, skips across a gap are answered more often than skips across none.

Skips across a gap reverse more often than other skips before any memory is added. The walk pulled in degrees and refitted at each strength of the memory: the share of skips of two degrees or more followed by a move the other way, after a skip that crossed a step of three semitones or wider (solid) and after one that crossed none (dashed). hirajōshi: 0 60.3 and 56.4, 0.05 60.4 and 55.1, 0.1 60.6 and 53.7, 0.125 60.6 and 52.9, 0.15 60.7 and 52.2, 0.175 60.7 and 51.4, 0.2 60.8 and 50.6; harmonic minor: 0 61.0 and 59.2, 0.05 62.1 and 58.5, 0.1 63.3 and 57.6, 0.125 63.9 and 57.2, 0.15 64.5 and 56.8, 0.175 65.1 and 56.3, 0.2 65.7 and 55.9; double harmonic: 0 60.9 and 56.5, 0.05 61.2 and 55.4, 0.1 61.5 and 54.3, 0.125 61.7 and 53.7, 0.15 61.9 and 53.0, 0.175 62.1 and 52.4, 0.2 62.3 and 51.7. With no memory the difference is the pull's own: a skip across a wide gap travels further from the centre and is pulled back harder. The memory widens it, and mostly from below: as the pull drains, the skips that cross no gap lose their reversals, while those that cross one barely gain.
Fig. 5 The share of skips followed by a move the other way, after a skip that crossed a gap and after one that crossed none, on hirajōshi, the harmonic minor and the double harmonic, as the memory grows and the pulls are refitted. With no memory at all, skips across a gap already reverse more often. The memory widens the difference mostly by taking reversals from the skips that cross no gap.

They are, and they already were. With no memory, on hirajōshi, 60.3 per cent of skips across a gap are followed by a move the other way against 56.4 per cent of skips across none. On the harmonic minor it is 61.0 against 59.2, on the double harmonic 60.9 against 56.5. The pull produces it unaided. A skip across a wide gap covers more semitones than one of the same number of degrees that does not, so it more often ends far from the centre, and far from the centre the pull is stronger. That is the argument of the leap that pays itself back applied inside a scale: a bigger leap is answered more often by regression alone, and a leap across a gap is a bigger leap.

So a corpus that finds skips across gaps reversing more often than other skips has not found a memory. It has found the pattern the pull alone would leave, at about the size the pull alone would leave it.

The memory does change the counts, and where it changes them is the useful part. As γ rises the reversal after a skip across a gap barely moves — on hirajōshi from 60.3 to 60.8 per cent at a fifth — because the overall rate is held at sixty and most of hirajōshi’s skips cross a gap. The reversal after a skip across no gap falls, from 56.4 to 50.6, towards the even chance of a walk with no pull at all. A memory of gaps shows up not as more gap-fill but as less reversal everywhere else. The measurement that would separate a memory from a pull is the reversal after skips that cross no gap, compared with what the pull fitted to all skips predicts for them.

Knowing where the gaps are

A memory that knows where the gaps are costs less than one that remembers every skip. Thirty-note tunes needed on hirajōshi and the harmonic minor against the memory's strength, when only skips across a step of three semitones or wider are remembered (solid) and when every skip of two degrees or more is (dashed). hirajōshi, gaps: 0 102, 0.05 150, 0.1 255, 0.125 367, 0.15 596, 0.175 1.2k, 0.2 5.8k; hirajōshi, every skip: 0 102, 0.05 157, 0.1 290, 0.125 450, 0.15 844, 0.175 2.6k, 0.2 ∞; harmonic minor, gaps: 0 445, 0.05 526, 0.1 636, 0.125 706, 0.15 790, 0.175 893, 0.2 1k; harmonic minor, every skip: 0 445, 0.05 698, 0.1 1.3k, 0.125 2.1k, 0.15 4k, 0.175 12.6k, 0.2 ∞. A memory of every skip takes the reversals from the pull on every skip at once; a memory of gaps leaves the pull to make the reversals after the others, and those are evidence.
Fig. 6 Thirty-note tunes needed on hirajōshi and the harmonic minor against the memory’s strength, when only skips across a gap are remembered and when every skip is. At every strength a memory that knows where the gaps are costs less melody than one that remembers every skip, and on the harmonic minor much less.

The essay’s question asked whether reversals that carry information about the gaps would make hirajōshi’s question easier. Against a walk with no memory they do not, as the figures above show. Against a memory that carries no information about gaps — every skip remembered alike — they do. At a tenth, hirajōshi needs 255 tunes with a memory of gaps and 290 with a memory of every skip; at fifteen per cent, 596 against 844; at a fifth, 5,800 against none at all, since a memory of every skip has emptied the pull by then. On the harmonic minor the difference is large: 790 tunes against 4,000 at fifteen per cent.

The reason is the same arithmetic. Whatever the memory does not cover, the pull must still make, and those reversals are evidence about the pull. A memory confined to gaps leaves the pull working after every other skip; a memory of everything takes the reversals from the pull everywhere at once. Information about the gaps does help, then, but only in the sense that it is information about which reversals not to take from the pull.

What the walk leaves out

One move of memory, and only its direction. The memory sets which way the next move goes, not how far. Gap-fill in the corpus sense is often a step back into the gap — a particular size as well as a direction — and a walk whose memory also favoured a step over a skip after crossing a gap would move the evidence in a way this one does not reach.

γ is a share, swept, not a measurement. No repertoire’s γ is known. The figures say what each strength would cost; whether any music in hirajōshi has a memory of its gaps of a tenth, a fifth or nothing has not been counted here.

A gap is three semitones or wider. Moving the threshold to four would leave hirajōshi’s gaps and remove the augmented seconds and the pentatonic’s minor thirds, putting the harmonic minor, the double harmonic and the pentatonic beside the major scale. The ranking that turns over is a ranking at this threshold.

The sixty per cent is held fixed. Every pull is refitted to the same overall reversal, so the memory always takes its reversals from the pull. If a melody’s memory added reversals on top of what its pull already made, the overall rate would rise above sixty, and the pull would be measurable through the memory instead of hidden by it. The corpus rate is the constraint that makes the two compete.

Three tunes’ moves. The shares of repeats, steps and skips come from three major-key songs, as in every essay of this sequence. How a melody moves sets how many tunes it takes, and not which scale needs fewest found those shares moving the counts several-fold, and that holds here too.

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 no tradition attached. Gap-fill has been counted in corpora of Western folk and art melody, mostly on diatonic and pentatonic material, where the corpus literature has repeatedly found much of the reversal after a leap accounted for by a melody’s return towards the middle of its range. That is a finding that γ is small in those repertoires, and it is what the method needs: the question of how a melody measures distance can be settled in a repertoire only where the reversals belong to the pull. Whether that is true of music written in hirajōshi is the first thing a study of it would have to establish, and the reversal after skips that cross no gap is the count that would establish it.

The surprising part

A tune’s range is a number of notes, not an interval found that a walk’s width is counted in notes and measured afterwards in semitones, and a melody’s pull can be counted only where a step is a skip found the evidence about the pull concentrated at a scale’s wide steps. Both made hirajōshi’s gaps the place to look. This essay finds that the same gaps are where a melody’s habit of answering a leap would hide what was there to see. The feature that makes a scale informative about how a melody measures distance is the feature a melody is most likely to have a habit about, and a habit is enough. A listener or a corpus trying to learn the pull from a gapped scale is learning it exactly where the music has the most other reasons to turn round.

Still open: a memory that fills the gap with a step

The memory here chooses only the direction of the move after a skip across a gap. Gap-fill as theorists describe it is more specific: the gap is filled, by a step back into it, so that the notes skipped over are supplied. A memory that set the size of the next move as well as its direction — a step more likely than a skip after a gap was crossed — would leave the reversal rate where this one puts it and change which notes the melody visits next, and on hirajōshi the notes inside a gap are exactly the notes beside the major thirds where the two pulls disagree most. The calculation is this walk with the step shares after a gap-crossing skip moved towards a step, the pulls refitted, and it would say whether filling the gap gives back to the pull the evidence that turning round took from it.

Part 15 of 15

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

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