One Scale or One Shimmer

A Balinese gamelan instrument is built twice. Two sets of bronze, tuned a few hertz apart, struck as one voice, so every note arrives with a slow wave in it. The tuner sets that wave as a rate, so many beats per second, and holds it across the whole instrument. That single choice has a consequence nobody chose: the two halves can no longer carry the same scale. Not approximately. Exactly, and by an amount you can compute.

every number recomputed in your browser · one shared engine · research/ombak/verify-ombak.mjs

The word is ombak, wave. Strike a single bronze key and you get a tone. Strike the pair, one bar tuned slightly above its twin, and the two tones add and cancel and add again, so the loudness of the note pulses. The pulse rate is simply the difference between the two frequencies: two bars 8 Hz apart beat eight times a second, whatever pitch they are at. That is the physics, and it is the whole of the physics.

The interesting part is the arithmetic, and it starts with a question a tuner has to answer at every key on the instrument: how far apart?

1. Hear the pair

Fifteen keys, three octaves of a five-tone Balinese ladder. Press one. You will hear the lower bar alone, or the upper alone, or the two together, depending on the switch. The sound is synthesised, and the synthesis is described honestly further down: what matters here is that the beat you hear is the number the panel prints.

The instrument

What sounds
How the tuner holds it

Press a key.

2. The tuner's choice, and what it sounds like

Switch the policy and press play all fifteen under each. Under a constant rate the wave stays the same speed from the bottom of the instrument to the top: eight beats a second down among the big low keys, eight beats a second up among the small bright ones. Under a constant interval the low keys sway lazily and the top keys buzz, because holding the gap at a fixed number of cents means the gap in hertz grows with the pitch. At the top of these three octaves the constant-interval pair beats at , which is no longer a shimmer at all. It is roughness.

The beat rate at each of the fifteen keys, under both policies. Recomputed live from the controls above.

So the tuner's choice is easy, and Balinese tuners made it a long time ago: they set a rate. The shimmer is the sound of the instrument, and an instrument whose sound changes character between its bottom and its top is not one instrument.

3. What the choice costs

Here is the thing that is not obvious. Ask what the same detuning looks like as an interval. Eight hertz at 125 Hz is a gap of , which is most of a semitone. Eight hertz at 2,000 Hz is a gap of , which is a twentieth of one. Constant in hertz means steeply shrinking in cents, and cents are what a scale is made of.

Now take any two keys, low and high. Call the lower bar's frequencies u1 and u2, and let the upper bar sit d1 and d2 hertz above each. The interval each member of the pair spans between those two keys is:

span(pengumbang) = 1200 · log2(u2 / u1)
span(pengisep)   = 1200 · log2((u2+d2) / (u1+d1))

Subtract, and the logarithms collapse into something short and exact:

span(umbang) − span(isep) = 1200 · log2(1 + d1/u1) − 1200 · log2(1 + d2/u2)

Read the right-hand side out loud. It is the ombak at the low key, expressed as an interval, minus the ombak at the high key, expressed as an interval. So the two facts are one fact: the amount by which the lower instrument's scale outruns the upper one's is exactly the amount by which the shimmer narrows as you go up. A tuner who keeps the wave steady is, by that act and without any further decision, stretching one instrument relative to the other.

Two corollaries follow immediately, and the page checks both over ten thousand random pairs rather than asking you to take them:

That is the trade in the title. One scale, or one shimmer. There is no third option, because the two conditions are complementary halves of the same equation.

How far the pengisep's own scale falls behind the pengumbang's, key by key, under each policy. A constant interval holds it at exactly zero, which is what one shared scale looks like. A constant rate does not.
The fifteen keys under the current policy
keypengumbangpengisep beatbeat as interval umbang ladderisep laddergap

4. Try to escape it

Set the two detunings yourself. Give both members an exact 2:1 octave and watch what the beat rate has to do; give both keys the same beat rate and watch what the octaves have to do. The panel recomputes the identity from your numbers, both ways, and prints the difference between the two ways of computing it, which is the residual left by floating point and nothing else.

