Musical interval tuning
Compare reference and target frequencies in cents and find the deviation from the nearest equal-tempered semitone interval.
The example value has been entered. Check it immediately or change the value.
Input is processed in the browser. Refreshing returns a sample value.
Instructions and example
cents=1200log₂(target/reference); semitones=round(cents/100); deviation=cents−100×semitones
440 Hz to 660 Hz has ratio 1.5 and about 701.955 cents, about 1.955 cents above 7 equal-tempered semitones.
0.01–100,000 Hz. Relative intervals in 12-tone equal temperament; no audio input, pitch estimation or instrument compensation. Exact semitone midpoints round toward the higher semitone.
Frequently asked questions
Are cents negative below the reference frequency?
Yes. A lower target is a descending interval with a frequency ratio below 1.
Is this tuning calculation fixed to a specific reference pitch?
No. Change the reference frequency and all equal-tempered comparisons are calculated from it.
Calculation criteria and reference materials
- UNSW Music Acoustics: FAQ
Physical context for pitch, frequency and harmonics.
Verification of calculation criteria: · Calculation·verification principles · Report errors