Ratio and temperament
A pure fifth is the whole-number ratio 3/2 and a pure major third is 5/4. An equal temperament replaces every interval with a whole number of identical steps, each the N-th root of two. This note works out what that replacement costs and where the cost goes, using the numbers the sound lab computes for its just-intonation example. Each figure below is the lab's output, rounded to three decimals unless it is printed in full, or arithmetic on those outputs written out in the sentence.
Why no equal step is a pure fifth
In N equal divisions of the octave, a span of k steps is the ratio 2 to the power k/N. For that to equal 3/2, raising both sides to the power N gives 3 to the power N equal to 2 to the power k + N. The left side is odd and the right side is even, so no pair of whole numbers k and N satisfies it. The same argument applied to 5/4 asks for 5 to the power N to equal 2 to the power k + 2N, which fails for the same reason. In any equal division, the only tempered intervals that are whole-number ratios are whole octaves.
So the useful question is how close each division comes, and where the leftover lands. The lab measures every interval in cents, 1200 times the base-two logarithm of the ratio. In its interval table the 3/2 is 701.955 cents and the 5/4 is 386.314 cents.
Twelve fifths and seven octaves
Twelve pure fifths multiply to 3 to the 12th over 2 to the 12th, which is 531441/4096. Seven octaves are 2 to the 7th, or 524288/4096. The two differ by 531441/524288, which is 3 to the 12th over 2 to the 19th. The lab's stack named "Twelve fifths down seven octaves" reports that product and 23.460 cents, and labels it the Pythagorean comma. Its stack "Twelve fifths alone, unfolded" reports 531441/4096, seven whole octaves, and the same 23.460-cent residue.
Twelve equal divisions close the circle by narrowing every fifth. The tempered fifth is 7 steps, 700 cents, so the lab reports it 1.955 cents flat of 3/2. Twelve times 1.955 is 23.460. Twelve tempered fifths are 84 steps, exactly seven octaves of 12 steps, and the comma has been spread across them in equal shares.
Four fifths and a third
Four pure fifths are 81/16. Brought down two octaves they are 81/64. The pure major third is 5/4, which is 80/64. The difference is 81/80, the syntonic comma, and the lab's stack "Four fifths less two octaves and a third" reports it at 21.506 cents.
In twelve divisions four tempered fifths are 28 steps, two octaves and 4 steps, and 4 steps is also the nearest step to 5/4. The temperament makes the two spans the same size, so the syntonic comma has to go somewhere. The four fifths carry 4 times 1.955, which is 7.820 cents of it. The third carries the rest: 21.506 minus 7.820 is 13.686. The lab's interval table reports the tempered third at 400 cents, 13.686 cents sharp of 386.314. The fifths stay within 2 cents because the third takes almost 14.
Nineteen, thirty-one and fifty-three
The lab's comparison view rounds every interval of the example to the nearest step of 12, 19, 31 and 53 divisions and reports the deviation, tempered minus pure. For the fifth and the third it gives these values.
- 12 divisions, step 100 cents: the fifth is step 7, 1.955 flat; the third is step 4, 13.686 sharp.
- 19 divisions, step 63.158 cents: the fifth is step 11, 7.218 flat; the third is step 6, 7.366 flat.
- 31 divisions, step 38.710 cents: the fifth is step 18, 5.181 flat; the third is step 10, 0.783 sharp.
- 53 divisions, step 22.642 cents: the fifth is step 31, 0.068 flat; the third is step 17, 1.408 flat.
The step numbers show where each comma goes. In 19 divisions four fifths are 44 steps, two octaves of 38 and then 6, the third's own step. The syntonic comma is again shared between fifths and third, with the fifths flattened further: 21.506 minus 4 times 7.218 is minus 7.366, the third's deviation. In 31 divisions four fifths are 72 steps, 62 and then 10, and 21.506 minus 4 times 5.181 leaves the third 0.783 sharp. In both, twelve fifths fall one step short of seven octaves (132 against 133, and 216 against 217), so the circle of fifths does not close at twelve.
Fifty-three divisions behave differently. Four fifths are 124 steps, two octaves of 106 and then 18, one step above the third at 17. The syntonic comma survives as a single step of 22.642 cents, close to its 21.506. Twelve fifths are 372 steps, one more than seven octaves of 371, so the Pythagorean comma survives as one step as well. With both commas kept as steps, the fifth and the third can each sit within about a cent and a half of pure.
Across all eight intervals of the example, which add the fourth, the major sixth, the 7/4, the 9/8, the 15/8 and the octave, the lab's summary row gives the largest deviation as 31.174 cents in 12 divisions, 21.457 in 19 and 4.759 in 53, each on the 7/4, and 10.362 in 31, on the 9/8. The number of intervals within 5 cents of pure is 4 of 8 in 12 divisions, 2 in 19, 4 in 31 and 8 in 53.
What the lab computes
The ratios in the example are inputs chosen for the arithmetic. The lab reduces each one with an exact integer gcd, multiplies stacks as exact fractions, and, as its method section states, computes cents in double precision, which is why the comma appears as 23.460010384649014 cents from the stack and as 23.460010384649195 from twelve times the fifth's deviation. The two agree in their first twelve decimals. The nineteen-division example moves the reference to 300 Hz. The cents stay the same, because a deviation in cents depends on the ratio and the division, and the reference only sets the pitch of 1/1.
Each division in the comparison is a trade between how many steps the octave holds and how closely the steps track 3/2 and 5/4. The lab shows the size of that trade for whatever ratios are typed into it. How a tuning sounds to a listener is a question the arithmetic leaves open.
References
- Sound lab (SND-001), Stacked intervals and their commas, just-intonation example. Exact stack products and comma cents.
- Sound lab, The same ratios in 12, 19, 31 and 53 divisions. Nearest step and deviation for every interval in every compared division.
- Sound lab, Intervals, reduced and measured. Reduced ratio, cents, nearest step and deviation in the chosen division.
- Sound lab, Ratio, cents and tempered steps, the lab's method section.