Operations on intervals: Difference between revisions

From Xenharmonic Reference
Line 49: Line 49:
Reduction is more of a fundamentally pitch-space operation, so mathematically we can just denote it using <math>\mod</math> or <math>\%</math>.  
Reduction is more of a fundamentally pitch-space operation, so mathematically we can just denote it using <math>\mod</math> or <math>\%</math>.  


The most common reduction operation is ''octave reduction'', or the operation <math>x \mapsto x \% 1200\mathrm{c}</math>, so let's talk about that first. You can visualize octave reduction as wrapping pitch space into a circle of octave-equivalent "pitch classes".
The most common reduction operation is ''octave reduction'', or the operation <math>x \mapsto x \ \% \ 1200\mathrm{c}</math>, so let's talk about that first. You can visualize octave reduction as wrapping pitch space into a circle of octave-equivalent "pitch classes".


The way to compute the octave reduction of an interval ''x'' is:
The way to compute the octave reduction of an interval ''x'' is:

Revision as of 00:05, 19 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

From the log rule

nlog2r=log2(rn)

we see that stacking n copies of the ratio r corresponds to taking the nth power of r:

n(1200log2r)=1200log2(rn).

The analogous holds for dividing a ratio into n equal parts:

1n(1200log2r)=1200log2(r1/n).

There is another operation that can be called "logarithmic division", which is finding the perceptual ratio of two intervals. This is given by the base change operation:

1200log2r1200log2s=logsr.

Division by 0 is not allowed, so you can't take log1/1.

Examples

  1. 21200log2(4/3)=1200log2((4/3)2)=1200log2(16/9)
  2. 21200log2(9/8)=1200log2((9/8)2)=1200log2(81/64)
  3. 1131200log2(2/1)=1200log2(21/13)
  4. 1200log2(81/64)1200log2(9/8)=log9/8(81/64)=2

Reduction

Reduction is the pitch equivalent of modular arithmetic ("clock arithmetic"). Reduction is more of a fundamentally pitch-space operation, so mathematically we can just denote it using mod or %.

The most common reduction operation is octave reduction, or the operation xx % 1200c, so let's talk about that first. You can visualize octave reduction as wrapping pitch space into a circle of octave-equivalent "pitch classes".

The way to compute the octave reduction of an interval x is:

  1. If x > 0 cents, keep (logarithmically) subtracting 1200c from the cents value of x until x is greater than or equal to 0 cents and (strictly) less than 1200 cents.
  2. If x < 0 cents, keep (logarithmically) adding 1200c from the cents value of x until the value of x is greater than or equal to 0 cents and (strictly) less than 1200 cents.

For reduction by any other interval, just substitute 1200c with the cents value of whatever interval you wish to reduce by.

Examples

Mediant

For JI ratios

For intervals in equal divisions

Linear multiplication and division

Linear stretching