Operations on intervals

From Xenharmonic Reference

The following are common arithmetic operations on musical intervals. If you're unfamiliar with the operations, you're encouraged to verify the examples for interval operation rules with a calculator.

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.

As a consequence, since the inverse operation of multiplication is division, dividing frequency ratios corresponds to subtracting their perceptual sizes:

1200log2(a/b)=1200log2a1200log2b.

Examples

  1. 1200log2(6/5)=1200log2(3/2)1200log2(5/4)
  2. 1200log2(9/4)=log2(3/2)+log2(3/2)
  3. 1200log2(32/27)=log2(16/9)log2(3/2)

Logarithmic multiplication and division

Examples

Reduction

Examples

Mediant

For JI ratios

For intervals in equal divisions

Linear stretching

Linear multiplication and division