5D Library › Rhythmic Acoustic Stimulation, Auditory Steady-State Responses and Modulation Signal Engineering · 中文

Chapter 7. Pitch Pipes, Sixteen Pitches, the Exact Root and Combination Tones

Why read these texts here

This book is about the rhythms and frequency ratios of sound, and ancient Chinese pitch theory is precisely an arithmetic of frequency ratios: how to generate twelve pitches from bamboo pipes or string lengths, why twelve steps do not return to the start, and how to divide the octave into twelve equal parts. This chapter reads four sources: the pitch-pipe legend of the Lüshi Chunqiu, chapter “Ancient Music”; Shen Kuo’s Mengxi Bitan on the sixteen pitches; Zhu Zaiyu’s equal temperament; and Helmholtz’s account of combination tones. Every quotation has been checked word for word against the edition listed; a text for which no checkable edition could be obtained is summarised, not quoted.

Lüshi Chunqiu, “Ancient Music”: pitch comes from pipes

The chapter “Ancient Music” in the Midsummer section of the Lüshi Chunqiu tells how the ancient rulers made music, among them the Yellow Emperor, who ordered Ling Lun to fix the pitches: Ling Lun took bamboo, made pipes and told the twelve pitches apart by listening to the calls of the phoenixes. No edition could be obtained for word-by-word checking, so this book does not quote the original and only summarises it; readers may consult the complete English translation by Knoblock and Riegel (Knoblock and Riegel 2000). The point of the legend is that pitch is first a set of physical objects, lengths of bamboo, rather than abstract numbers; the later sanfen sunyi method works on pipe lengths.

Sanfen sunyi and the comma

Sanfen sunyi (“subtract or add one third”) alternately takes two thirds and four thirds of a pipe length. In frequency each step is a pure fifth, 3/2, folded back into one octave. After twelve steps the result overshoots the start by a comma (the Pythagorean comma), 312/2193^{12}/2^{19}.

Calculation

# Chapter 7. p14: Sanfen sunyi, the comma, Zhu Zaiyu's root of two.
# Sanfen sunyi ("subtract or add one third") alternately takes 2/3 and
# 4/3 of a pipe length; in frequency each step is a pure fifth, 3/2,
# folded back into one octave. Twelve steps miss the starting pitch by
# the Pythagorean comma 3^12 / 2^19. The twelve lu are sorted upwards
# and named in their traditional order (pinyin). Cents compare each lu
# with twelve-tone equal temperament, whose step is 2^(1/12); we
# compute that root to 24 decimals with integers only. Last, the
# combination tones f2 - f1 and 2 f1 - f2 that Tartini heard and
# Helmholtz explained, for pure and tempered intervals on 400 Hz.
import math
from fractions import Fraction

NAMES = ["huangzhong", "dalv", "taicu", "jiazhong", "guxian",
         "zhonglv", "ruibin", "linzhong", "yize", "nanlv", "wuyi",
         "yingzhong"]

def iroot(n, k):
    lo, hi = 0, 1
    while hi ** k <= n:
        hi *= 2
    while hi - lo > 1:
        mid = (lo + hi) // 2
        if mid ** k <= n:
            lo = mid
        else:
            hi = mid
    return lo

def cents(r):
    return 1200 * math.log2(r)

if __name__ == "__main__":
    pitches, r = [], Fraction(1)
    for _ in range(12):
        pitches.append(r)
        r = r * Fraction(3, 2)
        while r >= 2:
            r /= 2
    comma = Fraction(3 ** 12, 2 ** 19)
    print("   comma 3^12 / 2^19 = {} = {:.6f} ({:.2f} cents)".format(
        comma, float(comma), cents(float(comma))))
    print("\n   lu                   ratio     cents  equal  difference")
    for i, p in enumerate(sorted(pitches)):
        c = cents(float(p))
        print("   {:11s} {:>13s} {:9.2f} {:6d} {:11.2f}".format(
            NAMES[i], str(p), c, 100 * i, c - 100 * i))
    s = str(iroot(2 * 10 ** (12 * 24), 12))
    print("\n   2^(1/12) to 24 decimals: {}.{}".format(s[0], s[1:]))
    print("   sixteen lu = twelve lu + four qing (upper octave) notes")
    print("\n   interval on 400 Hz      f2        f2 - f1    2 f1 - f2")
    for name, ratio in (("pure fifth 3/2", 1.5),
                        ("tempered fifth", 2 ** (7 / 12)),
                        ("pure third 5/4", 1.25),
                        ("tempered third", 2 ** (4 / 12)),
                        ("binaural pair", 410 / 400)):
        f2 = 400 * ratio
        print("   {:20s} {:9.2f} {:10.2f} {:12.2f}".format(
            name, f2, f2 - 400, 800 - f2))
    print("\nReading: the comma is why twelve pure fifths never close")
    print("the circle and why Zhu Zaiyu's equal division was needed.")
    print("Pure intervals produce combination tones that fit the scale;")
    print("tempered ones shift them by a few hertz, an audible roughness.")
