Operations on intervals

From Xenharmonic Reference
Revision as of 21:55, 18 December 2025 by Inthar (talk | contribs) (Created page with "The following are common '''arithmetic operations on musical intervals'''. == Stacking and unstacking == Stacking two intervals feels perceptually like we are adding two distances, though it corresponds to multiplying two frequency ratios. The logarithm function is the bridge between frequency space and pitch space: <math>\log_2 (ab) = \log_2 a + \log_2 b</math> for any two frequency ratios ''a'' and ''b''. The above equation tells us that the sum of the size (in octa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The following are common arithmetic operations on musical intervals.

Stacking and unstacking

Stacking two intervals feels perceptually like we are adding two distances, though it corresponds to multiplying two frequency ratios. The logarithm function is the bridge between frequency space and pitch space:

log2(ab)=log2a+log2b

for any two frequency ratios a and b. The above equation tells us that the sum of the size (in octaves) of a and the size (in octaves) of b is equal to the size in octaves of the product of two frequency ratios ab. Hence, stacking corresponds to multiplying frequency ratios in linear (frequency) space, and adding cent values in logarithmic (pitch) space.

To convert octaves to cents, we simply multiply both sides by 1200:

1200log2(ab)=1200log2a+1200log2b.

Also, dividing frequency ratios corresponds to subtracting their perceptual sizes:

1200log2(a/b)=1200log2a1200log2b.

Exercises

Logarithmic multiplication and division

Exercises

Reduction

Exercises

Mediant

For JI ratios

For intervals in equal divisions

Linear stretching

Linear multiplication and division