bracket
Jump to article body

SERIES / The Mathematics of Musical Pitch · Article 03

Why Is Pitch Logarithmic? From Frequencies to the Geometry of Pitch

From frequency ratios to pitch space.

ABSTRACT

Musical intervals multiply frequencies, but musicians often describe them as distances: semitones, cents, and octaves. This article introduces p = log_2(f/f_0) as a coordinate that reconciles those descriptions. It shows why an octave is one unit, why cents are logarithmic rather than linear hertz, how rational approximation produces equal temperament, and how octave equivalence turns pitch space into the circle R/Z. The logarithm does not make pitch identical to frequency or explain perception; it provides a useful mathematical geometry for interval relationships.

Published
Updated
Reading time
14 min
Author
Natoandro

The previous article left us with a mismatch:

12log2(32)7.0196.12\log_2\left(\frac32\right)\approx 7.0196.

Twelve pure fifths are a little more than seven octaves. The ratio calculation tells us how much the endpoints differ, but it does not yet give us a convenient ruler for comparing that difference with other intervals.

The next step is a change of coordinates. Define the logarithmic pitch coordinate

p=log2(ff0),p=\log_2\left(\frac{f}{f_0}\right),

where f>0f>0 is a frequency and f0>0f_0>0 is an arbitrary reference frequency. Changing f0f_0 shifts every coordinate by the same constant, so it does not change interval distances. The choice of base 2 is deliberate: the octave is multiplication by 2. In this coordinate, multiplication by 2 becomes addition by 1.

There is also an empirical reason to care about this coordinate. In transposition experiments, Attneave and Olson found that the musical scale preserved the relationships listeners used to recognize transformed pitch patterns better than the mel scale over the ordinary musical range. Their result does not prove that musical pitch is mathematically logarithmic in every context, but it motivates asking which transformations a useful pitch representation should preserve.

The central question is:

How can multiplicative frequency relationships become additive distances that we can compare and compose?

Ratios become distances

Suppose two frequencies have ratio r=f2/f1r=f_2/f_1. Their logarithmic separation is

p2p1=log2(f2)log2(f1)=log2(f2f1)=log2(r).p_2-p_1 =\log_2(f_2)-\log_2(f_1) =\log_2\left(\frac{f_2}{f_1}\right) =\log_2(r).

This is the key identity. The ratio remains the underlying musical relationship; the logarithm supplies an additive coordinate for it. A pure fifth, whose ratio is 3/23/2, has logarithmic size

log2(32)0.585.\log_2\left(\frac32\right)\approx0.585.

That is why a diagram of fifths can treat each fifth as the same fraction of an octave. Baez uses exactly this interpretation when describing each multiplication by 3/23/2 as moving by log2(3/2)\log_2(3/2) around the octave circle.

Linear frequency axes show unequal hertz gaps for two fifths, while a logarithmic pitch axis shows equal gaps for both fifths.
Figure 1. The absolute hertz gaps differ between the two transposed examples, but their logarithmic fifth distances are equal. Frequencies are in hertz; the lower axis is schematic octave-relative pitch.

Composition now becomes ordinary addition. If an interval has ratio rr and a second interval has ratio ss, the combined ratio is rsrs, while its logarithmic size is

log2(rs)=log2(r)+log2(s).\log_2(rs)=\log_2(r)+\log_2(s).

The algebra has changed appearance, not content. In ratio coordinates, intervals multiply. In logarithmic coordinates, the same intervals add.

The octave is one unit

An octave takes ff to 2f2f. Therefore

log2(2f)log2(f)=1.\log_2(2f)-\log_2(f)=1.

Every octave has the same length in this coordinate, regardless of register. The move from 220 Hz to 440 Hz and the move from 440 Hz to 880 Hz are both one logarithmic unit, even though their differences are 220 Hz and 440 Hz.

This is the logarithmic version of transposition. If both frequencies are multiplied by the same positive number aa, then

log2(af2)log2(af1)=log2(f2)log2(f1).\log_2(af_2)-\log_2(af_1) =\log_2(f_2)-\log_2(f_1).

The common factor cancels. A ratio and its logarithmic distance therefore preserve the interval when a pair is moved to another register. This is the same invariance that made ratios more useful than hertz differences in the opening article.

Cents: a smaller ruler

One octave contains 1200 cents by convention. Since one octave is one logarithmic unit, the size of a ratio rr in cents is

cents(r)=1200log2(r).\operatorname{cents}(r)=1200\log_2(r).

The formula is useful because it makes small discrepancies readable. The Pythagorean comma has ratio 312/2193^{12}/2^{19}, and its logarithmic size is approximately 23.5 cents.

Notice what cents are not. They are not a linear number of hertz. One hundred cents always means one twelfth of an octave, but the corresponding hertz difference depends on the register. At a reference frequency ff, an interval of cc cents multiplies frequency by

