Generating the pitches: the ancient calculations

Ancient Chinese theorists generated pitches by "adding and subtracting a third" (sānfēn sǔnyì): shortening a pipe or string by a third raises it a fifth, lengthening it by a third lowers it a fourth. Like Pythagorean tuning, the cycle never closes — a problem Chinese mathematicians worked on for 1,500 years, until Zhū Zǎiyù calculated equal temperament exactly in 1584.

Also called: sānfēn sǔnyì 三分損益 (Chinese: "dividing in three, subtracting and adding"); xīn fǎ mì lǜ 新法密率 (Zhū Zǎiyù’s "new method" (equal temperament)); cycle of fifths, Pythagorean tuning (the Western equivalent).

The five tones as the Guǎnzǐ (about the 4th century BCE) generates them, from a string of 81 units: add a third (108, down a fourth), subtract a third (72, up a fifth), add (96), subtract (64).
Milestones.
WhoWhenWhat
the Guǎnzǐabout 4th century BCEthe five tones by adding and subtracting thirds, from 81
Lǚshì chūnqiū239 BCEthe twelve lǜ by the same method
Jīng Fáng1st century BCEcontinued the cycle to 60 pitches, the 54th nearly returning to the start (an early "comma" calculation)
Hé Chéngtiān5th century CEspread the leftover gap evenly over the twelve — an approximation of equal temperament
Cài Yuándìng12th centuryeighteen pitches, adding six to allow modulation
Zhū Zǎiyù1584twelve equal semitones, each the 12th root of 2, computed to about 25 digits

Twelve steps of "subtract a third, add a third" overshoot the octave by the same small interval as twelve Pythagorean fifths — the Pythagorean comma, about a quarter of a half step. Chinese theorists knew the problem as the failure of the pipes to "return to the origin" (huán gōng) and tried longer cycles and adjustments before Zhū’s exact solution.

History

Zhū Zǎiyù (1536–1611), a Ming prince who gave up his title for study, published his calculation in the Lǜxué xīnshuō (1584) and the Lǜlǚ jīngyì (1596), using an abacus of 81 columns to extract roots. Simon Stevin in the Netherlands reached the same result around 1605; whether news of Zhū’s work traveled to Europe is debated and unproven. Zhū’s temperament was not adopted in Chinese court music, which kept its traditional pipes.

Where the words come from

sānfēn sǔnyì
Chinese: sān fēn, "three parts"; sǔn, "decrease"; yì, "increase".
huán gōng
Chinese 還宮, "returning to gōng".

Questions

Did China invent equal temperament before Europe?

Zhū Zǎiyù published the first exact mathematical solution in 1584, two decades before Stevin, and earlier Chinese theorists had approximations. European musicians were tempering keyboards approximately in the 16th century too; equal temperament as practice came to each tradition in its own way.

Read with it

Sources