Huangyan dingsheng lu 皇言定聲錄 "Imperial words fixing tones" is a book on music compiled during the early Qing period 清 (1644-1911) by the collector and publisher Mao Qiling 毛奇齡 (1623-1716).
The book of 8 juan length describes the Kangxi Emperor's 康熙帝 (r. 1661-1722) annotations to the musical scales, and adds the author's own opinions, particularly containing critical views towards older authors. These critiques are somewhat too harsh. The main part of the book rectifies the position of altered tones for the play of the traverse (di 笛) and the vertical flute (xiao 簫). The Five Sounds (wusheng 五聲: gong 宮, shang 商, jiao 角, zhi 徵, and yu 羽) of the pentatonic scale are combined to a nine-tone scale (jiusheng 九聲) by adding the tones gongqing 宮清, shangqing 商清, jiaoqing 角清 and zhiqing 徵清. The "seven modes" (qidiao 七調) are scales based on the five tones and the altered tones biangong 變宮 and bianzhi 變徵.
The emperor's studies came to the conclusion that it had been common to put the biangong tone before the gong tone in a rising scale, and the bianzhi tone before the tone zhi, which was actually wrong. The result of this custom among flute players was that the tone yu was practically used as the tone gong, and all notes in a music score had to be read as if being a transposition.
The Huangyan dingsheng lu is included in the imperial series Siku quanshu 四庫全書. The edition in the series Xihe heji 西河合集 (Mao Qiling's collected writings) is the original from the Kangxi reign, with supplementary paragraphs added during the Qianlong reign-period 乾隆 (1736-1796).