Scales and modes

The bar a gamelan can least afford wrong is the one its skeleton lands on

A wrong bar in a gamelan costs what its beating against the other instrument costs, and that depends on how often the music doubles the degree. The obvious place for doubling is where an elaborating part meets the skeleton at the end of each four-stroke unit, so the prediction was that the meeting rule would rank the degrees. It barely does: a part left to ring doubles a degree whenever it sounds it while the other instrument's bar still sounds, and the meetings add three per cent. What ranks the degrees is where the skeleton lands. A skeleton that ends its units on one degree makes that bar three and a half to five times as costly to leave wrong as any other single bar.

Assumes: A wrong bar beats the same on either instrument · The scale belongs to the ringing instrument

A wrong bar beats the same on either instrument priced a tuning error in a two-instrument gamelan texture — a ringing, elaborating part over a damped part four times slower, both on one measured slendro — and found that almost all of what a wrong bar costs is the wrong bar beating against the right one on the other instrument. A beat belongs to both bars that make it, so an error costs the same on either instrument. The degrees did not cost the same as each other, though, and the essay traced the difference to how often the music doubled each degree across the two instruments: the second degree landed on both at once eleven times in its sixteen bars, the sixth only twice.

It also said what that ranking was worth. In its passage both parts were drawn at random from one seed, so which degree was doubled most was an accident of the seed. In a real piece it is a fact of the style. The elaborating part is built around the skeleton’s pitches and arrives on them at structurally strong moments, and that would turn the degree-by-degree costs into a ranking of which bars a tuner can least afford to leave wrong. Computing it needed only a stated rule for where an elaboration meets its skeleton.

The rule is stated below, and the ranking comes out — but not from the rule the lead expected. Where the elaboration meets the skeleton scarcely matters. Where the skeleton itself lands decides everything.

The bar a tuner can least afford to leave wrong is the one the skeleton lands on. What a 10-cent error on each degree of a measured slendro adds to the roughness per second of a two-instrument texture over 128 bars, averaged over both instruments and both directions, with the elaborating part meeting the skeleton on the last stroke of every four-stroke unit. Top row: the skeleton's degrees drawn at random. Each row below: the skeleton ending every unit on one degree. Random: 1 0.219, 2 0.054, 3 0.083, 5 0.095, 6 0.104. Ending on 1: 1 0.348, 2 0.028, 3 0.049, 5 0.062, 6 0.068. Ending on 2: 1 0.171, 2 0.228, 3 0.049, 5 0.064, 6 0.067. Ending on 3: 1 0.170, 2 0.028, 3 0.247, 5 0.064, 6 0.068. Ending on 5: 1 0.170, 2 0.028, 3 0.049, 5 0.285, 6 0.069. Ending on 6: 1 0.171, 2 0.027, 3 0.049, 5 0.064, 6 0.305. The tonic's error moves its octave too, so it is two bars. In every row the degree the units end on costs the most, three and a half to five times what the dearest other single bar costs.
Fig. 1 What a 10-cent error on each degree of a measured slendro adds to the roughness per second of the two-instrument texture over 128 bars, averaged over both instruments and both directions, with the elaborating part meeting the skeleton on the last stroke of every four-stroke unit. Top row: the skeleton drawn at random. Below: the skeleton ending every unit on one degree. In each row that degree is the costliest bar, at 0.23 to 0.35 against 0.03 to 0.07 for the others; the tonic, which is two bars here, stays near 0.17.

The rule stated

The skeleton of a Javanese gamelan piece, the balungan, sits inside the punctuated cycle that a cycle that says where it is drew, and it is grouped in units of four strokes called gatra, and the last stroke of each unit is its goal, the seleh. The elaborating instruments are free inside the unit — they decorate, anticipate, move in their own figures — and they arrive at the skeleton’s pitch on the goal stroke. That convergence is the most consistently described feature of how the parts fit together, and it is exactly the stated rule the earlier essay asked for.

