cent 音分
semitone/half step/half tone 半音
whole tone 全音
accidental 變音記號
1 semitone = 100 cents
octave 八度音
一個八度音 = 12個半音 = 5個全音 + 2個半音
Twelve-tone equal temperament (十二平均律)
- divide an octave into 12 equal parts
Number of Semitones between Two Frequencies (兩個頻率間相差的半音數):
n = abs(log2(f1/f2)/log2(2(1/12))) = abs(12log2(f1/f2))
Reference
How to find the number of semitones between two frequencies?