What does Pythagorean Comma, Zhu Zaiyu and Beat Roughness conclude, in numbers, about “Twelve Steps of Adding and Cutting a Third: the Exact Arithmetic of the Pythagorean Comma”?
Answer: Chapter 1 computes in exact fractions the ratio of huangzhong to the returning pipe, 312/219 or 23.46 cents, and shows that the Guanzi's start of eighty-one is the smallest that keeps whole numbers, twelve pipes needing 177,147.
Scope of the numbers: Its listeners, samples and copy are illustrative, and all calculations are generated by its programs; the book is not medical advice, claims no effect of any frequency, scale or instrument on body or mind, and is not purchasing advice. Marked boxes separate published evidence, runnable Python calculations (22 programs), classical sources and the author's hypotheses.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 12, 19, 23.46
| pipe | step | exact length | length | cents | vs equal |
|---|---|---|---|---|---|
| huangzhong | -- | 81 | 81.0000 | 0.00 | +0.00 |
| linzhong | sun | 54 | 54.0000 | 701.96 | +1.96 |
| taicu | yi | 72 | 72.0000 | 203.91 | +3.91 |
| nanlv | sun | 48 | 48.0000 | 905.87 | +5.87 |
| guxi | yi | 64 | 64.0000 | 407.82 | +7.82 |
| yingzhong | sun | 128/3 | 42.6667 | 1109.78 | +9.78 |
| ruibin | yi | 512/9 | 56.8889 | 611.73 | +11.73 |
| dalv | yi | 2048/27 | 75.8519 | 113.69 | +13.69 |
| yize | sun | 4096/81 | 50.5679 | 815.64 | +15.64 |
| jiazhong | yi | 16384/243 | 67.4239 | 317.60 | +17.60 |
| wuyi | sun | 32768/729 | 44.9492 | 1019.55 | +19.55 |
| zhonglv | yi | 131072/2187 | 59.9323 | 521.51 | +21.51 |
| zhonglv, add a third: 524288/6561 = 79.9098, not 81 | |||||
| 81 / that length = 531441/524288 = 1.01364326 | |||||
| that is 3^12 / 2^19 = 531441 / 524288 | |||||
| Pythagorean comma = 23.46 cents | |||||
| each fifth exceeds 700 cents by 1.955 | |||||
| sum of the deviations from equal temperament = 129.03 |
Show the full program
# Chapter 1. p11: twelve steps of san fen sun yi, exactly, and the comma.
# Model: pipe length 81 for huangzhong (the Guanzi integer). Each step
# multiplies the length by 2/3 (sun, cut a third) or 4/3 (yi, add a
# third); the step is chosen so the length stays inside the octave
# (40.5, 81]. Pitch in cents above huangzhong is 1200 log2(81 / L).
# All lengths are exact Fractions; only the cents are rounded.
import math
from fractions import Fraction
NAMES = ["huangzhong", "linzhong", "taicu", "nanlv", "guxi",
"yingzhong", "ruibin", "dalv", "yize", "jiazhong", "wuyi",
"zhonglv"]
SEMI = [0, 7, 2, 9, 4, 11, 6, 1, 8, 3, 10, 5] # place in the octave
def cents(r):
return 1200 * math.log2(r)
def main():
top = Fraction(81)
x = top
rows = []
for k, name in enumerate(NAMES):
if k == 0:
op = "--"
else:
y = x * Fraction(2, 3)
if y <= top / 2:
y, op = x * Fraction(4, 3), "yi"
else:
op = "sun"
x = y
c = cents(top / x)
rows.append((name, op, x, c, c - 100 * SEMI[k]))
print("pipe step exact length length cents vs equal")
for name, op, x, c, d in rows:
print("{:<11} {:<4} {:>13} {:>8.4f} {:>8.2f} {:>+8.2f}".format(
name, op, str(x), float(x), c, d))
back = x * Fraction(4, 3)
print("zhonglv, add a third: {} = {:.4f}, not 81".format(
back, float(back)))
comma = top / back
print("81 / that length = {} = {:.8f}".format(comma, float(comma)))
print("that is 3^12 / 2^19 = {} / {}".format(3 ** 12, 2 ** 19))
print("Pythagorean comma = {:.2f} cents".format(cents(comma)))
print("each fifth exceeds 700 cents by {:.3f}".format(
cents(Fraction(3, 2)) - 700))
print("sum of the deviations from equal temperament = {:.2f}".format(
math.fsum(r[4] for r in rows)))
main()Single source and citation
Fan, Y. (2026). The Unclosed Circle of Pythagorean Tuning, Zhu Zaiyu's Root Approximation of Equal Temperament and the Beat Roughness of Just-Intonation Overtones (Version 1.0.0), Chapter 1: Twelve Steps of Adding and Cutting a Third: the Exact Arithmetic of the Pythagorean Comma. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-159 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026159,
author = {Fan, Yafu},
title = {The Unclosed Circle of Pythagorean Tuning, Zhu Zaiyu's Root Approximation of Equal Temperament and the Beat Roughness of Just-Intonation Overtones},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 2 · Jing Fang's Sixty Pipes and Qian Lezhi's Three Hundred and Sixty: Why Continued Fractions Favour 12, 41 and 53
- Chapter 3 · Zhu Zaiyu's Close Ratio: Digit-by-Digit Roots, a Twenty-Five-Digit Recomputation and the Marginal Value of Precision
- Chapter 4 · Three Ledgers for the Major Third: Just 5/4, Pythagorean 81/64 and Equal Temperament
- Chapter 5 · The Roughness Curve: the Plomp and Levelt Data and the Sethares Dissonance Model
- Chapter 6 · Beats and High-Register Roughness: the Same Mistuning Beats Low and Grates High
- Chapter 7 · The Sources Examined: the Diyuan Chapter of the Guanzi, Zhu Zaiyu's Lvlv jingyi and the Blacksmith Legend in Boethius
- Chapter 8 · Practice and Falsification: Fitting Marketing Copy with a Detector for Pseudo-Precise Tuning Claims