The 12-tone equally tempered musical scale can produce noticeably imperfect matching of acoustic harmonics when some combinations of tones are played together. The lower partials (harmonics) which should match, do not. For a 12-tone octave, if a small number of tones in the octave are to be sounded simultaneously, a tuning can be found which produces harmonic errors that are much less than that of equal temperament. Historically, these tunings have been discovered, explored, and abandoned in favor of equal temperament because they generally have much worse harmonic error for tone combinations other than those for which the tuning was optimized. Here, a mathematical description of the total harmonic error of a musical instrument is presented along with a mathematical method which solves for a tuning (tone frequencies) that minimize this total error. The optimal tuning calculations have been implemented in ‘‘C’’ code on a 166-MHZ pentium desktop personal computer equipped with a Creative Labs Sound Blaster AWE 32 soundcard, with a MIDI keyboard attached. The ‘‘C’’ code reads the keys (tones) being played on the keyboard, calculates the optimal tuning, and sounds the tones on the PC soundcard at the optimally tuned fundamental frequencies.
Read full abstract