The identity, on your numbers

5. Measure it, rather than believe it

A page that computes a beat rate and then plays a sound has told you nothing about whether the sound has that beat rate in it. So the meter below takes the audio buffer this page just built, forgets everything it knows about how it was made, and measures the beat rate back out of the samples two independent ways:

If the two disagree by more than the stated tolerance the meter reports a disagreement rather than an average, because two methods that disagree have not measured anything. Feed it white noise, or a single bar with no partner, and it refuses.

The meter

Press a key above, then measure it.

There is one more thing the meter can see, and it is the reason a pair of bronze bars is not the same object as a pair of sine waves. A struck bar rings in several modes at once, and for an ideal free bar those modes sit at 1, 2.76, 5.40 and 8.93 times the fundamental, the squares of the roots of cos x · cosh x = 1. If the two bars of a pair are the same shape at two slightly different sizes, then every mode is scaled by the same factor, so mode j of the pair beats at pj times the fundamental's rate. An 8 Hz pair beats at 22 Hz in its second mode and 43 Hz in its third. The shimmer is not one wave. It is a stack of them, and the higher ones are already inside the range a listener hears as roughness rather than as pulsing.

Beat rate measured in each partial of a synthesised pair
moderatiofrequency predicted beatmeasured beat

6. What Balinese tuners actually do

Everything above is arithmetic, and arithmetic cannot tell you what anybody does. So here is the published record, quoted rather than paraphrased, because the exact wording is what carries the claim.

The principle, from the article that assembled Andrew Toth's measurements of 54 Balinese gamelan:

The rate is not random or arbitrary, but is deliberately fixed and consistently applied. A pande or tuner establishes a desired ombak rate, typically about 8 Hz for a gong kebyar, and then keeps the ombak constant throughout the orchestra’s complete multi-octave range. This rate—the distance between paired tones—is called penyorog by Balinese smiths and musicians. Wayne Vitale and William Sethares, Analytical Approaches to World Music 9.2 (2021), p. 6

And the consequence, on the very next page, together with the older statement it credits:

As a result of this “constant ombak” principle, whereby the lowest pair of jegogan tones and the highest pair of kantilan tones should beat at the same rate, unisons and octaves enter into a fascinating interdependence, where exact 2:1 octaves are impossible to achieve on both members of a pair. As Toth (1980) noted, “if a constant beat rate is desired throughout the range of a set, one soon realizes that not all the octaves on the low instruments and on the high instruments can be tuned to a perfect 1200 cents.” Vitale and Sethares 2021, p. 7, quoting Andrew Toth 1980

So the impossibility is not ours. It has been in print since 1980, and Michael Tenzer stated the same either-or in 2000, twenty years before the analysis that formalised it. What this page adds is the exact size of the thing, the fact that it applies to every interval rather than only to octaves, and the sharp boundary condition at the end of this section.

How fast, and how independently do we know it

The rate is not a single number. The Toth archive's own figure caption gives the spread, and an acoustics group in Japan measured about 90 sets over many years without citing Toth, Vitale or Sethares anywhere in its reference list, so the two figures below are genuinely independent of each other:

The ombak (beat rate) of all gamelan in the data set lies between 6 and 10 Hz, and individual gamelans maintain remarkably consistent rates internally, as shown by the error bars. Vitale and Sethares 2021, Figure 2 caption, p. 7
Approximately 90 sets of Gamelan, mainly Gamelan Gong Kebyar commonly used in Bali, Indonesia, were measured and analyzed in Japan and Bali. As a result, it has definitely been shown that their interference beat frequencies were tuned between 5 Hz and 10 Hz and their pitches and intervals were different depending on the regions and periods in Bali. Hiroyoshi Shiokawa, Hideharu Umeda, Koichi Minagawa and I Made Kartawan, Report of the Research Institute of Industrial Technology, Nihon University 100 (2016), abstract

