Kite's thoughts on Stern-Brocot ancestors and rank 2 temperaments

Revision as of 06:37, 20 February 2014 by Wikispaces>TallKite (**Imported revision 490705200 - Original comment: **)

IMPORTED REVISION FROM WIKISPACES

This is an imported revision from Wikispaces. The revision metadata is included below for reference:

This revision was by author TallKite and made on 2014-02-20 06:37:08 UTC.
The original revision id was 490705200.
The revision comment was:

The revision contents are below, presented both in the original Wikispaces Wikitext format, and in HTML exactly as Wikispaces rendered it.

Original Wikitext content:

==Rank 2 tunings== 

Let's say you have a rank 2 tuning, with a period of P cents and a generator of G cents. You construct an N-note scale with a chain of N-1 generators. The classic example of all this is a diatonic scale with an octave as period and a fifth as generator, with P = 1200¢, G = 702¢, and N = 7. Or perhaps the fifth is tempered down to 700¢ for 12-EDO, or 696¢ for quarter-comma meantone. Or perhaps N = 5 because you live in a pentatonic culture. Or perhaps you're using the tritave 3/1 as your period. Or the third 5/4 as your generator. Whatever, this discussion applies to all these cases. But for now we'll assume that the period is an octave and the generator is a roughly fifth-sized interval.

The process of filling in the period with notes can be visualized as drawing a star of sorts in a circle. Think of a clock. An octave is 12 hours and a fifth is about 7 hours. To construct a scale, draw a line from 12:00 to 7:00 to 2:00 to 9:00 to 4:00 and back to 12:00. You've made a pentatonic scale C D E G A C. The first four lines you drew were generators, but the last one is a different interval. (Sometimes it works out that that last line is also a generator, but it usually isn't.) In this case the first four lines were perfect fifths and the last one was a minor sixth E-C. Now erase that last line, and continue from 4:00 to 11:00 to 6:00 and back to 12:00. That's a diatonic, aka heptatonic, scale C D E F# G A B C. We drew six generators and a non-generator. In musical terms, six perfect fifths and a diminished fifth F#-C.

Because the fifth may be somewhat tempered, the line may not hit 7:00 exactly. That error will add up as we draw the star, so if the star misses 7:00 by a tiny bit, it will miss 6:00 by six times as much. But as long as the tiny bit is small, it won't matter. The shape of the star will be the same.

N is called the __**stepspan**__ of the period. The stepspan is one less than the degree, so a third has stepspan 2, a fourth has stepspan 3, etc. We'll use stepspan instead of degree because it makes the math a little easier. The generator has a stepspan too, determined by how many star-points fall between our starting point 12:00 and the first generator at 7:00. Let's call this stepspan M. If N = 7, M = 4, because our heptatonic scale has four steps from C to G. For the pentatonic scale, N = 5 and M = 3.

Ideally, every time we draw a line on the clock face, the stepspan of that interval is M. Even the last line. But it's possible for some of the generators to have a different stepspan. This defies logic. Think about it: we call it a "fifth", not a "sometimes-a-fifth-sometimes-a-fourth". We take it for granted that an interval of a certain size always skips over the same number of notes. But wait, what about the tritone? isn't a dim 5th sometimes an aug 4th? 

Sure, just like a major 3rd is sometimes a dim 4th. Like in A harmonic minor, G#-C is a dim4.

Yes, but only in the special case of 12-EDO. In most other tuning systems, a dim 5th and an aug 4th are two different intervals.

If all the generators have the same stepspan, we'll call that a __**well-formed**__ scale. Let's call the opposite a __**paradoxical**__ scale. The question naturally arises, what is the criteria for well-formed-ness? It has to do with M, N, G and P. It turns out that the generator must be roughly M/N of a period. In other words, G/P must be roughly M/N. Or to put it another way, M/N must be roughly G/P. Think of it this way: when we define 2/1 as an octave containing 7 steps, and 3/2 as a fifth containing 4 steps, we are saying that 3/2 is approximately four sevenths of 2/1. We're doing more than just saying it, we're basing our entire notation on it. Now a fifth isn't four-sevenths of an octave, not unless you flatten the heck out of it, but we can get away with saying it is because it's __roughly__ four-sevenths. It's close enough to generate a well-formed heptatonic scale. 

Pentatonic cultures define 2/1 as containing 5 steps and 3/2 as containing 3 steps. They approximate the fifth as three-fifths of an octave, and it works. Pentatonic scales are well-formed.

What if we said that 2/1 is a ninth of 8 steps, and 3/2 is a sixth of 5 steps? What happens when you draw an eight-pointed star on a clock? You go 12:00 to 7:00 to 2:00 to 9:00 to 4:00 to 11:00 to 6:00 to 1:00 and back to 12:00. That last step 1:00 to 12:00 is NOT a sixth! Neither is 2:00 to 9:00, or 4:00 to 11:00, because there aren't enough steps in between them. So if M = 5, N = 8, P = 1200¢ and G = about 702¢, we get a paradoxical scale. For the five-eighths approximation to work, G/P would have to be closer to 5/8, and our generator would need to be significantly sharper than 702¢.