2c/1200.2^{c/1200}.

For example, 100 cents multiplies frequency by 21/122^{1/12}. At 220 Hz this is about 13.9 Hz; at 440 Hz it is about 27.7 Hz. The same musical distance has a different absolute frequency gap because pitch relationships are multiplicative.

A 0 to 1200 cent octave ruler divided into twelve equal 100-cent steps, with the pure fifth marked near 702 cents.
Figure 2. One octave is represented as 1200 logarithmic cents; the pure fifth at approximately 702 cents lies just above the 700-cent equal-tempered fifth. The ruler shows interval size, not a linear frequency scale.

The logarithm thus gives us two equivalent descriptions:

  • ratio language: an interval multiplies frequency by rr;
  • distance language: the same interval has size log2(r)\log_2(r) octaves or 1200log2(r)1200\log_2(r) cents.

Neither description is more physically real than the other. The ratio describes the frequency relationship; the logarithmic scale is a coordinate system chosen because it respects octave structure.

Equal steps are multiplicative

Suppose an octave is divided into NN equal steps. Each step must have the same ratio qq, and NN steps must multiply to 2:

qN=2.q^N=2.

Taking logarithms gives Nlog2(q)=1N\log_2(q)=1, so

q=21/N.q=2^{1/N}.

For twelve equal steps, the semitone ratio is 21/122^{1/12}. The logarithmic comparison makes the definition transparent: the octave is divided into twelve equal distances, not the frequency interval from 1 to 2 divided into twelve equal hertz gaps. We can now compare the pure fifth with this step grid and ask why twelve steps are useful.

This also explains why “equal” needs a qualifier. Equal temperament makes steps equal in logarithmic pitch, while their frequency differences grow with register.

The fifth as a rational approximation

The pure fifth has logarithmic size

log2(32)0.5849625\log_2\left(\frac32\right)\approx0.5849625

octaves. In twelve equal steps, the nearest simple description is seven steps, or 7/120.58333337/12\approx0.5833333 octaves. The difference is

1200(712log2(32))1.955 cents.1200\left(\frac{7}{12}-\log_2\left(\frac32\right)\right)\approx-1.955\text{ cents}.

Thus the equal-tempered fifth is 700 cents, about 1.955 cents narrower than the pure fifth at approximately 701.955 cents. Across twelve fifths, that small error adds to approximately 23.46-23.46 cents, the logarithmic size of the Pythagorean comma in the opposite direction. Equal temperament closes the cycle by distributing the discrepancy rather than preserving every fifth exactly.

This is a rational-approximation problem. We seek a fraction k/Nk/N close to log2(3/2)\log_2(3/2), because kk equal-tempered steps out of an octave of NN steps should approximate a pure fifth. The denominator 1212 is not forced by the logarithm alone; it is a design choice that gives a useful compromise among range, notation, and interval errors. The mathematical question is therefore not “why is twelve the one true number?” but “what errors result when a system chooses twelve equal divisions?”

Other equal divisions illustrate the tradeoff:

Equal divisionFifth approximationFifth sizeError from pure fifth
12-TET7/127/12700.000 cents1.955-1.955 cents
19-TET11/1911/19694.737 cents7.218-7.218 cents
31-TET18/3118/31696.774 cents5.181-5.181 cents
53-TET31/5331/53701.887 cents0.068-0.068 cents

The table does not establish that 53 equal steps are musically preferable. It shows only that increasing the number of available steps can improve the approximation to this one interval while making the system more complex in other ways. Equal temperament is a family of compromises, not a single inevitable scale.

Octave equivalence and the pitch-class circle

So far, p=log2(f/f0)p=\log_2(f/f_0) distinguishes every octave. But musical notation often treats frequencies related by octaves as versions of the same pitch. If g=2kfg=2^k f for an integer kk, then

log2(gf0)=log2(ff0)+k.\log_2\left(\frac{g}{f_0}\right)=\log_2\left(\frac{f}{f_0}\right)+k.

The two logarithmic coordinates differ by an integer. If we declare such differences irrelevant, we identify pp and p+kp+k. The resulting pitch class is represented by

R/Z.\mathbb{R}/\mathbb{Z}.

Geometrically, this is a line whose endpoints are glued together: moving one octave reaches the same point. Baez describes the equivalent frequency construction by saying that two tones have the same pitch class exactly when their frequencies differ by a power of 2.

A logarithmic pitch segment from p to p plus one is shown beside a circle where the two endpoints become one shared pitch-class point.
Figure 3. The logarithmic segment from $p$ to $p+1$ represents one octave; identifying its endpoints produces the pitch-class circle. The abstraction preserves octave-relative position while discarding register.