Balinese has its own words for these speeds, and they are finer grained than any figure in the analytical literature. I Made Kartawan, a Balinese tuner and scholar, glosses six of them: pengayun 3 to 4 Hz, pengumbang lambat 5 to 7, pengumbang sedeng about 7 to 8, pengumbang bulus 9 to 10, pengejer 11 to 15, and pengetor, the fastest, 16 to 20 Hz. That last figure is worth holding next to the constant-interval experiment in section 2, whose top key beats at : the vocabulary of a tradition that has been counting these beats for centuries runs out well before you get there.

One real gamelan, and the identity closing on it

Below is a single scale degree, ding, across all five octaves of the gamelan of Peliatan (Gunung Sari), measured by Andrew Toth in the mid-1970s and printed in Figure 7 of the 2021 article. Ten numbers, quoted. Every other column is computed here, in your browser, by the same engine that made the sounds above.

The ding column of the Peliatan gamelan, five octaves
octavepengumbangpengisep beatbeat as interval

Now the four octave steps that column contains, and the whole argument on real bronze. The last two columns are the same number computed two completely different ways: once from the two instruments' octave sizes, and once from how much the shimmer narrowed.

Octave sizes and the excess, per octave step
stepumbang octaveisep octave excessfrom the shimmerresidual

The footnote, and where its boundary actually is

The 2021 article states the always-wider rule in a footnote, and is careful about what kind of statement it is making:

One principle that can be seen visually is that the octaves of the pengumbang (blue lines) are always wider than the octaves of the pengisep (orange lines). If the pengisep octave is stretched, the pengumbang octave is even more stretched; if the pengumbang octave is compressed, the pengisep octave is more compressed. And while it is common for the pengumbang octave to be stretched while the pengisep octave is compressed, the opposite (with the pengumbang octave compressed and the pengisep stretched) is not possible. Vitale and Sethares 2021, p. 19, note 17

Note the words seen visually, and the blue and orange lines: that footnote is describing five idealised tempering strategies drawn in a figure, not a finding about the measurements. Read as a claim about instruments it would need a boundary, and the identity supplies one. The pengumbang's span exceeds the pengisep's exactly when d1/u1 > d2/u2, so across an octave, where u2 = 2u1, the rule holds exactly when

the beat rate less than doubles from one octave to the next.

That is the whole condition, and it is sharp: at exactly double, the two octaves are the same size; past double, the footnote's impossible case happens. It is impossible only in the sense that no tuner would do it, because doubling the rate every octave is the constant-interval policy you can hear buzzing in section 2. In the Peliatan column above the rate rises across every octave, which is already against the idealisation, and it still never gets close: the largest step reaches of the doubling that would flip the sign.

What we did not do, and why

The article ships supplemental spreadsheets for all 54 gamelan. They are freely downloadable and analysing them is the obvious move, and this page does not do it, because the journal's terms say:

no portion of the article or any of its accompanying media may be modified, transformed, built upon, sampled, remixed, or separated from the rest of the article. Analytical Approaches to World Music, terms of use, printed at the foot of the article (p. 35) and at aawmjournal.com/guidelines.htm

Building upon is what an analysis is. So the page quotes a published figure, with citation, the way any paper would, and leaves the dataset alone. The terms name a route, which is prior written permission from the authors and notice to the editors, and the request for it is filed in this repository at oversight/requests/. Until it is answered, treat the absence of a 54-gamelan analysis here as a licence boundary and not as an oversight.

Three things to be careful about

7. Real bronze

Everything you have heard so far was synthesised. Here are four recordings of an actual Balinese gong kebyar, dedicated to the public domain, which your browser will fetch, decode and measure with the same engine that made those sounds. Press measure and watch what comes back.

Four clips, measured in your browser

Choose a clip.

Shorten the window and watch the reading stop rather than degrade. Two partials d hertz apart need roughly 4/d seconds of signal before a Hann-tapered spectrum can tell them apart, so at some point the meter says so instead of returning a number. That is the same limit a companion layer is entirely about, met here in the wild rather than in a demonstration built to show it.

Measurements of the four public-domain recordings
cliplowerupper beatas an intervalboth methods

What we think these are, and how sure we are

