Worked example
Frequency ratio: 1.5
Inputs
- From frequency (Hz): 440
- To frequency (Hz): 660
Signed interval: positive when to_hz is above from_hz, negative when below.
Use the units shown.
ratio (dimensionless): to_hz divided by from_hz.
cents (cents): 1200 * log2(ratio); one octave is 1200 cents, so the value is signed by the direction of the interval.
nearest_semitones (semitones): cents/100 rounded to the nearest integer, with halves rounded toward positive infinity.
Signed interval: positive when to_hz is above from_hz, negative when below. Nearest semitone uses round-half-toward-positive-infinity.
UNSW Music Acoustics: note names, MIDI numbers and frequencies ↗Frequency ratio: 1.5
Frequency ratio: 0.5