Operations on intervals: Difference between revisions

From Xenharmonic Reference
m Stacking and unstacking: Put log space operations on the left (more perceptually infinitive)
Line 23: Line 23:
== Logarithmic multiplication and division ==
== Logarithmic multiplication and division ==
=== Examples ===
=== Examples ===
# <math>2 \cdot 1200 \log_2 (9/8) = 1200 \log_2 ((9/8)^2) = 1200 \log_2 (81/64)</math>
== Reduction ==
== Reduction ==
=== Examples ===
=== Examples ===

Revision as of 22:17, 18 December 2025

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, but it corresponds to multiplying two frequency ratios. The logarithm function is the bridge between frequency space and pitch space:

log2a+log2b=log2(ab)

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:

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

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

1200log2a1200log2b=1200log2(a/b).

Examples

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

Logarithmic multiplication and division

Examples

  1. 21200log2(9/8)=1200log2((9/8)2)=1200log2(81/64)

Reduction

Examples

Mediant

For JI ratios

For intervals in equal divisions

Linear multiplication and division

Linear stretching