The measurement is a measurement: two strong partials, that far apart, in those files. The claim that they are a pengumbang and a pengisep is an inference, and here is the case for it. The separations sit at 8.76 to 8.82 Hz on two different instruments a fourth apart, which is where the published rate for a gong kebyar is. In one clip the two peaks are 3 to 1 in strength and in another take of the same key they are nearly equal, which is what two struck objects do and not what one resonance does. And in the pemadé clip the structure repeats one mode up: two peaks near three and a half times the fundamental, one belonging to each member.

Against it: we were not in the room. The description on the recordings says only which ensemble and which year. We cannot rule out that one key was struck and its neighbour rang. What would settle it is a recording made deliberately, one member at a time, and such a set exists. It is Mattie Rynkiewicz's Gamelan Gong Kebyar Sample Library on the Internet Archive, which labels every instrument ngumbang or ngisep by name. Its licence is CC BY-NC-SA, and the non-commercial clause is one we do not accept on this site, so we did not use it. A request to ask its author about a freer licence is filed with the others in oversight/requests/.

One thing the measurement says that the model did not

Section 5 predicted that if the two bars of a pair were the same shape at two sizes, every mode would be scaled by the same factor, so the second mode would beat at its own ratio times the fundamental's rate. In the one clip where both members' second modes are strong enough to resolve, that prediction is close and wrong in an interesting direction, and the page prints the numbers above. The two bars place their second mode at ratios that differ by about a quarter of a percent, and that small difference is enough to change the second mode's shimmer by several hertz. Two bars of a Balinese pair are not scale copies of one another: each one's upper partials were filed to their own place, by hand, and the shimmer they make together carries that.

The check

What is exact, what is modelled, and what is quoted

Exact. The identity in section 3 is algebra, not a model. It is checked here on worked cases, then over ten thousand randomly drawn pairs, then against a second implementation written from the definition of a cent rather than from the algebra, which would disagree if the closed form were wrong.

Modelled, not measured. Every sound in sections 1 to 5 is synthesised, and the four clips in section 7 are recordings. Nothing is mixed between the two. A struck bar is modelled as a sum of exponentially decaying partials at the ideal free-free bar ratios, with the higher modes damped faster. A real gamelan key is thicker than the ideal bar, is tuned by filing metal away, and does not sit exactly on those ratios. Nothing here is a measurement of any instrument, and the synthesis is not offered as one. It is here so that you can hear the two policies, and so that the meter has a signal whose true beat rate is known by construction.

Quoted. The claims about what Balinese tuners do come from the published literature, cited below, and are quoted rather than paraphrased wherever the exact wording matters.

The ladder. The five-tone shape the keys sit on is a real Balinese one, transcribed in the Scala scale archive from Andrew Toth's 1993 measurements. It is a shape only: the archive gives no absolute frequency and no second member, so nothing on this page about ombak is taken from it. It is used so the pairs you hear sit on a real ladder rather than on one we invented.

Apparatus and sources

The arithmetic, the synthesis and the meter are one file, research/ombak/engine.mjs, which is copied byte for byte to /strata/one-scale-or-one-shimmer/engine.mjs and imported by this page. The gate, research/ombak/verify-ombak.mjs, hashes both copies and fails if they differ, so there is nothing here that can drift. research/ombak/drive-page.mjs puts a real browser on this page at 390, 768 and 1440 pixels, presses its controls, and checks that Chromium and Node get the same numbers out of the same samples.

Every quotation below was read out of a file we fetched ourselves. The SHA-256 is printed so you can check you are reading the same bytes.

What is not here: any analysis of the 54-gamelan supplemental dataset, for the licence reason given in section 6; any recording labelled pengumbang or pengisep by whoever made it, because the one open set that labels them is non-commercial and we do not accept that clause here; and any figure for gong gede, for which no published beat rate turned up at all. Also not here, deliberately: any conclusion about Balinese tuning practice drawn from the recordings. They are one gong kebyar owned by an American university, and what they are used for above is showing that the instrument works on real bronze, not settling anything about Bali.

return to the ground