5D Library › 节律声刺激、听觉稳态反应与双耳等时调制工程 · English
第七章 律管、十六律、密率与组合音
为什么在这里读这些文献
本书讨论的是声音的节律与频率之比。中国古代的律学恰恰是一门关于频率之比的算术:如何用竹管或弦长生成十二个音,为什么十二步之后回不到起点,以及如何把八度平均分成十二份。本章读四份材料:《吕氏春秋·古乐》的律管传说,沈括《梦溪笔谈》论十六律,朱载堉的十二平均律,以及亥姆霍兹对组合音的解释。凡加引号的引文均已与所列底本逐字核对;未能取得可核对底本的文献,只概述其内容,不作引文。
《吕氏春秋·古乐》:律从竹管来
《吕氏春秋·仲夏纪·古乐》记述了上古各帝制作音乐的传说,其中黄帝命伶伦制律:伶伦取竹制管,以听凤凰之鸣来区分十二律。本书未能取得可供逐字核对的底本,因此不引原文,只概述其内容;读者可参看 Knoblock 与 Riegel 的英文全译本 (Knoblock and Riegel 2000)。这则传说的要点在于,律首先是一组物理器物(竹管的长度),而不是抽象的数;后世的三分损益法正是在管长上操作的。
三分损益与音差
三分损益法交替取管长的三分之二与三分之四。按频率说,每一步是一个纯五度(3/2),折回同一个八度之内。十二步之后,结果比起点高出一个音差(即毕达哥拉斯音差)。
推导
# 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.这一音差等于 531441/524288,约 1.013643,即 23.46 音分。按三分损益生成的十二律,与十二平均律相比,最大偏离出现在仲吕(zhonglv),为 521.51 音分对 500 音分;大吕偏高 13.69 音分。仲吕再按三分损益生出的下一律回不到黄钟,这就是「黄钟不能还原」的算术根源。
《梦溪笔谈》:十六律
十二律之外,黄钟、大吕、太簇、夹钟四律各有高八度的「清声」,合称十六律。程序的最后一行记下这一计数:十二律加四个清声。
朱载堉的密率
原典
英文维基百科「Twelfth root of two」条(逐字引用)
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.
朱载堉以算盘求得二的十二次方根,精确到小数点后 24 位,从而把八度平均分成十二个相等的半音,彻底消除了三分损益的音差。程序只用整数运算复算了这一数值:。
组合音
两个纯音同时响起时,听者有时能听到频率为 或 的第三个音。意大利小提琴家塔尔蒂尼描述过这种现象;亥姆霍兹把它归因于耳的非线性传递 (Helmholtz 1885)。程序计算了 400 Hz 上的纯律与平均律音程的组合音。纯五度的两个组合音都是 200.00 Hz,正好在低八度上;平均律五度的组合音是 199.32 Hz 与 200.68 Hz,彼此相差一点几赫兹,形成缓慢的拍。纯大三度的差音 100.00 Hz 与第二个组合音 300.00 Hz 都在音阶的谐波上;平均律大三度给出 103.97 Hz 与 296.03 Hz,偏离数赫兹,是可听的粗糙感。
一对 400 Hz 与 410 Hz 的双耳拍音,差音为 10.00 Hz,人耳无法把它听成音高;第二个组合音为 390.00 Hz,只有在两个音进入同一只耳朵(即串音或扬声器播放)时才会在耳蜗中出现。这再次说明第四章的结论:播放途径决定了听者实际得到的是什么。
小结
中国律学从竹管的长度出发,发现了十二步回不到起点的音差,并由朱载堉以平均律解决。组合音提醒我们,耳本身是一个非线性系统:声音在哪里相加,决定了听者得到什么。
参考文献
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).