So the rendering keeps everything the earlier essay had: the measured slendro at 0, 231, 474, 717 and 955 cents over middle C, a bar’s inharmonic spectrum, whose partials at 2.76 and 5.40 times the fundamental the spectrum that was supposed to explain the gamelan examined, a ringing part striking every 0.15 seconds over a damped part four times slower, and roughness summed over every pair of notes sounding together — the scoring a scale is not a set of pitches introduced — with beating between the same degree on the two instruments counted as roughness, at the rate beats are arithmetic gives it. It adds one thing. On the last skeleton stroke of every four-stroke unit, the elaborating part’s simultaneous stroke plays the skeleton’s degree.

The rule has a second half, which is about the skeleton rather than the elaboration. Which degrees a skeleton’s units end on is not random in a real piece: a mode, a pathet, has tones its phrases favour as goals. That is not stated here from any corpus. It is a parameter: the skeleton may end its units on a stated degree, or one of several, with a stated probability. Everything is computed over 128 bars rather than sixteen, for a reason the next section gives.

The earlier ranking was the seed’s

Over sixteen bars the ranking of the degrees is the seed's. What a 10-cent error on each degree adds to the roughness per second of the two-instrument texture with both parts drawn at random, against how many bars the passage runs. degree 1: 16 bars 0.173, 32 bars 0.224, 64 bars 0.181, 128 bars 0.217, 256 bars 0.212. degree 2: 16 bars 0.093, 32 bars 0.051, 64 bars 0.046, 128 bars 0.051, 256 bars 0.061. degree 3: 16 bars 0.063, 32 bars 0.050, 64 bars 0.081, 128 bars 0.074, 256 bars 0.090. degree 5: 16 bars 0.076, 32 bars 0.048, 64 bars 0.108, 128 bars 0.086, 256 bars 0.075. degree 6: 16 bars 0.020, 32 bars 0.082, 64 bars 0.088, 128 bars 0.108, 256 bars 0.090. At sixteen bars the sixth degree is the cheapest by a factor of two or more; over longer passages it is the dearest of the four degrees that are one bar each, and the four settle between about 0.05 and 0.11.
Fig. 2 What a 10-cent error on each degree adds to the roughness per second with both parts at random, against how many bars the passage runs, from 16 to 256. At sixteen bars the sixth degree costs 0.020 and is the cheapest; from 32 bars on it costs 0.08 to 0.11. The four degrees that are one bar each settle between about 0.05 and 0.11; the tonic, two bars, near 0.21.

The first thing a longer passage does is dissolve the earlier ranking. Over the sixteen bars that essay rendered, a ten-cent error on the sixth degree cost 0.020 and on the second degree 0.093: the sixth looked like a bar a tuner could almost ignore. Over thirty-two bars from the same seed the sixth costs 0.082, over 128 bars 0.108, and over 256 bars 0.090. It is then one of the dearer single bars rather than the cheapest.

That is what the earlier essay’s own caveat predicted, and it is worth having measured. Sixteen bars is sixty-four elaborating strokes and sixteen skeleton strokes, and a degree that the skeleton happens to strike twice rather than three times loses a third of its doubling to chance. Over long passages the four single-bar degrees settle between about 0.05 and 0.11, with the higher degrees a little dearer because the same cents are more hertz higher up, and the tonic near 0.21 because its bar and its octave move together. None of that is a ranking a tuner could act on. It is the register and the rendering.

Meeting the skeleton adds three per cent

The meeting rule was expected to supply the ranking, by adding doubling where the skeleton lands. With the skeleton still at random, it adds almost nothing.

Meeting the skeleton on the unit's last stroke adds little to a ringing part's doubling. The summed cost of a 10-cent error on each of the five degrees, with both parts at random (left of each pair) and with the elaborating part meeting the skeleton on the last stroke of every four-stroke unit (right), for an elaborating part left to ring, given one stroke of ring and damped at the next stroke. left to ring: 0.537 free, 0.555 meeting, 3 per cent more; one stroke of ring: 0.134 free, 0.160 meeting, 20 per cent more; damped at the next stroke: 0.121 free, 0.147 meeting, 22 per cent more. A ringing part doubles a degree whenever it sounds it while the skeleton's bar is still sounding, or the skeleton strikes it while the ringing bar still sounds, so the few doublings the rule adds are a small share of the whole.
Fig. 3 The summed cost of a 10-cent error on each of the five degrees, with the parts free and with the elaborating part meeting the skeleton on each unit’s last stroke, for an elaborating part left to ring, given one stroke of ring and damped at the next. Left to ring: 0.537 free, 0.555 meeting, 3 per cent more. One stroke of ring: 20 per cent more. Damped: 22 per cent more.