#    comma 3^12 / 2^19 = 531441/524288 = 1.013643 (23.46 cents)
#
#    lu                   ratio     cents  equal  difference
#    huangzhong              1      0.00      0        0.00
#    dalv            2187/2048    113.69    100       13.69
#    taicu                 9/8    203.91    200        3.91
#    jiazhong      19683/16384    317.60    300       17.60
#    guxian              81/64    407.82    400        7.82
#    zhonglv     177147/131072    521.51    500       21.51
#    ruibin            729/512    611.73    600       11.73
#    linzhong              3/2    701.96    700        1.96
#    yize            6561/4096    815.64    800       15.64
#    nanlv               27/16    905.87    900        5.87
#    wuyi          59049/32768   1019.55   1000       19.55
#    yingzhong         243/128   1109.78   1100        9.78
#
#    2^(1/12) to 24 decimals: 1.059463094359295264561825
#    sixteen lu = twelve lu + four qing (upper octave) notes
#
#    interval on 400 Hz      f2        f2 - f1    2 f1 - f2
#    pure fifth 3/2          600.00     200.00       200.00
#    tempered fifth          599.32     199.32       200.68
#    pure third 5/4          500.00     100.00       300.00
#    tempered third          503.97     103.97       296.03
#    binaural pair           410.00      10.00       390.00
#
# Reading: the comma is why twelve pure fifths never close
# the circle and why Zhu Zaiyu's equal division was needed.
# Pure intervals produce combination tones that fit the scale;
# tempered ones shift them by a few hertz, an audible roughness.

The comma is 531441/524288, about 1.013643, or 23.46 cents. Compared with twelve-tone equal temperament, the twelve pitches of sanfen sunyi deviate most at zhonglv, 521.51 cents against 500; dalv is 13.69 cents sharp. The next pitch generated from zhonglv does not return to huangzhong, which is the arithmetic root of the old problem that “huangzhong cannot be restored”.

Mengxi Bitan: sixteen pitches

Source text

Shen Kuo, Mengxi Bitan, chapter 5, “Music and Pitch I” (Project Gutenberg edition)

十二律,黃鐘、大呂、太蔟、夾鐘四律有清宮,總謂之十六律。

“Of the twelve pitches, the four huangzhong, dalv, taicu and jiazhong have upper-octave qing notes; altogether they are called the sixteen pitches.” (Shen, n.d.)

Beyond the twelve pitches, huangzhong, dalv, taicu and jiazhong each have an upper-octave qing note, sixteen in all. The program’s last line records this count: twelve pitches plus four qing notes.

Zhu Zaiyu’s exact root

Source text

English Wikipedia, “Twelfth root of two” (quoted verbatim)

The 12th root of two was first calculated in 1584 by the Chinese mathematician and musician Zhu Zaiyu

using an abacus to reach 24 decimal places accurately.

(Wikipedia contributors, n.d.)

Zhu Zaiyu found the twelfth root of two on the abacus to 24 decimal places and so divided the octave into twelve equal semitones, removing the comma of sanfen sunyi altogether. The program recomputes the value with integers only: 21/12=1.0594630943592952645618252^{1/12} = 1.059463094359295264561825.

Combination tones

When two pure tones sound together, listeners can sometimes hear a third tone at f2−f1f_2 – f_1 or 2f1−f22f_1 – f_2. The Italian violinist Tartini described the effect; Helmholtz attributed it to non-linear transmission in the ear (Helmholtz 1885). The program computes the combination tones of pure and tempered intervals on 400 Hz. Both combination tones of a pure fifth are 200.00 Hz, exactly an octave below; those of a tempered fifth are 199.32 Hz and 200.68 Hz, a hertz or so apart, which beat slowly. The difference tone 100.00 Hz and the second tone 300.00 Hz of a pure major third both lie on harmonics of the scale; a tempered third gives 103.97 Hz and 296.03 Hz, several hertz off, an audible roughness.

For a binaural pair at 400 Hz and 410 Hz the difference tone is 10.00 Hz, which the ear cannot hear as a pitch; the second tone at 390.00 Hz arises in the cochlea only when both tones enter the same ear, through leakage or loudspeakers. This repeats the conclusion of Chapter 4: the delivery route decides what the listener actually gets.

Summary

Chinese pitch theory began from the lengths of bamboo pipes, found the comma that keeps twelve steps from closing the circle, and saw it resolved by Zhu Zaiyu’s equal temperament. Combination tones are a reminder that the ear itself is a non-linear system: where sounds add decides what the listener receives.

References

Helmholtz, Hermann L. F. 1885. On the Sensations of Tone as a Physiological Basis for the Theory of Music. 2nd ed. Translated by Alexander J. Ellis. Longmans, Green,; Co.
Knoblock, John, and Jeffrey Riegel. 2000. The Annals of lü Buwei: A Complete Translation and Study. Stanford University Press.
Shen, Kuo. n.d. Mengxi Bitan, Juan 5: Yuelü 1. In Chinese; Project Gutenberg e-Text No. 27292.
Wikipedia contributors. n.d. Twelfth Root of Two. English Wikipedia Article, Consulted 2026-11-08.

Fan, Y. (2026). Rhythmic Acoustic Stimulation, Auditory Steady-State Responses and Modulation Signal Engineering: Binaural versus Isochronic Envelope Depth, 40-Hz Phase-Locking Bounds and Pink-Noise Spectral Masking [节律声刺激、听觉稳态反应与双耳等时调制工程] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090211 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).