Artificial Wasteland · a combine across six layers · number
The Evenest Way
Stack perfect fifths and fold them into one octave. After 5 of them the notes fall into exactly two step sizes, and again after 7, 12, 17, 29, 41 and 53, and at no count in between. Turn a seed by the golden angle and the same thing happens at 2, 3, 5, 8, 13, 21. It is one dial and one theorem. Drag it and watch a scale turn into a sunflower.
7 marks of the pure fifth: 2 lengths, 203.910¢ × 5 and 90.225¢ × 2.
What the dial does
A perfect fifth is the interval a string makes when you stop it at two thirds of its length. Start on C, go up a fifth to G, up another to D, then A, E, B, and bring each one back down by octaves until it sits inside the same octave as the C. On a circle where one lap is one octave, every new note is the last one turned by the same angle: 701.955 cents out of 1,200, which is log₂(3/2) of a turn.
Now look at the gaps between neighbouring notes. With 7 fifths you get the major scale's two steps: five whole tones of 203.910 cents (the ratio 9:8) and two half steps of 90.225 (the ratio 256:243). With 8 fifths a third size appears. With 12 you are back to two: 113.685 and 90.225, the chromatic scale's two unequal semitones. The strip under the dial lights every count where there are exactly two sizes. For the pure fifth they are 2, 3, 5, 7, 12, 17, 29, 41, 53, and every count in between has three.
Never four. That is the three-gap theorem, conjectured by Hugo Steinhaus and proved in the late 1950s by Vera Sós, János Surányi and Stanisław Świerczkowski: however many marks you drop at a fixed step, the gaps take at most three lengths, and when there are three the longest is exactly the other two added together. Only Three Gaps lets you drop the marks yourself. This page asks the next question: at which counts is the third length missing?
The two-step moments of the pure fifth
| notes | long step | short step | long ÷ short | a scale of this size built from fifths |
|---|---|---|---|---|
| 2 | 701.955 × 1 | 498.045 × 1 | 1.409 | (a fifth and a fourth) |
| 3 | 498.045 × 2 | 203.910 × 1 | 2.442 | |
| 5 | 294.135 × 2 | 203.910 × 3 | 1.442 | The Guanzi, "Diyuan": the five tones gong, zhi, shang, yu, jue as 81, 108, 72, 96, 64, each a third more or a third less than the last. The book was assembled about 26 BCE from older texts, and this passage is hard to date. |
| 7 | 203.910 × 5 | 90.225 × 2 | 2.260 | Philolaus (fragment 6a) and Plato, Timaeus 36a–b: fill the fourths and fifths with tones of 9:8 and a remnant of 256:243 is left over. |
| 12 | 113.685 × 5 | 90.225 × 7 | 1.260 | Lüshi Chunqiu (239 BCE): the twelve pitch-pipes, each generated from the last by adding or taking away a third. |
| 17 | 90.225 × 12 | 23.460 × 5 | 3.846 | Ṣafī al-Dīn al-Urmawī, Kitāb al-adwār (13th century): 17 intervals to the octave, every whole tone split limma, limma, comma. He set them as frets on the ʿūd; "a chain of fifths" is the modern description. |
| 29 | 66.765 × 12 | 23.460 × 17 | 2.846 | |
| 41 | 43.305 × 12 | 23.460 × 29 | 1.846 | |
| 53 | 23.460 × 41 | 19.845 × 12 | 1.182 | Jing Fang's table of 60 pitches (1st century BCE, preserved in the Hou Hanshu): its 54th pitch, 53 steps along, is 176,776 against 177,147 for the first. The text records the number and makes no remark on it. |
Two columns are worth reading down. The short step at 17 is 23.460 cents, the Pythagorean comma, the amount by which twelve fifths overshoot seven octaves (The Comma lets you hear it). And the ratio of long step to short is nearest to one at 12 (1.260) and at 53 (1.182). Those are the two counts where the chain is closest to cutting the octave into equal pieces, which is why 12-tone and 53-tone equal temperaments are the famous ones. At 7 the ratio is 2.260 and at 17 it is 3.846: two sizes, but far from equal. Keep going past 53 and the next mark opens a third gap of exactly 3.615 cents, the amount by which 53 fifths overshoot 31 octaves. Jing Fang's 54th pitch is that mark. His table's rounded integers put it 3.63 cents from the start.
Fifty-three was reached another way as well. William Holder's Treatise of 1694 reports that Nicholas Mercator, working with logarithms, proposed 1/53 of an octave as an "artificial comma" to measure every interval by. That unit is now called the Holdrian comma, and Turkish makam theory still counts its 24 Pythagorean pitches in it.
Why those counts and not others
Write the fifth as a fraction of the octave and expand it as a continued fraction: log₂(3/2) = [0; 1, 1, 2, 2, 3, 1, 5, 2, 23, …]. Cut it off at each term and you get the best fractions for the fifth: 1/2, 3/5, 7/12, 24/41, 31/53, 179/306. The counts where the chain has two step sizes are exactly the bottoms of those fractions (2, 5, 12, 41, 53, 306) together with the in-between fractions a term larger than 1 allows (3, 7, 17, 29, 94, 147, 200, 253, 359). The verifier checks that match for every count up to 400, for each of the steps on this page, by exact arithmetic. The long pause after 53 is the partial quotient 23: it makes 31/53 an unusually good fraction, and it leaves no new two-step count until 94.
So a two-step moment is a place where the step has just been caught by a fraction as well as it will be caught for a while. The chain has used up one good approximation and not yet started on the next. Erv Wilson was calling these scales "moments of symmetry" by 1975, and Norman Carey and David Clampitt (1989) called them well-formed.
Narrow the fifth and the counts move
Many Renaissance and Baroque keyboards did not tune pure fifths. Quarter-comma meantone narrows each fifth to 696.578 cents so that four of them land on a pure major third. Press that preset and 17, 29, 41 and 53 go dark. The two-step counts become 5, 7, 12, 19, 31, then 50 and 81, and the one where the steps come nearest to equal is 31 (long ÷ short 1.173). Narrow it further, to the third-comma fifth of 694.786 cents, and the nearest to equal is 19, where the two steps differ by only a point and a half per cent (1.015). Francisco de Salinas (1577) described a keyboard of 19 notes to the octave in third-comma meantone, and its fifth is within 0.049 cents of the fifth of 19 equal steps. Christiaan Huygens (a letter of 1691; the Latin version was published in 1724) argued that 31 equal steps come very close to quarter-comma meantone, and they do: the fifths differ by 0.196 cents. A similar division is implicit in Nicola Vicentino's work of 1555.
The pentatonic, the diatonic and the chromatic survive all of this. Any fifth between 685.714 and 720 cents (4/7 and 3/5 of an octave) has two step sizes at 5, 7 and 12 notes, because every step in that window has a continued fraction that begins [0; 1, 1, 2, …], and those first terms are what fix the first few counts. Drag the dial just below the window, to 685 cents, and 12 drops out; drag it just above, to 721, and 7 does. Only the larger systems depend on exactly which fifth you tuned.
The same dial is a sunflower
Put a seed at the centre, turn by the step, move out a little (to radius √k for the kth seed) and put another. That is Helmut Vogel's 1979 model of a sunflower head, and with the golden angle, 137.508° of a turn, it packs the seeds with no visible spokes. Its continued fraction is all ones, so it has no good fractions at all, and its two-length moments are 2, 3, 5, 8, 13, 21, 34, 55, 89: the Fibonacci numbers.
Now press the pure-fifth preset and look at the flower again. It grows arms. The panel under the dial reports each seed's nearest neighbour, and around the thousandth seed it is 53 seeds away, every time: the flower has 53 arms, because 31/53 is the fifth's good fraction. Quarter-comma meantone gives 31 arms and third-comma gives 19. The 12-tone fifth gives 12 straight spokes, because 7/12 is not an approximation but the step itself. The golden flower's nearest neighbours are Fibonacci numbers: 89 seeds away around the thousandth seed, and by the two-thousandth split between 89 and 144 as the next spiral count takes over. The fifth's flower keeps its 53 over that whole range. A sunflower cannot use a musical fifth for the same reason a keyboard can: the fifth is easy to approximate by a fraction. The Most Irrational Number has the other half of that story.
Evenest, on twelve keys
On a piano the fifth is exactly 7 of 12 semitones, and the chain closes: the 12th fifth up lands back on the start. Here a stronger idea than "two step sizes" becomes available. John Clough and Jack Douthett called a set of k notes out of q maximally even when every span of i consecutive members covers either ⌊iq/k⌋ or ⌈iq/k⌉ steps and nothing else. Chains of piano fifths are maximally even for 1, 5, 7, 11 and 12 notes. Chains of 2, 3, 8, 9 and 10 have two step sizes but are not evenest (two fifths, C and G, leave gaps of 5 and 7 semitones where 6 and 6 would be evener). Seven fifths from F are the white keys and five fifths from F♯ are the black keys: the two maximally even sets everyone has touched.
Maximally even sets are also rhythms. Spread 7 beats over 12 pulses as evenly as possible and you get the same necklace as the white keys, rotated. Godfried Toussaint (2005) pointed out that this 7-in-12 rhythm is a common West African bell pattern (his example is the mpre of the Ashanti), and one of its rotations is the Afro-Cuban bembé. Press "play it as a rhythm" with 7 marks of the 12-tone fifth to hear the white keys as a bell pattern. The Algorithm That Drums builds these rhythms with Euclid's algorithm, and Each Interval, a Different Number of Times shows the other thing that makes the white keys rare.
What this does not show
That a count is a two-step moment does not mean a culture chose it for that reason, and many didn't. Bharata's Nāṭyaśāstra counts 22 śrutis to the octave and gives the steps between notes in śrutis (4, 3, 2, 4, 4, 3, 2), but no ratios and no chain of fifths. The 24 equal quarter-tones that Mikhāʾīl Mishāqa described around 1840 are an equal division, not a chain. Real sunflowers are untidy as well: in a citizen-science count of 657 heads (Swinton and others, 2016), roughly one spiral count in five had no Fibonacci structure at all. The theorem says where a chain of one interval comes out in two sizes. It only speaks to scales that were built as such a chain. Where a theorist did build one, the table shows where it stopped.
The check
Every count, step size and ratio on this page is computed live in your browser by engine.js, the same file the verifier imports. The verifier, research/the-evenest-way/verify-the-evenest-way.mjs, then does it again with no floating point at all. Every question about a chain reduces to whether c steps are more or less than t turns. For the pure fifth that is whether 3c is more than 2c+t, which whole-number arithmetic settles exactly. It places every mark exactly for every count up to 400 for all five steps, and requires the page's engine to agree. It checks the three-gap theorem at every one of those counts (never a fourth length; the longest the sum of the other two), the continued fractions by walking the Stern–Brocot tree, the match between two-step counts and the fifth's best fractions, the flower's nearest neighbours in the same window the panel above uses, the evenness of every chain on twelve keys, the historical numbers quoted here as arithmetic (the Guanzi's five, al-Urmawī's seventeen ratios, Jing Fang's 176,776), every row of the table, and that each figure in the prose is the one the arithmetic gives. 136 checks. Run with --mutate, it plants six faults (a tolerance that merges two lengths, a fifth off by a hundredth of a cent, a lost wrap-around arc, a weaker evenness test, and two doctored figures) and requires itself to go red on each.
You can run it yourself. In an empty folder, with Node 22, these four lines fetch the check and the two page files it reads (to the paths they have in the repository) and run it; after the three downloads it needs no network.
curl -L --create-dirs -o research/the-evenest-way/verify-the-evenest-way.mjs https://artwaste.land/checks/research/the-evenest-way/verify-the-evenest-way.mjs curl -L --create-dirs -o public/strata/the-evenest-way/engine.js https://artwaste.land/strata/the-evenest-way/engine.js curl -L --create-dirs -o public/strata/the-evenest-way/index.html https://artwaste.land/strata/the-evenest-way/ node research/the-evenest-way/verify-the-evenest-way.mjs
Add --mutate to the last line to watch the planted faults go red.
What it does not check: the history in the table and the paragraphs, which was checked by reading sources (listed below), not by running anything.
Sources, as read for this page. Guanzi ch. 58 and Lüshi Chunqiu juan 6 (Wikisource). The pitch-and-calendar treatise of the Hou Hanshu (Jing Fang's 60-pitch table; the chain was rebuilt from each entry's "generates" link to find which pitch is 54th). Plato, Timaeus 36a–b; Philolaus fr. 6a (Huffman). F. Arslan, "Safī al-Dīn al-Urmawī and the Theory of Music" (2007), citing Kitāb al-adwār fols. 4–6, for the 17 ratios. W. Holder, A Treatise of the Natural Grounds, and Principles of Harmony (1694). F. de Salinas, De musica libri septem (1577), book III. The Huygens-Fokker Foundation on Huygens's 31. Akkoç, Sethares and Karaosmanoğlu, Music Perception 32(4), 2015, on the Arel–Ezgi–Uzdilek system. E. Wilson, letter to J. Chalmers, 26 April 1975. N. Carey and D. Clampitt, Music Theory Spectrum 11(2), 1989, 187–206. J. Clough and J. Douthett, Journal of Music Theory 35(1/2), 1991, 93–173. V. T. Sós (1957, 1958), J. Surányi (1958), S. Świerczkowski (Fundamenta Mathematicae 46, 1958). H. Vogel, Mathematical Biosciences 44 (1979), 179–189. J. Swinton, E. Ochu and others, Royal Society Open Science 3 (2016), 160091. G. Toussaint, BRIDGES 2005, 47–56. Bharata, Nāṭyaśāstra 28; E. Smith's 1847 English account of Mishāqa. Not consulted directly: Needham's Science and Civilisation in China, and Mercator's own manuscripts.