So four-sevenths works for the fifth, but five-eighths doesn't. How accurate does this M/N approximation have to be? What are the exact limits of what G can be? How flat or sharp can our fifth be and still make a well-formed scale? Or to put it another way, how sharp would the generator have to be for five-eighths to work?

It turns out that if the scale is well-formed, M and N are always co-prime, meaning no common factors. If they weren't, the star wouldn't hit all the points before returning to 12:00. For example, if N = 10 and M = 6, your star would only hit 5 out of the 10 points. Another example: we've drawn a 5-pointed star and a 7-pointed star on a clock. Try drawing a 6-pointed star, as symmetrical as the other stars. The Star of David doesn't count, because you must draw it all in one go, without lifting your pencil from the page. Give up yet? It can't be done. That's because 2, 3 and 4 aren't coprime with 6. The only numbers smaller than 6 that are coprime with it are 1 and 5. Using those numbers is equivalent to drawing a hexagon in a circle. A musically valid generator, but not very star-like.

If you draw a well-formed star on a clock, at some point you reach the point to the immediate right of the starting point at 12:00, the 2nd note of the scale. Let's say that point is after you draw X lines. Mathematically speaking, we say there exists a number X between 0 and N such that XM mod N = 1. In the course of drawing these X lines, we have probably gone around the clock a number of times. In musical terms, we probably need to octave-reduce the sum of X generators to make a 2nd, not a ninth or something. Let's say we've gone around the clock Y times. We say XM = YN + 1.

Now at some other point while drawing, you reach the point to the immediate left of 12:00, which is the 7th, or more generally the penultimate note. How many lines does it take? We want an equation like XM = YN + 1, except with - 1 instead of +1, and different X and Y of course. It turns out that the answer is N - X. Proof:
|| #1 || XM = YN + 1 ||
|| #2 (duh) || NM = MN ||
|| subtract #1 from #2 || NM - XM = MN - YN - 1 ||
|| rewrite it || (N-X)M = (M-Y)N - 1 ||
||   ||   ||
||   ||   ||

Original HTML content:

<html><head><title>Stern-Brocot ancestors and rank 2 temperaments</title></head><body><!-- ws:start:WikiTextHeadingRule:0:&lt;h2&gt; --><h2 id="toc0"><a name="x-Rank 2 tunings"></a><!-- ws:end:WikiTextHeadingRule:0 -->Rank 2 tunings</h2>
 <br />