The circle is therefore not a claim that all frequencies are the same. It is a quotient: we deliberately forget the integer that records how many octaves separate two representatives. The pitch class of 220 Hz and the pitch class of 440 Hz coincide in this model, while their absolute frequencies remain different.

As the opening article emphasized, a pitch class is not a frequency and is not a complete perceptual description of a note. Here it is an abstraction that preserves octave-relative position while discarding register.

That limitation is not merely philosophical. Stevens, Volkmann, and Newman measured a subjective pitch scale and reported that it differs from both the musical scale and the frequency scale. Their result belongs to psychophysics, not to the algebra developed here, but it is a useful warning against treating log2(f/f0)\log_2(f/f_0) as a complete model of perception.

Their later revised scale also reported that octave and fifth intervals became subjectively larger as frequency increased over the tested range. This is an important qualification: the logarithm is exact for the mathematical interval model, whereas perceptual pitch scales can vary with frequency and experimental method.

Cross-cultural evidence sharpens the distinction. Jacoby and colleagues found approximately logarithmic reproduction of intervals among both US and Tsimane’ participants, but octave-equivalence behavior differed between the groups. Logarithmic interval scaling and the perceptual decision to treat octave-related tones as equivalent are therefore related, separable claims.

Shepard’s geometric analysis makes the same conceptual point in another form: a straight frequency axis can represent local proximity, but musical relationships at special intervals motivate richer structures such as helices. The circle used here is a deliberately simpler quotient that records octave-relative position while discarding pitch height.

What the logarithm explains

The logarithmic coordinate gives us a compact map of the series so far:

  • frequency ratios describe interval relationships;
  • logarithms turn interval multiplication into addition;
  • the base 2 makes an octave one unit;
  • cents measure logarithmic interval size in one-thousand-two-hundredths of an octave;
  • equal temperament uses equal logarithmic steps, and rational approximation explains the compromise in its fifth;
  • octave equivalence turns the real line of logarithmic pitch into the circle R/Z\mathbb{R}/\mathbb{Z}.

It does not explain why one interval is perceived as consonant, why a particular timbre is attractive, or why a musical culture adopts one tuning system. Those are different questions involving physical spectra, auditory processing, history, and practice. The logarithm solves a representational problem: it supplies a geometry in which the multiplicative structure of tuning can be measured with addition.

The next article will use these ideas to study prime-exponent coordinates, just intonation, and temperament. The same circle will later support finite pitch grids, organized subsets such as scales, and collections of pitches and paths between them. Those are applications of the logarithmic coordinate, not prerequisites for understanding it.

Notation and prerequisites

  • ff and f1,f2f_1,f_2 denote positive frequencies.
  • p=log2(f/f0)p=\log_2(f/f_0) is logarithmic pitch in octave units relative to a chosen reference frequency f0>0f_0>0.
  • r=f2/f1r=f_2/f_1 is a frequency ratio, and 1200log2(r)1200\log_2(r) is its size in cents.
  • NN is the number of equal divisions in an octave, and k/Nk/N describes an interval of kk such steps.
  • R/Z\mathbb{R}/\mathbb{Z} identifies real logarithmic pitch coordinates that differ by an integer number of octaves.
  • An equivalence relation is a rule for declaring objects interchangeable; a quotient is the set of the resulting equivalence classes.
  • The article uses elementary logarithm laws and modular arithmetic; no calculus is required.

Bibliography

  1. Fred Attneave, Richard K. Olson, Pitch as a Medium: A New Approach to Psychophysical Scaling. 1971. doi:10.2307/1421351
  2. John C. Baez, The Mathematics of Tuning Systems. 2026. Source
  3. Dave Benson, Music: A Mathematical Offering. 2006. Source
  4. Børre Nyhoff, Alv I. Aarskog, Sverre Holm, Geometric Construction of Pythagorean and Just Musical Scales and Commas. 2023. doi:10.1007/s00283-022-10260-4
  5. R. Caimmi, A. Franzon, S. Tognon, Musical intervals under 12-note equal temperament: a geometrical interpretation. 2017. doi:10.12988/ams.2017.610264
  6. S. S. Stevens, J. Volkmann, E. B. Newman, A Scale for the Measurement of the Psychological Magnitude Pitch. 1937. doi:10.1121/1.1915893
  7. S. S. Stevens, J. Volkmann, The Relation of Pitch to Frequency: A Revised Scale. 1940. doi:10.2307/1417526
  8. Nori Jacoby, Eduardo A. Undurraga, Malinda J. McPherson, Joaquin Valdes, Tomas Ossandon, Josh H. McDermott, Universal and Non-universal Features of Musical Pitch Perception Revealed by Singing. 2019. doi:10.1016/j.cub.2019.08.020
  9. Roger N. Shepard, Geometrical Approximations to the Structure of Musical Pitch. 1982. doi:10.1037/0033-295X.89.4.305