News for hackers. Stuff that matters.
Re:Show HN: I made a free app to calibrate your turntable by... by kazinator on Wednesday May 29, 2024 @01:38AM (#40508821)
A cent is a factor of 2^(1/1200). There are 1200 cents in an octave, which is a doubling in frequency: if we have 1200 of them, 2^(1200/1200) = 2^1 = 2.

Lisp-wise:

  2> (exp2 (/ 1200))   ;; exp2 is courtesy of ISO C 99
  1.00057778950655
So, it is a .0578 percent change in pitch, or determiner of pitch like record rotations speed.
Re:Show HN: I made a free app to calibrate your turntable by... by chrisshroba on Wednesday May 29, 2024 @09:17AM (#40511657)
A little more intuitively, 1 semitone is one "note", aka the interval between two successive notes on a piano (including white and black keys) such as C to C#, and to talk about intervals less than that, we use cents as 1/100 of a semitone.

Musically, two notes an octave apart vary by a factor of 2 (e.g. Middle A (A4) is 440Hz and the next A (A5) is 880Hz), and our ears hear frequencies logarithmically rather than linearly, so each of the 12 semitones in an octave is a factor of 2^(1/12) higher than the previous one (so that 12 of them in a row result in doubling the frequency), and therefore the 100 cents between each semitone are each (2^(1/12))^100 = 2^(1/1200) greater than the previous one.