Let's say you have a rank 2 tuning, with a period of P cents and a generator of G cents. You construct an N-note scale with a chain of N-1 generators. The classic example of all this is a diatonic scale with an octave as period and a fifth as generator, with P = 1200¢, G = 702¢, and N = 7. Or perhaps the fifth is tempered down to 700¢ for 12-EDO, or 696¢ for quarter-comma meantone. Or perhaps N = 5 because you live in a pentatonic culture. Or perhaps you're using the tritave 3/1 as your period. Or the third 5/4 as your generator. Whatever, this discussion applies to all these cases. But for now we'll assume that the period is an octave and the generator is a roughly fifth-sized interval.<br />
<br />
The process of filling in the period with notes can be visualized as drawing a star of sorts in a circle. Think of a clock. An octave is 12 hours and a fifth is about 7 hours. To construct a scale, draw a line from 12:00 to 7:00 to 2:00 to 9:00 to 4:00 and back to 12:00. You've made a pentatonic scale C D E G A C. The first four lines you drew were generators, but the last one is a different interval. (Sometimes it works out that that last line is also a generator, but it usually isn't.) In this case the first four lines were perfect fifths and the last one was a minor sixth E-C. Now erase that last line, and continue from 4:00 to 11:00 to 6:00 and back to 12:00. That's a diatonic, aka heptatonic, scale C D E F# G A B C. We drew six generators and a non-generator. In musical terms, six perfect fifths and a diminished fifth F#-C.<br />
<br />
Because the fifth may be somewhat tempered, the line may not hit 7:00 exactly. That error will add up as we draw the star, so if the star misses 7:00 by a tiny bit, it will miss 6:00 by six times as much. But as long as the tiny bit is small, it won't matter. The shape of the star will be the same.<br />
<br />
N is called the <u><strong>stepspan</strong></u> of the period. The stepspan is one less than the degree, so a third has stepspan 2, a fourth has stepspan 3, etc. We'll use stepspan instead of degree because it makes the math a little easier. The generator has a stepspan too, determined by how many star-points fall between our starting point 12:00 and the first generator at 7:00. Let's call this stepspan M. If N = 7, M = 4, because our heptatonic scale has four steps from C to G. For the pentatonic scale, N = 5 and M = 3.<br />
<br />
Ideally, every time we draw a line on the clock face, the stepspan of that interval is M. Even the last line. But it's possible for some of the generators to have a different stepspan. This defies logic. Think about it: we call it a &quot;fifth&quot;, not a &quot;sometimes-a-fifth-sometimes-a-fourth&quot;. We take it for granted that an interval of a certain size always skips over the same number of notes. But wait, what about the tritone? isn't a dim 5th sometimes an aug 4th? <br />
<br />
Sure, just like a major 3rd is sometimes a dim 4th. Like in A harmonic minor, G#-C is a dim4.<br />
<br />
Yes, but only in the special case of 12-EDO. In most other tuning systems, a dim 5th and an aug 4th are two different intervals.<br />
<br />
If all the generators have the same stepspan, we'll call that a <u><strong>well-formed</strong></u> scale. Let's call the opposite a <u><strong>paradoxical</strong></u> scale. The question naturally arises, what is the criteria for well-formed-ness? It has to do with M, N, G and P. It turns out that the generator must be roughly M/N of a period. In other words, G/P must be roughly M/N. Or to put it another way, M/N must be roughly G/P. Think of it this way: when we define 2/1 as an octave containing 7 steps, and 3/2 as a fifth containing 4 steps, we are saying that 3/2 is approximately four sevenths of 2/1. We're doing more than just saying it, we're basing our entire notation on it. Now a fifth isn't four-sevenths of an octave, not unless you flatten the heck out of it, but we can get away with saying it is because it's <u>roughly</u> four-sevenths. It's close enough to generate a well-formed heptatonic scale. <br />
<br />
Pentatonic cultures define 2/1 as containing 5 steps and 3/2 as containing 3 steps. They approximate the fifth as three-fifths of an octave, and it works. Pentatonic scales are well-formed.<br />
<br />
What if we said that 2/1 is a ninth of 8 steps, and 3/2 is a sixth of 5 steps? What happens when you draw an eight-pointed star on a clock? You go 12:00 to 7:00 to 2:00 to 9:00 to 4:00 to 11:00 to 6:00 to 1:00 and back to 12:00. That last step 1:00 to 12:00 is NOT a sixth! Neither is 2:00 to 9:00, or 4:00 to 11:00, because there aren't enough steps in between them. So if M = 5, N = 8, P = 1200¢ and G = about 702¢, we get a paradoxical scale. For the five-eighths approximation to work, G/P would have to be closer to 5/8, and our generator would need to be significantly sharper than 702¢.<br />
<br />
So four-sevenths works for the fifth, but five-eighths doesn't. How accurate does this M/N approximation have to be? What are the exact limits of what G can be? How flat or sharp can our fifth be and still make a well-formed scale? Or to put it another way, how sharp would the generator have to be for five-eighths to work?<br />
<br />
It turns out that if the scale is well-formed, M and N are always co-prime, meaning no common factors. If they weren't, the star wouldn't hit all the points before returning to 12:00. For example, if N = 10 and M = 6, your star would only hit 5 out of the 10 points. Another example: we've drawn a 5-pointed star and a 7-pointed star on a clock. Try drawing a 6-pointed star, as symmetrical as the other stars. The Star of David doesn't count, because you must draw it all in one go, without lifting your pencil from the page. Give up yet? It can't be done. That's because 2, 3 and 4 aren't coprime with 6. The only numbers smaller than 6 that are coprime with it are 1 and 5. Using those numbers is equivalent to drawing a hexagon in a circle. A musically valid generator, but not very star-like.<br />
<br />
If you draw a well-formed star on a clock, at some point you reach the point to the immediate right of the starting point at 12:00, the 2nd note of the scale. Let's say that point is after you draw X lines. Mathematically speaking, we say there exists a number X between 0 and N such that XM mod N = 1. In the course of drawing these X lines, we have probably gone around the clock a number of times. In musical terms, we probably need to octave-reduce the sum of X generators to make a 2nd, not a ninth or something. Let's say we've gone around the clock Y times. We say XM = YN + 1.<br />
<br />
Now at some other point while drawing, you reach the point to the immediate left of 12:00, which is the 7th, or more generally the penultimate note. How many lines does it take? We want an equation like XM = YN + 1, except with - 1 instead of +1, and different X and Y of course. It turns out that the answer is N - X. Proof:<br />


<table class="wiki_table">
    <tr>
        <td>#1<br />
</td>
        <td>XM = YN + 1<br />
</td>
    </tr>
    <tr>
        <td>#2 (duh)<br />
</td>
        <td>NM = MN<br />
</td>
    </tr>
    <tr>
        <td>subtract #1 from #2<br />
</td>
        <td>NM - XM = MN - YN - 1<br />
</td>
    </tr>
    <tr>
        <td>rewrite it<br />
</td>
        <td>(N-X)M = (M-Y)N - 1<br />
</td>
    </tr>
    <tr>
        <td><br />
</td>
        <td><br />
</td>
    </tr>
    <tr>
        <td><br />
</td>
        <td><br />
</td>
    </tr>
</table>

</body></html>