With the elaborating part left to ring, as a gendèr’s bars ring over their resonators, meeting the skeleton on the goal stroke raises the summed cost of the five errors from 0.537 to 0.555: three per cent. The reason is what a ringing part does between the meetings. A beat needs only the two instruments to be sounding the same degree at the same time, not striking it together. A ringing bar sounds for most of a second, so whenever the skeleton strikes a degree that the elaborating part played in the last several strokes, the two beat — and whenever the elaborating part plays the degree the skeleton is sounding, they beat again. The meetings the rule adds, one every four skeleton strokes, are a small addition to the doubling the ringing already produces.

Damp the elaborating part and the meetings matter more, because there is less doubling for them to add to. With one stroke of ring, or damped at the next stroke, the summed cost is a quarter of what it is with ringing bars — 0.13 and 0.12 against 0.54 — and meeting the skeleton adds 20 and 22 per cent to it. On a gamelan whose elaborating instruments were damped, the goal stroke would carry a substantial share of every error’s cost. On one whose elaborating instruments ring, it carries very little, and the gendèr, the instrument the earlier essays have used for the ringing part, is exactly the one that rings — the reason the scale belongs to the ringing instrument in the first place.

What the skeleton lands on

The first figure is the other half of the rule, and it is where the ranking is. With every unit’s last stroke on one degree, that degree’s error costs 0.23 to 0.35. Every other single bar costs 0.03 to 0.07, because the skeleton’s goal strokes, a quarter of all its strokes, have been taken away from them. The goal tone costs between three and a half and five times what the dearest other single bar costs: 3.4 times when the goal is the second degree, rising with register to 4.8 when it is the sixth. (The tonic’s error moves two bars, its own and its octave, which is why it stays near 0.17 in every row; as a goal it reaches 0.35.)

The goal becomes the dearest bar for two reasons that add. The skeleton sounds it on about two strokes in five instead of one in five, so it is doubled against the ringing part’s many strokes of that degree twice as often. And on each goal stroke, under the meeting rule, the elaborating part strikes it too, adding a doubling with a fresh, loud note.

A goal tone's error costs in proportion to how often the skeleton lands on it. The cost of a 10-cent error on degree 6 against the share of the skeleton's four-stroke units that end on it, with the parts free and with the elaborating part meeting the skeleton on each unit's last stroke. parts free: 0% 0.108, 25% 0.144, 50% 0.184, 75% 0.215, 100% 0.233. meeting on the last stroke: 0% 0.104, 25% 0.161, 50% 0.228, 75% 0.260, 100% 0.305. The cost rises with the share either way; meeting the goal adds most where the goal is commonest.
Fig. 4 The cost of a 10-cent error on degree 6 against the share of the skeleton’s four-stroke units that end on it, with the parts free and with the elaborating part meeting the skeleton on each unit’s last stroke. Free: 0.108 when no unit is forced to end on it, 0.233 when all are. Meeting: 0.104 and 0.305.

The two contributions can be separated by letting the skeleton favour its goal only some of the time. With the parts free, the sixth degree’s cost rises from 0.108, when no unit is forced to end on it, to 0.233 when every unit does — the skeleton’s landing alone more than doubles it. With the elaborating part meeting the skeleton, the same range runs from 0.104 to 0.305. So the meeting rule, which added three per cent to errors in general, adds about a third to the goal tone’s cost when the skeleton lands there consistently. The rule for where an elaboration meets its skeleton matters exactly where the skeleton has a goal. Without one, the meetings are spread over every degree and disappear into the ringing. With one, they are concentrated on the goal bar and enlarge its cost by a third.

This is where the arithmetic connects to something a tuner could use. A gamelan plays in modes, and each mode has tones its phrases favour as goals. The model says that the bars a tuner can least afford to leave out of agreement between the ringing and the damped instruments are the goal tones of the modes the ensemble plays most, and that the ranking is steep: a goal bar ten cents out costs what three to five other bars ten cents out would.

What ten cents is on each bar

