Web apps: Bain, Ratio to Cents; Matthew Yacavone, Xen-calc
See also: Mathematical Terms & Concepts
In mathematics, the natural numbers (ℕ) are the set of whole numbers:
1, 2, 3, 4, 5, …
The ellipsis symbol (...) means 'and so on'. The integers (ℤ) are the set of positive and negative whole numbers plus 0:
…, –3, –2, –1, 0, 1, 2, 3, …
Geometrically, the integers are often represented as discrete points on the integer number line. Given two integers p and q, the rational numbers (ℚ) are the set of all numbers that may be expressed as the quotient:
p/q,
where q ≠ 0. An irrational number (e.g., √2 = 1.41..., π = 3.14..., e = 2.71..., etc.) is a number that cannot be expressed as the quotient p/q. The real numbers (ℝ ) are the set of rational and irrational numbers, which are usually represented by a decimal expansion. As shown below, the real numbers form a continuous set of numbers that may be represented as quantities on a number line.
For more information, see the Wikipedia article Lists of types of numbers.
If we divide a string of length L, whose fundamental frequency is f, into parts; e.g.,
1/2 L, 1/3
L, 1/4 L, 1/5 L, ...,
plucking those parts of the string will sound the following frequencies, respectively:
2/1
f, 3/1 f,
4/1 f, 5/1 f, ...
Comparing the quotients 1/2 & 2/1, 1/3 & 3/1, 1/4 & 4/1, 1/5 & 5/1, ... we notice they are multiplicative inverses, or reciprocals, of one another. In mathematics, the multiplicative inverse of q/r is defined to be r/q; i.e., q/r * r/q = 1. The reciprocal of x is defined to be 1/x. For example, the reciprocal of 1/2 is:
1 / (1/2) = 1 * (2/1) = 2/1
For more information, see the Wikipedia article multiplicative inverse.
The Law of Pythagoras
In physics, Mersenne's first law states: if the tension and linear mass density of a stretched string are constant, the fundamental frequency (f) of the string is inversely proportional to its length (L) which may be written:

For more
information, see the Wikipedia article Simplifying
(reducing) fractions, or the Wolfram MathWorld article Reduced
fraction.
Decimal
expansion
A fraction (n/d) may
also be represented as a decimal expansion where we
divide the fraction's numerator (n) by its denominator (d).
Examples: 2/1 = 2.0, 3/2 = 1.5, 4/3 = 1.333..., 5/4 = 1.25, etc.
For more
information, see the Wolfram MathWorld article Decimal
expansion.
Unity (1:1)
In tuning theory, the ratio 1:1 serves as a point of
reference. For example, it may represent the unison
interval or the fundamental of a harmonic series. Most often, it
is used to represent the tonic degree in a scale, and
the other degrees in the scale are expressed as a frequency ratio
in relation to the prime unity 1:1 (Partch
1947).
For more
information, see the Xenharmonic Wiki articles unison and scale, respectively.
Octave
reduction
In tuning theory, pitches and intervals are usually
expressed as ratios within the 1/1 to 2/1 octave; i.e., as
fractions under simplification and octave reduction.
Examples.
The frequency ratios 1/1, 2/1, 3/1, 4/1
& 5/1 are equivalent to
the following ratios under octave reduction, respectively: 1/1,
2/1, 3/2,
2/1 &
5/4
For more information, see the Xenharmonic Wiki article octave reduction.
2/1,
3/2, 4/3, 5/4, 6/5, 7/6, 8/7, 9/8, 10/9, etc.
For more information, see the Wikipedia article
Superparticular
ratio.
For more information, see the Wikipedia article Pythagorean means.
In twelve-tone equal temperament (abbr. 12-tet; see also 12edo, or 12ed2) {WP; XW}, the 2/1 octave is divided into 12 equal-sized intervals called semitones. The size of each semitone is equal to the twelfth root of two:
21/12 ≈ 1.059
As such, the
chromatic scale may be represented as fractional powers of 2;
i.e.,
20/12, 21/12, 22/12, 23/12, 24/12, 25/12, 26/12, 27/12, 28/12, 29/12, 210/12, 211/12, 212/12
Simplifying the
fractional exponents we get:
1/1, 21/12, 21/6, 21/4, 21/3, 25/12, 21/2, 27/12, 22/3, 23/4, 25/6, 211/12, 2/1
Equivalently, we may use decimal expansions:
1.0, 1.059, 1.122, 1.189, 1.260, 1.335, 1.414, 1.498, 1.587, 1.682, 1.782, 1.889, 2.0
Finally, we can also use EDO-step notation (n\n-EDO), where n is the nth step in n-EDO:
EDO is an abbreviation for equal division of the octave. For more information, see the Xenharmonic Wiki article EDO. For some other important EDOs, see Marc Sabat's article Introduction to EDO tunings on the Ableton website.
The cent
is a logarithmic
unit of pitch interval proposed by the nineteenth-century English
mathematician A.J.
Ellis (1814-90). By definition, there are 1200 cents in a
2/1 octave and 100 cents in a 12-tet
semitone. To compare the size of two interval frequency ratios, we
will typically convert ratios to cents
(¢). The following formula will convert an interval
frequency ratio (f1/f2)
to cents (c):
c = 1200 log2 (f1/f2)
For example, rounding to
the nearest cent the ratio 3/2 is equivalent to 702¢, or more precisely:
1200 log2 (3/2) ≈ 701.995¢
The following mobile Web app will perform this calculation.
Calculator: Bain, Ratio to Cents
It rounding all cent
values to 3 decimal places, or nearest 1/1000 cent. Here is the
12-tet chromatic scale using cents, with the diatonic scale
degrees highlighted using bold type:
0, 100, 200,
300, 400, 500, 600, 700, 800, 900,
1000, 1100, 1200
For a multi-purpose
interval calculator/converter that can play any interval, see
Matthew Yacavone's Xen-calc.
For other interval size units, see the Xenharmonic Wiki article Interval size
measure.
A comma is a small difference that arises when a note is tuned in different ways. Here are some of the commas we will encounter in our study of tuning theory. For more information, see the Xenharmonic Wiki article comma.
Other small differentials {WP} (Gann 2019, pp. 35-36)
etc.
In n-EDO, the step size is 2^1/n. For example, the step size in 31edo is:
2^1/31 ≈ 1.02261144 ≈ 38.71¢
For more information, see the Xenharmonic Wiki article EDO.
Matthew Yacavone, Xen-calc
Links
Huygens-Fokker Foundation: Centre for Microtonal Music {HFF} – https://mathworld.wolfram.com
Wikipedia {WP} – https://www.wikipedia.org
Wolfram MathWorld {MathWorld} – https://mathworld.wolfram.com
Xenharmonic Wiki {XW} – https://en.xen.wiki
References
See: BAIN
MUSC 726T Bibliography
Duffin, Ross W. 2006. "Just
Intonation in Renaissance Theory and Practice." Music Theory
Online 12/3. {MTO}
Jeans, James. 1968/1937. Science & Music. Mineola, NY: Dover. {GB}
Gann, Kyle. 2019. The
Arithmetic of Listening: Tuning Theory and History for the
Impractical Musician. Urbana: University of Illinois Press. {GB}
Hero, Barbara and R. M.
Foulkrod, 1999. "The Lambdoma matrix and harmonic intervals." IEEE
Engineering in Medicine and Biology Magazine 18/2
(March-April 1999): 61–73. {Lambdoma.com}
Partch, Harry. 1974/1949. Genesis
of a Music, 2nd ed. New York: Da Capo Press. {GB}
Rossing, Thomas, F. Richard Moore and Paul Wheeler. 2002. The Science of Sound, Third Edition. New York: Addison Wesley. {GB}
Updated: April 14, 2026