The register effect that runs through every figure has a size that can be stated as a beat. Ten cents on the tonic, middle C, is a beat of 1.5 hertz between the two instruments’ fundamentals; on the sixth degree, at 955 cents, the fundamentals sit near 454 hertz and the same ten cents is a beat of 2.6 hertz. A bar’s second partial, at 2.76 times its fundamental, beats 2.76 times as fast — 4.2 hertz on the tonic, 7.3 on the sixth — and its third, at 5.40 times, at 8.2 and 14.2. Every partial beats at its own rate, and on a bar the partials that carry most of the roughness are the upper ones, whose beats are fast enough to sit where the roughness curve is steep.

So an error of ten cents is not the same error on every bar. On a high degree it puts more of the beating into the range heard as roughness, and that is why, with the skeleton at random, the single-bar costs rise from about 0.05 on the second degree to about 0.10 on the sixth. It is also why a goal on a high degree produces a steeper ranking than a goal on a low one: the goal’s extra doublings are each worth more.

A tuner’s own sense of this runs the other way. A tuner counts beats, and a slow beat is easier to count than a fast one, so a low bar’s error is the easier to hear and correct precisely. The arithmetic here says the high bar’s error is the costlier to leave, and the two together mean the high goal tones are both the bars that matter most and the bars whose errors are hardest to hear as beats rather than as a general roughness.

A whole instrument out does not care

The earlier essay priced a second kind of error, the kind instruments made by different hands actually have: a whole instrument offset by a few cents against another.

A whole instrument out of tune costs nearly the same whatever the skeleton favours. What moving the whole ringing instrument against the damped one adds to the roughness per second, against the offset, with the elaborating part meeting the skeleton on each unit's last stroke, for a skeleton at random (dashed) and for skeletons ending every unit on each degree. At 10 cents: random 0.510, ending on 1 0.507, ending on 2 0.532, ending on 3 0.536, ending on 5 0.553, ending on 6 0.569. An offset moves every degree at once, so a skeleton that doubles one degree more doubles the others less, and the total barely moves; it grows a little with the goal's register, since the same cents are more hertz higher up.
Fig. 5 What moving the whole ringing instrument against the damped one adds to the roughness per second, against the offset, with the elaborating part meeting the skeleton, for a skeleton at random and for skeletons ending every unit on each degree. At 10 cents: 0.51 at random and 0.51 to 0.57 whatever the goal.

Where the skeleton lands scarcely moves it. Ten cents on the whole ringing instrument costs 0.51 with the skeleton at random and between 0.51 and 0.57 for skeletons ending every unit on any one degree. An offset moves every degree at once, so a skeleton that doubles one degree more doubles the others less and the total is nearly unchanged. It is also the error a gamelan sometimes chooses: the pair tuned apart on purpose is built from instruments offset against each other for their beating. It rises a little with the goal’s register — from 0.51 when the goal is the tonic to 0.57 when it is the sixth degree — because the same cents are more hertz, and so a faster beat, higher up.

So the two kinds of error rank differently. An offset instrument costs what it costs whatever the piece, and the earlier essay’s finding that the scale’s standing does not move under an offset holds here too. A single wrong bar costs what the repertoire makes it cost, and the repertoire can make it cost a great deal. A tuner correcting a whole instrument has no reason to care what the ensemble plays. A tuner correcting one bar has every reason.

Three goals share the cost

A mode does not have one goal tone. The accounts of Javanese pathet describe a few favoured tones, a gong tone and others, and the next figure divides the skeleton’s goal strokes among three degrees.

Three goal tones share the extra cost, and a low one may gain almost none. What a 10-cent error on each degree costs, with the elaborating part meeting the skeleton on each unit's last stroke, for a skeleton at random and for two skeletons whose units end on one of three degrees each. skeleton at random: 1 0.219, 2 0.054, 3 0.083, 5 0.095, 6 0.104. units ending on 6, 2 and 3: 1 0.171, 2 0.097, 3 0.082, 5 0.064, 6 0.161. units ending on 5, 1 and 2: 1 0.224, 2 0.066, 3 0.049, 5 0.162, 6 0.068. Together each set's three goal tones cost more than the same degrees under a random skeleton, but divided three ways the gain is small beside the register's own effect: a goal on degree 2 or 3 can end up no dearer than degree 6, on which the skeleton never ends a unit.
Fig. 6 What a 10-cent error on each degree costs, with the elaborating part meeting the skeleton, for a skeleton at random and for skeletons whose units end on one of 6, 2 and 3, or one of 5, 1 and 2. With goals 6, 2 and 3 the sixth degree costs 0.161 and the second 0.097, against 0.104 and 0.054 at random; the third stays at 0.082. With goals 5, 1 and 2 the fifth costs 0.162 and the second only 0.066.

Divided three ways, the effect shrinks and the register shows through it. With units ending on 6, 2 or 3, the sixth degree’s error costs 0.161 against 0.104 at random, and the second’s 0.097 against 0.054. The third degree gains nothing: 0.082 against 0.083. With units ending on 5, 1 or 2, the fifth rises from 0.095 to 0.162 while the second, also a goal, rises only from 0.054 to 0.066 and costs less than the sixth degree, which the skeleton never ends a unit on.

Taken together, each set’s three goal tones cost more than the same three degrees at random — 0.34 against 0.24 for the first set, 0.45 against 0.37 for the second — so the ranking’s direction survives. But with the goal strokes shared, a low goal can gain too little to overtake a high non-goal, because a beat at the same number of cents is slower and softer lower down. The steep ranking of the first figure is the ranking of a skeleton with one dominant goal. A mode with several near-equal goals gives a tuner a much flatter one, in which the register counts for about as much as the goals.

Which computation produced the numbers

The scale, spectrum, tempi and roughness are the earlier essay’s. Both parts are drawn at random from one seed over 128 bars, 512 elaborating strokes against 128 skeleton strokes. The meeting rule sets the elaborating stroke that coincides with each unit’s last skeleton stroke to the skeleton’s degree. The goal rule sets that last skeleton stroke to a stated degree, or one of several, with a stated probability, from a second seed so that the rest of the passage is unchanged. A single-degree error moves one bar of one instrument ten cents; each cost is averaged over the two instruments and the two directions. An offset moves every bar of the ringing instrument.

Where the model stops

Beating counted as roughness. As before, the Plomp–Levelt curve is used to price a beat of a hertz or two, which a listener hears as a slow waxing and waning; the comparisons are unaffected and the absolute sizes at small errors overstated.

A random elaboration. Between its meetings with the skeleton the elaborating part is random. A real gendèr part is patterned, anticipates the goal, and often sounds the goal tone before the goal stroke as well as on it. That would add doubling of the goal before the goal stroke and make the goal bar’s cost larger than drawn here — the direction the argument already goes.

A fixed pair. Two instruments stand for a gamelan, which has many pairs at different speeds and octaves, and the tempo, which the tempo moves a scale further than the touch found moves a scale’s standing further than the touch does, is held at one value. Each pair would add its own beating; whether the goal tones dominate the sum depends on whether the other elaborating parts meet the skeleton too, which in this style most do.

What the picture cannot show

Which tones a mode favours. The goal tones are parameters here. Which degrees a particular pathet’s phrases end on, and how strongly, is a fact about the repertoire that needs the repertoire.

Whether tuners already do this. The prediction is that the bars worth matching most closely across instruments are the goal tones of the modes an ensemble plays most. Whether gamelan tuners work that way, and whether a set of instruments that plays mostly in one mode shows its goal-tone bars matched more closely than the rest, would need measurements of instruments rather than arithmetic.

Still open: the goal tone reached before its stroke

The meeting rule here puts the elaborating part on the goal only at the goal stroke. A gendèr part, like most elaborations in the style, commonly reaches the goal tone early and sustains or repeats it into the goal stroke, so the goal is doubled for a stretch rather than an instant — and, because the elaborating bar rings, that stretch extends past the stroke into the next unit. Replacing the single meeting with an arrival a stated number of strokes early would say how much of a goal bar’s cost is the anticipation, and whether an elaboration that anticipates its goals makes the ranking steep even for a mode with three goal tones of equal weight.

Part 15 of 24

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

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down.

What this makes readable

Essays that declare this one a prerequisite.

The objects named here

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

BeatingDetuningIntonationRoughnessScale degreeSlendro