Pergen names: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Wikispaces>TallKite
**Imported revision 621930305 - Original comment: **
Wikispaces>TallKite
**Imported revision 621937017 - Original comment: **
Line 1: Line 1:
<h2>IMPORTED REVISION FROM WIKISPACES</h2>
<h2>IMPORTED REVISION FROM WIKISPACES</h2>
This is an imported revision from Wikispaces. The revision metadata is included below for reference:<br>
This is an imported revision from Wikispaces. The revision metadata is included below for reference:<br>
: This revision was by author [[User:TallKite|TallKite]] and made on <tt>2017-11-18 16:25:50 UTC</tt>.<br>
: This revision was by author [[User:TallKite|TallKite]] and made on <tt>2017-11-18 20:39:47 UTC</tt>.<br>
: The original revision id was <tt>621930305</tt>.<br>
: The original revision id was <tt>621937017</tt>.<br>
: The revision comment was: <tt></tt><br>
: The revision comment was: <tt></tt><br>
The revision contents are below, presented both in the original Wikispaces Wikitext format, and in HTML exactly as Wikispaces rendered it.<br>
The revision contents are below, presented both in the original Wikispaces Wikitext format, and in HTML exactly as Wikispaces rendered it.<br>
<h4>Original Wikitext content:</h4>
<h4>Original Wikitext content:</h4>
<div style="width:100%; max-height:400pt; overflow:auto; background-color:#f8f9fa; border: 1px solid #eaecf0; padding:0em"><pre style="margin:0px;border:none;background:none;word-wrap:break-word;white-space: pre-wrap ! important" class="old-revision-html">A **pergen** (pronounced "peer-gen") set is a way of identifying a rank-2 or rank-3 regular temperament solely by its period and generator(s). For any temperament, there are many possible periods and generators. The pergen set is chosen to use the fewest, and smallest, prime factors possible. Fractions are allowed, e.g. half-octave.
<div style="width:100%; max-height:400pt; overflow:auto; background-color:#f8f9fa; border: 1px solid #eaecf0; padding:0em"><pre style="margin:0px;border:none;background:none;word-wrap:break-word;white-space: pre-wrap ! important" class="old-revision-html">==__Definition__==
== ==
A **pergen** set (pronounced "peer-gen") is a way of identifying a rank-2 or rank-3 regular temperament solely by its period and generator(s). For any temperament, there are many possible periods and generators. The pergen set is chosen to use the fewest, and smallest, prime factors possible. Fractions are allowed, e.g. half-octave.


If a rank-2 temperament uses the primes 2 and 3 in its comma(s), then the period can be expressed as the octave 2/1, or some fraction of an octave. The generator can usually be expressed as a 3-limit interval, or some fraction of one. The fraction is always of the form 1/N, in other words, the octave or the 3-limit interval is **split** into N parts. An interval which is split into multiple generators is called a **multi-gen**.
If a rank-2 temperament uses the primes 2 and 3 in its comma(s), then the period can be expressed as the octave 2/1, or some fraction of an octave. The generator can usually be expressed as a 3-limit interval, or some fraction of one. The fraction is always of the form 1/N, in other words, the octave or the 3-limit interval is **split** into N parts. An interval which is split into multiple generators is called a **multi-gen**.
Line 12: Line 14:
For example,the srutal temperament splits the octave in two, and is called half-octave. The set is written {P8/2, P5}. The dicot temperament splits the fifth in two, and is called half-fifth, written {P8, P5/2}. Porcupine is third-fourth, {P8, P4/3}. Semaphore, which means "semi-fourth", is of course {P8, P4/2}.
For example,the srutal temperament splits the octave in two, and is called half-octave. The set is written {P8/2, P5}. The dicot temperament splits the fifth in two, and is called half-fifth, written {P8, P5/2}. Porcupine is third-fourth, {P8, P4/3}. Semaphore, which means "semi-fourth", is of course {P8, P4/2}.


Many temperaments will share the same pergen set. This has the advantage of reducing the hundreds (thousands?) of temperament names to perhaps a few dozen categories. It focuses on the melodic properties of the temperament, not the harmonic properties. Both srutal and injera sound the same, although they temper out different commas.
Many temperaments will share the same pergen set. This has the advantage of reducing the hundreds (thousands?) of temperament names to perhaps a few dozen categories. It focuses on the melodic properties of the temperament, not the harmonic properties. Both srutal and injera sound the same, although they temper out different commas. In addition, the pergen tells us how to notate the temperament using ups and downs.


The largest category contains all commas of the form 2&lt;span style="vertical-align: super;"&gt;x &lt;/span&gt;3&lt;span style="vertical-align: super;"&gt;y &lt;/span&gt;P or 2&lt;span style="vertical-align: super;"&gt;x &lt;/span&gt;3&lt;span style="vertical-align: super;"&gt;y &lt;/span&gt;P&lt;span style="vertical-align: super;"&gt;-1&lt;/span&gt;, where P is a prime (e.g. 81/80 or 64/63). The period is the octave, and the generator is the fifth: {P8, P5}. Such temperaments are called fifth-based.
The largest category contains all commas of the form 2&lt;span style="vertical-align: super;"&gt;x &lt;/span&gt;3&lt;span style="vertical-align: super;"&gt;y &lt;/span&gt;P or 2&lt;span style="vertical-align: super;"&gt;x &lt;/span&gt;3&lt;span style="vertical-align: super;"&gt;y &lt;/span&gt;P&lt;span style="vertical-align: super;"&gt;-1&lt;/span&gt;, where P is a prime (e.g. 81/80 or 64/63). The period is the octave, and the generator is the fifth: {P8, P5}. Such temperaments are called fifth-based.
Line 35: Line 37:
||= {P8/2, P4/2} ||= half-octave, half-fourth ||= 25/24 &amp; 49/48 ||= decimal ||= deep yellow and deep blue ||= yy&amp;bbT ||
||= {P8/2, P4/2} ||= half-octave, half-fourth ||= 25/24 &amp; 49/48 ||= decimal ||= deep yellow and deep blue ||= yy&amp;bbT ||
||= {P8/4, P5} ||= quarter-octave ||= (3,4,-4) ||= diminished ||= quadruple green ||= g&lt;span style="vertical-align: super;"&gt;4&lt;/span&gt;T ||
||= {P8/4, P5} ||= quarter-octave ||= (3,4,-4) ||= diminished ||= quadruple green ||= g&lt;span style="vertical-align: super;"&gt;4&lt;/span&gt;T ||
For the 2.3... prime subgroup, the color names indicate the amount of splitting: deep splits something into two parts, triple into three parts, etc. For quadruple colors, the 3-limit multi-gen may be the major 2nd 9/8. For example, large quadruple jade tempers out (-17,2,0,0,4), and is {P8/2, M2/4} = half-octave, quarter-tone (9/8 is a whole tone). For hextuple colors, the multi-gen may be the minor 3rd 32/27. These intervals may also be voiced wider, as 3/1, 9/4, etc. To avoid cumbersome degree names like 16th or 18th, for degrees above 11, the widening is indicated with a "W". Thus 3/1 = WP5, 9/2 = WWM2, etc. Thus magic is {P8, WP5/5} = fifth-wide-fifth.
The color names indicate the amount of splitting: deep splits something into two parts, triple into three parts, etc. For quadruple colors, the 3-limit multi-gen may be the major 2nd 9/8. For example, large quadruple jade tempers out (-17,2,0,0,4), and is {P8/2, M2/4} = half-octave, quarter-tone (9/8 is a whole tone). For hextuple colors, the multi-gen may be the minor 3rd 32/27. These intervals may also be voiced wider, as 3/1, 9/4, etc. To avoid cumbersome degree names like 16th or 18th, for degrees above 11, the widening is indicated with one "W" per octave. Thus 3/1 = WP5, 9/2 = WWM2, etc. Thus magic is {P8, WP5/5} = fifth-wide-fifth.


For non-standard prime groups, the period uses the first prime only, and the multi-gen uses the first two primes only. [[Kite's color notation|Color notation ]]is used to indicate primes higher than 3. For example, 2.5.7 with 50/49 tempered out is {P8/2, y3} = half-octave, yellow-third.
For non-standard prime groups, the period uses the first prime only, and the multi-gen uses the first two primes only. [[Kite's color notation|Color notation ]]is used to indicate primes higher than 3. For example, 2.5.7 with 50/49 tempered out is {P8/2, y3} = half-octave, yellow-third.
Line 47: Line 49:
Rank-4 temperaments have pergen sets of four intervals. Rank-1 temperaments could have pergen sets of one, such as {P8/12} for 12-edo or {P12/13} for 13-ed3, but there's no particular reason to do so.
Rank-4 temperaments have pergen sets of four intervals. Rank-1 temperaments could have pergen sets of one, such as {P8/12} for 12-edo or {P12/13} for 13-ed3, but there's no particular reason to do so.


To find a temperament's pergen set, first find the PGM, the period generator mapping. This is a matrix with a column for each prime in the subgroup, and a row for each generator, counting the period as a special type of generator. Choose your generators so that all entries below the diagonal are zero. You can use x31.com's temperament finder to find this matrix. Next make a square matrix by discarding columns for the higher primes. Then invert the matrix to get the monzos for each generator. Add/subtract periods from the generator to get alternate generators. Add/subtract both periods and generators from the 2nd generator to get more alternates. Choose the alternates to minimize the splitting and the cents.
==__Derivation__==


Example: 2.3.5.7 with 2401/2400 = (-5,-1,-2,4) tempered out. x31.com gives us this matrix:
To find a temperament's pergen set, first find the **PGM**, the period generator mapping. This is a matrix with a column for each prime in the subgroup, and a row for each generator, counting the period as a special type of generator. Choose your generators so that all entries below the diagonal are zero. You can use x31.com's temperament finder to find this matrix. Next make a square matrix by discarding columns for the higher primes. Then invert the matrix to get the monzos for each generator. Add/subtract periods from the generator to get alternate generators. If the interval becomes descending, invert it. For rank-3, add/subtract both periods and generators from the 2nd generator to get more alternates. Choose the alternates to minimize the splitting and the cents.
 
For rank-2, we can compute the pergen set right from the PGM. For a period P and a generator G, let
P8 = xP and WP5 = yP + zG
Then we can solve for P = P8/x, and for G:
G = [WP5 - y(P8/x)] / z = [-yP8 + xWP5]/xz = (-y, x) / xz
To G we can add n periods, which are P8/x, so we get
G = (-y, x) / xz + nP8/x = (nz - y, x) / xz
n ranges from -x (subtracting a full octave) to +x (adding a full octave).
 
Rank-3 example: 2.3.5.7 with 2401/2400 = (-5,-1,-2,4) tempered out. [[http://x31eq.com/cgi-bin/rt.cgi?ets=130_171_270&amp;limit=7|x31.com]] gives us this matrix:
||~  ||~ 2/1 ||~ 3/1 ||~ 5/1 ||~ 7/1 ||
||~  ||~ 2/1 ||~ 3/1 ||~ 5/1 ||~ 7/1 ||
||~ period ||= 1 ||= 1 ||= 1 ||= 2 ||
||~ period ||= 1 ||= 1 ||= 1 ||= 2 ||
Line 56: Line 68:
Thus 2/1 = P, 3/1 = P + 2 G1, 5/1 = P + G1 + 2 G2, and 7/1 = 2 P + G1 + G2.
Thus 2/1 = P, 3/1 = P + 2 G1, 5/1 = P + G1 + 2 G2, and 7/1 = 2 P + G1 + G2.


Discard the last column to make a square matrix:
Discard the last column, to make a square matrix with zeros below the diagonal, and no zeros on the diagonal:
||~  ||~ 2/1 ||~ 3/1 ||~ 5/1 ||
||~  ||~ 2/1 ||~ 3/1 ||~ 5/1 ||
||~ period ||= 1 ||= 1 ||= 1 ||
||~ period ||= 1 ||= 1 ||= 1 ||
||~ gen1 ||= 0 ||= 2 ||= 1 ||
||~ gen1 ||= 0 ||= 2 ||= 1 ||
||~ gen2 ||= 0 ||= 0 ||= 2 ||
||~ gen2 ||= 0 ||= 0 ||= 2 ||
Invert it. "/4" means that each entry is to be divided by the determinant of the last matrix, which is 4.
Use an [[http://wims.unice.fr/wims/wims.cgi?session=GF84B8C7BF.1&amp;lang=en&amp;cmd=reply&amp;module=tool%2Flinear%2Fmatmult.en&amp;matA=1+1+1%0D%0A0+2+1%0D%0A0+0+2&amp;matB=&amp;show=A%5E-1|online tool]] to invert it. "/4" means that each entry is to be divided by the determinant of the last matrix, which is 4.
||~  ||~ period ||~ gen1 ||~ gen2 ||~  ||
||~  ||~ period ||~ gen1 ||~ gen2 ||~  ||
||~ 2/1 ||= 4 ||= -2 ||= -1 ||  ||
||~ 2/1 ||= 4 ||= -2 ||= -1 ||  ||
||~ 3/1 ||= 0 ||= 2 ||= -1 ||  ||
||~ 3/1 ||= 0 ||= 2 ||= -1 ||  ||
||~ 5/1 ||= 0 ||= 0 ||= 2 || /4 ||
||~ 5/1 ||= 0 ||= 0 ||= 2 || /4 ||
Thus the period = (4, 0, 0)/4 = (1, 0, 0) = 2/1, gen1 = (-2, 2, 0)/4 = (-1, 1, 0)/2 = P5/2, and gen2 = (-1, -1, 2)/4 = (25/6) ^ (1/4).
Thus the period = (4, 0, 0)/4 = (1, 0, 0) = 2/1, gen1 = (-2, 2, 0)/4 = (-1, 1, 0)/2 = P5/2, and gen2 = (-1, -1, 2)/4 = (25/6) ^ (1/4) = WWyy1/4.


Next, search for alternate generators... (to be continued)</pre></div>
Next, search for alternate generators. Add/subtract the period 2/1 from gen1. Since the multi-gen P5 is split in half, one multi-gen equals two gens, and adding an octave to the gen adds a __double__ octave to the multi-gen. The alternate gens are WWP5/2 and P11/2, both of which are larger, so the best gen1 is P5/2.
 
The multi-gen2 is split into quarters, so we must add/subtract quadruple periods and generators. Subtracting a quadruple octave and inverting makes gen2 be Wgg8/4 (Wgg8 = 96/25). A quadruple half-fifth is a double fifth is a M9. Subtracting that makes gen2 be gg7/4 (gg7 = 128/75).</pre></div>
<h4>Original HTML content:</h4>
<h4>Original HTML content:</h4>
<div style="width:100%; max-height:400pt; overflow:auto; background-color:#f8f9fa; border: 1px solid #eaecf0; padding:0em"><pre style="margin:0px;border:none;background:none;word-wrap:break-word;width:200%;white-space: pre-wrap ! important" class="old-revision-html">&lt;html&gt;&lt;head&gt;&lt;title&gt;pergen names&lt;/title&gt;&lt;/head&gt;&lt;body&gt;A &lt;strong&gt;pergen&lt;/strong&gt; (pronounced &amp;quot;peer-gen&amp;quot;) set is a way of identifying a rank-2 or rank-3 regular temperament solely by its period and generator(s). For any temperament, there are many possible periods and generators. The pergen set is chosen to use the fewest, and smallest, prime factors possible. Fractions are allowed, e.g. half-octave.&lt;br /&gt;
<div style="width:100%; max-height:400pt; overflow:auto; background-color:#f8f9fa; border: 1px solid #eaecf0; padding:0em"><pre style="margin:0px;border:none;background:none;word-wrap:break-word;width:200%;white-space: pre-wrap ! important" class="old-revision-html">&lt;html&gt;&lt;head&gt;&lt;title&gt;pergen names&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;!-- ws:start:WikiTextHeadingRule:0:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc0"&gt;&lt;a name="x-Definition"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:0 --&gt;&lt;u&gt;Definition&lt;/u&gt;&lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:2:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc1"&gt;&lt;!-- ws:end:WikiTextHeadingRule:2 --&gt; &lt;/h2&gt;
A &lt;strong&gt;pergen&lt;/strong&gt; set (pronounced &amp;quot;peer-gen&amp;quot;) is a way of identifying a rank-2 or rank-3 regular temperament solely by its period and generator(s). For any temperament, there are many possible periods and generators. The pergen set is chosen to use the fewest, and smallest, prime factors possible. Fractions are allowed, e.g. half-octave.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If a rank-2 temperament uses the primes 2 and 3 in its comma(s), then the period can be expressed as the octave 2/1, or some fraction of an octave. The generator can usually be expressed as a 3-limit interval, or some fraction of one. The fraction is always of the form 1/N, in other words, the octave or the 3-limit interval is &lt;strong&gt;split&lt;/strong&gt; into N parts. An interval which is split into multiple generators is called a &lt;strong&gt;multi-gen&lt;/strong&gt;.&lt;br /&gt;
If a rank-2 temperament uses the primes 2 and 3 in its comma(s), then the period can be expressed as the octave 2/1, or some fraction of an octave. The generator can usually be expressed as a 3-limit interval, or some fraction of one. The fraction is always of the form 1/N, in other words, the octave or the 3-limit interval is &lt;strong&gt;split&lt;/strong&gt; into N parts. An interval which is split into multiple generators is called a &lt;strong&gt;multi-gen&lt;/strong&gt;.&lt;br /&gt;
Line 76: Line 92:
For example,the srutal temperament splits the octave in two, and is called half-octave. The set is written {P8/2, P5}. The dicot temperament splits the fifth in two, and is called half-fifth, written {P8, P5/2}. Porcupine is third-fourth, {P8, P4/3}. Semaphore, which means &amp;quot;semi-fourth&amp;quot;, is of course {P8, P4/2}.&lt;br /&gt;
For example,the srutal temperament splits the octave in two, and is called half-octave. The set is written {P8/2, P5}. The dicot temperament splits the fifth in two, and is called half-fifth, written {P8, P5/2}. Porcupine is third-fourth, {P8, P4/3}. Semaphore, which means &amp;quot;semi-fourth&amp;quot;, is of course {P8, P4/2}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Many temperaments will share the same pergen set. This has the advantage of reducing the hundreds (thousands?) of temperament names to perhaps a few dozen categories. It focuses on the melodic properties of the temperament, not the harmonic properties. Both srutal and injera sound the same, although they temper out different commas.&lt;br /&gt;
Many temperaments will share the same pergen set. This has the advantage of reducing the hundreds (thousands?) of temperament names to perhaps a few dozen categories. It focuses on the melodic properties of the temperament, not the harmonic properties. Both srutal and injera sound the same, although they temper out different commas. In addition, the pergen tells us how to notate the temperament using ups and downs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The largest category contains all commas of the form 2&lt;span style="vertical-align: super;"&gt;x &lt;/span&gt;3&lt;span style="vertical-align: super;"&gt;y &lt;/span&gt;P or 2&lt;span style="vertical-align: super;"&gt;x &lt;/span&gt;3&lt;span style="vertical-align: super;"&gt;y &lt;/span&gt;P&lt;span style="vertical-align: super;"&gt;-1&lt;/span&gt;, where P is a prime (e.g. 81/80 or 64/63). The period is the octave, and the generator is the fifth: {P8, P5}. Such temperaments are called fifth-based.&lt;br /&gt;
The largest category contains all commas of the form 2&lt;span style="vertical-align: super;"&gt;x &lt;/span&gt;3&lt;span style="vertical-align: super;"&gt;y &lt;/span&gt;P or 2&lt;span style="vertical-align: super;"&gt;x &lt;/span&gt;3&lt;span style="vertical-align: super;"&gt;y &lt;/span&gt;P&lt;span style="vertical-align: super;"&gt;-1&lt;/span&gt;, where P is a prime (e.g. 81/80 or 64/63). The period is the octave, and the generator is the fifth: {P8, P5}. Such temperaments are called fifth-based.&lt;br /&gt;
Line 289: Line 305:
&lt;/table&gt;
&lt;/table&gt;


For the 2.3... prime subgroup, the color names indicate the amount of splitting: deep splits something into two parts, triple into three parts, etc. For quadruple colors, the 3-limit multi-gen may be the major 2nd 9/8. For example, large quadruple jade tempers out (-17,2,0,0,4), and is {P8/2, M2/4} = half-octave, quarter-tone (9/8 is a whole tone). For hextuple colors, the multi-gen may be the minor 3rd 32/27. These intervals may also be voiced wider, as 3/1, 9/4, etc. To avoid cumbersome degree names like 16th or 18th, for degrees above 11, the widening is indicated with a &amp;quot;W&amp;quot;. Thus 3/1 = WP5, 9/2 = WWM2, etc. Thus magic is {P8, WP5/5} = fifth-wide-fifth.&lt;br /&gt;
The color names indicate the amount of splitting: deep splits something into two parts, triple into three parts, etc. For quadruple colors, the 3-limit multi-gen may be the major 2nd 9/8. For example, large quadruple jade tempers out (-17,2,0,0,4), and is {P8/2, M2/4} = half-octave, quarter-tone (9/8 is a whole tone). For hextuple colors, the multi-gen may be the minor 3rd 32/27. These intervals may also be voiced wider, as 3/1, 9/4, etc. To avoid cumbersome degree names like 16th or 18th, for degrees above 11, the widening is indicated with one &amp;quot;W&amp;quot; per octave. Thus 3/1 = WP5, 9/2 = WWM2, etc. Thus magic is {P8, WP5/5} = fifth-wide-fifth.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For non-standard prime groups, the period uses the first prime only, and the multi-gen uses the first two primes only. &lt;a class="wiki_link" href="/Kite%27s%20color%20notation"&gt;Color notation &lt;/a&gt;is used to indicate primes higher than 3. For example, 2.5.7 with 50/49 tempered out is {P8/2, y3} = half-octave, yellow-third.&lt;br /&gt;
For non-standard prime groups, the period uses the first prime only, and the multi-gen uses the first two primes only. &lt;a class="wiki_link" href="/Kite%27s%20color%20notation"&gt;Color notation &lt;/a&gt;is used to indicate primes higher than 3. For example, 2.5.7 with 50/49 tempered out is {P8/2, y3} = half-octave, yellow-third.&lt;br /&gt;
Line 301: Line 317:
Rank-4 temperaments have pergen sets of four intervals. Rank-1 temperaments could have pergen sets of one, such as {P8/12} for 12-edo or {P12/13} for 13-ed3, but there's no particular reason to do so.&lt;br /&gt;
Rank-4 temperaments have pergen sets of four intervals. Rank-1 temperaments could have pergen sets of one, such as {P8/12} for 12-edo or {P12/13} for 13-ed3, but there's no particular reason to do so.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To find a temperament's pergen set, first find the PGM, the period generator mapping. This is a matrix with a column for each prime in the subgroup, and a row for each generator, counting the period as a special type of generator. Choose your generators so that all entries below the diagonal are zero. You can use x31.com's temperament finder to find this matrix. Next make a square matrix by discarding columns for the higher primes. Then invert the matrix to get the monzos for each generator. Add/subtract periods from the generator to get alternate generators. Add/subtract both periods and generators from the 2nd generator to get more alternates. Choose the alternates to minimize the splitting and the cents.&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:4:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc2"&gt;&lt;a name="x-Derivation"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:4 --&gt;&lt;u&gt;Derivation&lt;/u&gt;&lt;/h2&gt;
&lt;br /&gt;
To find a temperament's pergen set, first find the &lt;strong&gt;PGM&lt;/strong&gt;, the period generator mapping. This is a matrix with a column for each prime in the subgroup, and a row for each generator, counting the period as a special type of generator. Choose your generators so that all entries below the diagonal are zero. You can use x31.com's temperament finder to find this matrix. Next make a square matrix by discarding columns for the higher primes. Then invert the matrix to get the monzos for each generator. Add/subtract periods from the generator to get alternate generators. If the interval becomes descending, invert it. For rank-3, add/subtract both periods and generators from the 2nd generator to get more alternates. Choose the alternates to minimize the splitting and the cents.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example: 2.3.5.7 with 2401/2400 = (-5,-1,-2,4) tempered out. x31.com gives us this matrix:&lt;br /&gt;
For rank-2, we can compute the pergen set right from the PGM. For a period P and a generator G, let &lt;br /&gt;
P8 = xP and WP5 = yP + zG&lt;br /&gt;
Then we can solve for P = P8/x, and for G: &lt;br /&gt;
G = [WP5 - y(P8/x)] / z = [-yP8 + xWP5]/xz = (-y, x) / xz &lt;br /&gt;
To G we can add n periods, which are P8/x, so we get&lt;br /&gt;
G = (-y, x) / xz + nP8/x = (nz - y, x) / xz&lt;br /&gt;
n ranges from -x (subtracting a full octave) to +x (adding a full octave).&lt;br /&gt;
&lt;br /&gt;
Rank-3 example: 2.3.5.7 with 2401/2400 = (-5,-1,-2,4) tempered out. &lt;a class="wiki_link_ext" href="http://x31eq.com/cgi-bin/rt.cgi?ets=130_171_270&amp;amp;limit=7" rel="nofollow"&gt;x31.com&lt;/a&gt; gives us this matrix:&lt;br /&gt;




Line 359: Line 385:
Thus 2/1 = P, 3/1 = P + 2 G1, 5/1 = P + G1 + 2 G2, and 7/1 = 2 P + G1 + G2.&lt;br /&gt;
Thus 2/1 = P, 3/1 = P + 2 G1, 5/1 = P + G1 + 2 G2, and 7/1 = 2 P + G1 + G2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Discard the last column to make a square matrix:&lt;br /&gt;
Discard the last column, to make a square matrix with zeros below the diagonal, and no zeros on the diagonal:&lt;br /&gt;




Line 405: Line 431:
&lt;/table&gt;
&lt;/table&gt;


Invert it. &amp;quot;/4&amp;quot; means that each entry is to be divided by the determinant of the last matrix, which is 4.&lt;br /&gt;
Use an &lt;a class="wiki_link_ext" href="http://wims.unice.fr/wims/wims.cgi?session=GF84B8C7BF.1&amp;amp;lang=en&amp;amp;cmd=reply&amp;amp;module=tool%2Flinear%2Fmatmult.en&amp;amp;matA=1+1+1%0D%0A0+2+1%0D%0A0+0+2&amp;amp;matB=&amp;amp;show=A%5E-1" rel="nofollow"&gt;online tool&lt;/a&gt; to invert it. &amp;quot;/4&amp;quot; means that each entry is to be divided by the determinant of the last matrix, which is 4.&lt;br /&gt;




Line 459: Line 485:
&lt;/table&gt;
&lt;/table&gt;


Thus the period = (4, 0, 0)/4 = (1, 0, 0) = 2/1, gen1 = (-2, 2, 0)/4 = (-1, 1, 0)/2 = P5/2, and gen2 = (-1, -1, 2)/4 = (25/6) ^ (1/4).&lt;br /&gt;
Thus the period = (4, 0, 0)/4 = (1, 0, 0) = 2/1, gen1 = (-2, 2, 0)/4 = (-1, 1, 0)/2 = P5/2, and gen2 = (-1, -1, 2)/4 = (25/6) ^ (1/4) = WWyy1/4.&lt;br /&gt;
&lt;br /&gt;
Next, search for alternate generators. Add/subtract the period 2/1 from gen1. Since the multi-gen P5 is split in half, one multi-gen equals two gens, and adding an octave to the gen adds a &lt;u&gt;double&lt;/u&gt; octave to the multi-gen. The alternate gens are WWP5/2 and P11/2, both of which are larger, so the best gen1 is P5/2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, search for alternate generators... (to be continued)&lt;/body&gt;&lt;/html&gt;</pre></div>
The multi-gen2 is split into quarters, so we must add/subtract quadruple periods and generators. Subtracting a quadruple octave and inverting makes gen2 be Wgg8/4 (Wgg8 = 96/25). A quadruple half-fifth is a double fifth is a M9. Subtracting that makes gen2 be gg7/4 (gg7 = 128/75).&lt;/body&gt;&lt;/html&gt;</pre></div>

Revision as of 20:39, 18 November 2017

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 2017-11-18 20:39:47 UTC.
The original revision id was 621937017.
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:

==__Definition__== 
== == 
A **pergen** set (pronounced "peer-gen") is a way of identifying a rank-2 or rank-3 regular temperament solely by its period and generator(s). For any temperament, there are many possible periods and generators. The pergen set is chosen to use the fewest, and smallest, prime factors possible. Fractions are allowed, e.g. half-octave.

If a rank-2 temperament uses the primes 2 and 3 in its comma(s), then the period can be expressed as the octave 2/1, or some fraction of an octave. The generator can usually be expressed as a 3-limit interval, or some fraction of one. The fraction is always of the form 1/N, in other words, the octave or the 3-limit interval is **split** into N parts. An interval which is split into multiple generators is called a **multi-gen**.

For example,the srutal temperament splits the octave in two, and is called half-octave. The set is written {P8/2, P5}. The dicot temperament splits the fifth in two, and is called half-fifth, written {P8, P5/2}. Porcupine is third-fourth, {P8, P4/3}. Semaphore, which means "semi-fourth", is of course {P8, P4/2}.

Many temperaments will share the same pergen set. This has the advantage of reducing the hundreds (thousands?) of temperament names to perhaps a few dozen categories. It focuses on the melodic properties of the temperament, not the harmonic properties. Both srutal and injera sound the same, although they temper out different commas. In addition, the pergen tells us how to notate the temperament using ups and downs.

The largest category contains all commas of the form 2<span style="vertical-align: super;">x </span>3<span style="vertical-align: super;">y </span>P or 2<span style="vertical-align: super;">x </span>3<span style="vertical-align: super;">y </span>P<span style="vertical-align: super;">-1</span>, where P is a prime (e.g. 81/80 or 64/63). The period is the octave, and the generator is the fifth: {P8, P5}. Such temperaments are called fifth-based.

Every temperament has at least one alternate generator. More, if the octave is split. To avoid ambiguity, the generator is chosen to minimize the amount of splitting of the multi-gen, and as a tie-breaker, to minimize the size in cents of the multi-gen. There is only one exception to this rule: the fifth is preferred over the fourth, to follow historical precedent.

For example, srutal could be {P8/2, M2/2}, but P5 is preferred because it is unsplit. Or it could be {P8/2, P12}, but P5 is preferred because it is smaller. Or it could be {P8/2, P4}, but P5 is always preferred over P4. Note that P5/2 is __not__ preferred over P4/2. For example, decimal is {P8/2, P4/2}, not {P8/2, P5/2}.

||||~ pergen set ||||||||~ example temperaments ||
||~ written ||~ spoken ||~ comma(s) ||~ name ||||~ color name ||
||= {P8, P5} ||= fifth-based ||= 81/80 ||= meantone ||= green ||= gT ||
||= " ||= " ||= 64/63 ||= archy ||= red ||= rT ||
||= " ||= " ||= (-14,8,0,0,1) ||= schismic ||= large yellow ||= LyT ||
||= " ||= " ||= 81/80 & 126/125 ||= septimal meantone ||= green and bluish-blue ||= g&bg<span style="vertical-align: super;">3</span>T ||
||= {P8/2, P5} ||= half-octave ||= (11, -4, -2) ||= srutal ||= small deep green ||= sggT ||
||= " ||= " ||= 81/80 & 50/49 ||= injera ||= deep reddish and green ||= rryy&gT ||
||= {P8, P5/2} ||= half-fifth ||= 25/24 ||= dicot ||= deep yellow ||= yyT ||
||= " ||= " ||= (-1,5,0,0,-2) ||= mohajira ||= deep amber ||= aaT ||
||= {P8, P4/2} ||= half-fourth ||= 49/48 ||= semaphore ||= deep blue ||= bbT ||
||= {P8, P4/3} ||= third-fourth ||= 250/243 ||= porcupine ||= triple yellow ||= y<span style="vertical-align: super;">3</span>T ||
||= {P8, P11/3} ||= third-eleventh ||= (12,-1,0,0,-3) ||= small triple amber ||= small triple amber ||= sa<span style="vertical-align: super;">3</span>T ||
||= {P8/2, P4/2} ||= half-octave, half-fourth ||= 25/24 & 49/48 ||= decimal ||= deep yellow and deep blue ||= yy&bbT ||
||= {P8/4, P5} ||= quarter-octave ||= (3,4,-4) ||= diminished ||= quadruple green ||= g<span style="vertical-align: super;">4</span>T ||
The color names indicate the amount of splitting: deep splits something into two parts, triple into three parts, etc. For quadruple colors, the 3-limit multi-gen may be the major 2nd 9/8. For example, large quadruple jade tempers out (-17,2,0,0,4), and is {P8/2, M2/4} = half-octave, quarter-tone (9/8 is a whole tone). For hextuple colors, the multi-gen may be the minor 3rd 32/27. These intervals may also be voiced wider, as 3/1, 9/4, etc. To avoid cumbersome degree names like 16th or 18th, for degrees above 11, the widening is indicated with one "W" per octave. Thus 3/1 = WP5, 9/2 = WWM2, etc. Thus magic is {P8, WP5/5} = fifth-wide-fifth.

For non-standard prime groups, the period uses the first prime only, and the multi-gen uses the first two primes only. [[Kite's color notation|Color notation ]]is used to indicate primes higher than 3. For example, 2.5.7 with 50/49 tempered out is {P8/2, y3} = half-octave, yellow-third.

In a multi-comma temperament, it's possible that one comma will contain only the 1st and 2nd primes. The 2nd prime is directly related to the 1st prime. If this happens, the multi-gen must use the 1st and 3rd primes. If the 3rd prime is also directly related, the 4th prime is used, and so forth.

For example, 2.3.5.7 with commas 256/243 and 225/224. The 1st comma splits the octave into 5 parts, and makes the 5th be exactly 3/5 of the octave. The multi-gen must use primes 2 and 5. In this case, the pergen set is {P8/5, y3}, the same as Blackwood.

Rank-3 pergen sets have three intervals, any of which may be split. The unsplit 2.3.5... subgroup is {P8, P5, y3} = fifth-and-third-based. 2.3.5.7 with 50/49 tempered out is {P8/2, P5, y3}. If one knows that the rank is 3, it can be called half-octave, otherwise it's called half-octave fifth-and-third, to distinguish it from {P8/2, P5}. The color name of a temperament indicates the rank. This is the deep reddish temperament. The name has two explicit colors, red and yellow, and two implicit colors, clear and white (primes 2 and 3). 4 colors minus 1 comma equals rank-3.

Rank-4 temperaments have pergen sets of four intervals. Rank-1 temperaments could have pergen sets of one, such as {P8/12} for 12-edo or {P12/13} for 13-ed3, but there's no particular reason to do so.

==__Derivation__== 

To find a temperament's pergen set, first find the **PGM**, the period generator mapping. This is a matrix with a column for each prime in the subgroup, and a row for each generator, counting the period as a special type of generator. Choose your generators so that all entries below the diagonal are zero. You can use x31.com's temperament finder to find this matrix. Next make a square matrix by discarding columns for the higher primes. Then invert the matrix to get the monzos for each generator. Add/subtract periods from the generator to get alternate generators. If the interval becomes descending, invert it. For rank-3, add/subtract both periods and generators from the 2nd generator to get more alternates. Choose the alternates to minimize the splitting and the cents.

For rank-2, we can compute the pergen set right from the PGM. For a period P and a generator G, let 
P8 = xP and WP5 = yP + zG
Then we can solve for P = P8/x, and for G: 
G = [WP5 - y(P8/x)] / z = [-yP8 + xWP5]/xz = (-y, x) / xz 
To G we can add n periods, which are P8/x, so we get
G = (-y, x) / xz + nP8/x = (nz - y, x) / xz
n ranges from -x (subtracting a full octave) to +x (adding a full octave).

Rank-3 example: 2.3.5.7 with 2401/2400 = (-5,-1,-2,4) tempered out. [[http://x31eq.com/cgi-bin/rt.cgi?ets=130_171_270&limit=7|x31.com]] gives us this matrix:
||~   ||~ 2/1 ||~ 3/1 ||~ 5/1 ||~ 7/1 ||
||~ period ||= 1 ||= 1 ||= 1 ||= 2 ||
||~ gen1 ||= 0 ||= 2 ||= 1 ||= 1 ||
||~ gen2 ||= 0 ||= 0 ||= 2 ||= 1 ||
Thus 2/1 = P, 3/1 = P + 2 G1, 5/1 = P + G1 + 2 G2, and 7/1 = 2 P + G1 + G2.

Discard the last column, to make a square matrix with zeros below the diagonal, and no zeros on the diagonal:
||~   ||~ 2/1 ||~ 3/1 ||~ 5/1 ||
||~ period ||= 1 ||= 1 ||= 1 ||
||~ gen1 ||= 0 ||= 2 ||= 1 ||
||~ gen2 ||= 0 ||= 0 ||= 2 ||
Use an [[http://wims.unice.fr/wims/wims.cgi?session=GF84B8C7BF.1&lang=en&cmd=reply&module=tool%2Flinear%2Fmatmult.en&matA=1+1+1%0D%0A0+2+1%0D%0A0+0+2&matB=&show=A%5E-1|online tool]] to invert it. "/4" means that each entry is to be divided by the determinant of the last matrix, which is 4.
||~   ||~ period ||~ gen1 ||~ gen2 ||~   ||
||~ 2/1 ||= 4 ||= -2 ||= -1 ||   ||
||~ 3/1 ||= 0 ||= 2 ||= -1 ||   ||
||~ 5/1 ||= 0 ||= 0 ||= 2 || /4 ||
Thus the period = (4, 0, 0)/4 = (1, 0, 0) = 2/1, gen1 = (-2, 2, 0)/4 = (-1, 1, 0)/2 = P5/2, and gen2 = (-1, -1, 2)/4 = (25/6) ^ (1/4) = WWyy1/4.

Next, search for alternate generators. Add/subtract the period 2/1 from gen1. Since the multi-gen P5 is split in half, one multi-gen equals two gens, and adding an octave to the gen adds a __double__ octave to the multi-gen. The alternate gens are WWP5/2 and P11/2, both of which are larger, so the best gen1 is P5/2.

The multi-gen2 is split into quarters, so we must add/subtract quadruple periods and generators. Subtracting a quadruple octave and inverting makes gen2 be Wgg8/4 (Wgg8 = 96/25). A quadruple half-fifth is a double fifth is a M9. Subtracting that makes gen2 be gg7/4 (gg7 = 128/75).

Original HTML content:

<html><head><title>pergen names</title></head><body><!-- ws:start:WikiTextHeadingRule:0:&lt;h2&gt; --><h2 id="toc0"><a name="x-Definition"></a><!-- ws:end:WikiTextHeadingRule:0 --><u>Definition</u></h2>
 <!-- ws:start:WikiTextHeadingRule:2:&lt;h2&gt; --><h2 id="toc1"><!-- ws:end:WikiTextHeadingRule:2 --> </h2>
 A <strong>pergen</strong> set (pronounced &quot;peer-gen&quot;) is a way of identifying a rank-2 or rank-3 regular temperament solely by its period and generator(s). For any temperament, there are many possible periods and generators. The pergen set is chosen to use the fewest, and smallest, prime factors possible. Fractions are allowed, e.g. half-octave.<br />
<br />
If a rank-2 temperament uses the primes 2 and 3 in its comma(s), then the period can be expressed as the octave 2/1, or some fraction of an octave. The generator can usually be expressed as a 3-limit interval, or some fraction of one. The fraction is always of the form 1/N, in other words, the octave or the 3-limit interval is <strong>split</strong> into N parts. An interval which is split into multiple generators is called a <strong>multi-gen</strong>.<br />
<br />
For example,the srutal temperament splits the octave in two, and is called half-octave. The set is written {P8/2, P5}. The dicot temperament splits the fifth in two, and is called half-fifth, written {P8, P5/2}. Porcupine is third-fourth, {P8, P4/3}. Semaphore, which means &quot;semi-fourth&quot;, is of course {P8, P4/2}.<br />
<br />
Many temperaments will share the same pergen set. This has the advantage of reducing the hundreds (thousands?) of temperament names to perhaps a few dozen categories. It focuses on the melodic properties of the temperament, not the harmonic properties. Both srutal and injera sound the same, although they temper out different commas. In addition, the pergen tells us how to notate the temperament using ups and downs.<br />
<br />
The largest category contains all commas of the form 2<span style="vertical-align: super;">x </span>3<span style="vertical-align: super;">y </span>P or 2<span style="vertical-align: super;">x </span>3<span style="vertical-align: super;">y </span>P<span style="vertical-align: super;">-1</span>, where P is a prime (e.g. 81/80 or 64/63). The period is the octave, and the generator is the fifth: {P8, P5}. Such temperaments are called fifth-based.<br />
<br />
Every temperament has at least one alternate generator. More, if the octave is split. To avoid ambiguity, the generator is chosen to minimize the amount of splitting of the multi-gen, and as a tie-breaker, to minimize the size in cents of the multi-gen. There is only one exception to this rule: the fifth is preferred over the fourth, to follow historical precedent.<br />
<br />
For example, srutal could be {P8/2, M2/2}, but P5 is preferred because it is unsplit. Or it could be {P8/2, P12}, but P5 is preferred because it is smaller. Or it could be {P8/2, P4}, but P5 is always preferred over P4. Note that P5/2 is <u>not</u> preferred over P4/2. For example, decimal is {P8/2, P4/2}, not {P8/2, P5/2}.<br />
<br />


<table class="wiki_table">
    <tr>
        <th colspan="2">pergen set<br />
</th>
        <th colspan="4">example temperaments<br />
</th>
    </tr>
    <tr>
        <th>written<br />
</th>
        <th>spoken<br />
</th>
        <th>comma(s)<br />
</th>
        <th>name<br />
</th>
        <th colspan="2">color name<br />
</th>
    </tr>
    <tr>
        <td style="text-align: center;">{P8, P5}<br />
</td>
        <td style="text-align: center;">fifth-based<br />
</td>
        <td style="text-align: center;">81/80<br />
</td>
        <td style="text-align: center;">meantone<br />
</td>
        <td style="text-align: center;">green<br />
</td>
        <td style="text-align: center;">gT<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">&quot;<br />
</td>
        <td style="text-align: center;">&quot;<br />
</td>
        <td style="text-align: center;">64/63<br />
</td>
        <td style="text-align: center;">archy<br />
</td>
        <td style="text-align: center;">red<br />
</td>
        <td style="text-align: center;">rT<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">&quot;<br />
</td>
        <td style="text-align: center;">&quot;<br />
</td>
        <td style="text-align: center;">(-14,8,0,0,1)<br />
</td>
        <td style="text-align: center;">schismic<br />
</td>
        <td style="text-align: center;">large yellow<br />
</td>
        <td style="text-align: center;">LyT<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">&quot;<br />
</td>
        <td style="text-align: center;">&quot;<br />
</td>
        <td style="text-align: center;">81/80 &amp; 126/125<br />
</td>
        <td style="text-align: center;">septimal meantone<br />
</td>
        <td style="text-align: center;">green and bluish-blue<br />
</td>
        <td style="text-align: center;">g&amp;bg<span style="vertical-align: super;">3</span>T<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">{P8/2, P5}<br />
</td>
        <td style="text-align: center;">half-octave<br />
</td>
        <td style="text-align: center;">(11, -4, -2)<br />
</td>
        <td style="text-align: center;">srutal<br />
</td>
        <td style="text-align: center;">small deep green<br />
</td>
        <td style="text-align: center;">sggT<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">&quot;<br />
</td>
        <td style="text-align: center;">&quot;<br />
</td>
        <td style="text-align: center;">81/80 &amp; 50/49<br />
</td>
        <td style="text-align: center;">injera<br />
</td>
        <td style="text-align: center;">deep reddish and green<br />
</td>
        <td style="text-align: center;">rryy&amp;gT<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">{P8, P5/2}<br />
</td>
        <td style="text-align: center;">half-fifth<br />
</td>
        <td style="text-align: center;">25/24<br />
</td>
        <td style="text-align: center;">dicot<br />
</td>
        <td style="text-align: center;">deep yellow<br />
</td>
        <td style="text-align: center;">yyT<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">&quot;<br />
</td>
        <td style="text-align: center;">&quot;<br />
</td>
        <td style="text-align: center;">(-1,5,0,0,-2)<br />
</td>
        <td style="text-align: center;">mohajira<br />
</td>
        <td style="text-align: center;">deep amber<br />
</td>
        <td style="text-align: center;">aaT<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">{P8, P4/2}<br />
</td>
        <td style="text-align: center;">half-fourth<br />
</td>
        <td style="text-align: center;">49/48<br />
</td>
        <td style="text-align: center;">semaphore<br />
</td>
        <td style="text-align: center;">deep blue<br />
</td>
        <td style="text-align: center;">bbT<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">{P8, P4/3}<br />
</td>
        <td style="text-align: center;">third-fourth<br />
</td>
        <td style="text-align: center;">250/243<br />
</td>
        <td style="text-align: center;">porcupine<br />
</td>
        <td style="text-align: center;">triple yellow<br />
</td>
        <td style="text-align: center;">y<span style="vertical-align: super;">3</span>T<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">{P8, P11/3}<br />
</td>
        <td style="text-align: center;">third-eleventh<br />
</td>
        <td style="text-align: center;">(12,-1,0,0,-3)<br />
</td>
        <td style="text-align: center;">small triple amber<br />
</td>
        <td style="text-align: center;">small triple amber<br />
</td>
        <td style="text-align: center;">sa<span style="vertical-align: super;">3</span>T<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">{P8/2, P4/2}<br />
</td>
        <td style="text-align: center;">half-octave, half-fourth<br />
</td>
        <td style="text-align: center;">25/24 &amp; 49/48<br />
</td>
        <td style="text-align: center;">decimal<br />
</td>
        <td style="text-align: center;">deep yellow and deep blue<br />
</td>
        <td style="text-align: center;">yy&amp;bbT<br />
</td>
    </tr>
    <tr>
        <td style="text-align: center;">{P8/4, P5}<br />
</td>
        <td style="text-align: center;">quarter-octave<br />
</td>
        <td style="text-align: center;">(3,4,-4)<br />
</td>
        <td style="text-align: center;">diminished<br />
</td>
        <td style="text-align: center;">quadruple green<br />
</td>
        <td style="text-align: center;">g<span style="vertical-align: super;">4</span>T<br />
</td>
    </tr>
</table>

The color names indicate the amount of splitting: deep splits something into two parts, triple into three parts, etc. For quadruple colors, the 3-limit multi-gen may be the major 2nd 9/8. For example, large quadruple jade tempers out (-17,2,0,0,4), and is {P8/2, M2/4} = half-octave, quarter-tone (9/8 is a whole tone). For hextuple colors, the multi-gen may be the minor 3rd 32/27. These intervals may also be voiced wider, as 3/1, 9/4, etc. To avoid cumbersome degree names like 16th or 18th, for degrees above 11, the widening is indicated with one &quot;W&quot; per octave. Thus 3/1 = WP5, 9/2 = WWM2, etc. Thus magic is {P8, WP5/5} = fifth-wide-fifth.<br />
<br />
For non-standard prime groups, the period uses the first prime only, and the multi-gen uses the first two primes only. <a class="wiki_link" href="/Kite%27s%20color%20notation">Color notation </a>is used to indicate primes higher than 3. For example, 2.5.7 with 50/49 tempered out is {P8/2, y3} = half-octave, yellow-third.<br />
<br />
In a multi-comma temperament, it's possible that one comma will contain only the 1st and 2nd primes. The 2nd prime is directly related to the 1st prime. If this happens, the multi-gen must use the 1st and 3rd primes. If the 3rd prime is also directly related, the 4th prime is used, and so forth.<br />
<br />
For example, 2.3.5.7 with commas 256/243 and 225/224. The 1st comma splits the octave into 5 parts, and makes the 5th be exactly 3/5 of the octave. The multi-gen must use primes 2 and 5. In this case, the pergen set is {P8/5, y3}, the same as Blackwood.<br />
<br />
Rank-3 pergen sets have three intervals, any of which may be split. The unsplit 2.3.5... subgroup is {P8, P5, y3} = fifth-and-third-based. 2.3.5.7 with 50/49 tempered out is {P8/2, P5, y3}. If one knows that the rank is 3, it can be called half-octave, otherwise it's called half-octave fifth-and-third, to distinguish it from {P8/2, P5}. The color name of a temperament indicates the rank. This is the deep reddish temperament. The name has two explicit colors, red and yellow, and two implicit colors, clear and white (primes 2 and 3). 4 colors minus 1 comma equals rank-3.<br />
<br />
Rank-4 temperaments have pergen sets of four intervals. Rank-1 temperaments could have pergen sets of one, such as {P8/12} for 12-edo or {P12/13} for 13-ed3, but there's no particular reason to do so.<br />
<br />
<!-- ws:start:WikiTextHeadingRule:4:&lt;h2&gt; --><h2 id="toc2"><a name="x-Derivation"></a><!-- ws:end:WikiTextHeadingRule:4 --><u>Derivation</u></h2>
 <br />
To find a temperament's pergen set, first find the <strong>PGM</strong>, the period generator mapping. This is a matrix with a column for each prime in the subgroup, and a row for each generator, counting the period as a special type of generator. Choose your generators so that all entries below the diagonal are zero. You can use x31.com's temperament finder to find this matrix. Next make a square matrix by discarding columns for the higher primes. Then invert the matrix to get the monzos for each generator. Add/subtract periods from the generator to get alternate generators. If the interval becomes descending, invert it. For rank-3, add/subtract both periods and generators from the 2nd generator to get more alternates. Choose the alternates to minimize the splitting and the cents.<br />
<br />
For rank-2, we can compute the pergen set right from the PGM. For a period P and a generator G, let <br />
P8 = xP and WP5 = yP + zG<br />
Then we can solve for P = P8/x, and for G: <br />
G = [WP5 - y(P8/x)] / z = [-yP8 + xWP5]/xz = (-y, x) / xz <br />
To G we can add n periods, which are P8/x, so we get<br />
G = (-y, x) / xz + nP8/x = (nz - y, x) / xz<br />
n ranges from -x (subtracting a full octave) to +x (adding a full octave).<br />
<br />
Rank-3 example: 2.3.5.7 with 2401/2400 = (-5,-1,-2,4) tempered out. <a class="wiki_link_ext" href="http://x31eq.com/cgi-bin/rt.cgi?ets=130_171_270&amp;limit=7" rel="nofollow">x31.com</a> gives us this matrix:<br />


<table class="wiki_table">
    <tr>
        <th><br />
</th>
        <th>2/1<br />
</th>
        <th>3/1<br />
</th>
        <th>5/1<br />
</th>
        <th>7/1<br />
</th>
    </tr>
    <tr>
        <th>period<br />
</th>
        <td style="text-align: center;">1<br />
</td>
        <td style="text-align: center;">1<br />
</td>
        <td style="text-align: center;">1<br />
</td>
        <td style="text-align: center;">2<br />
</td>
    </tr>
    <tr>
        <th>gen1<br />
</th>
        <td style="text-align: center;">0<br />
</td>
        <td style="text-align: center;">2<br />
</td>
        <td style="text-align: center;">1<br />
</td>
        <td style="text-align: center;">1<br />
</td>
    </tr>
    <tr>
        <th>gen2<br />
</th>
        <td style="text-align: center;">0<br />
</td>
        <td style="text-align: center;">0<br />
</td>
        <td style="text-align: center;">2<br />
</td>
        <td style="text-align: center;">1<br />
</td>
    </tr>
</table>

Thus 2/1 = P, 3/1 = P + 2 G1, 5/1 = P + G1 + 2 G2, and 7/1 = 2 P + G1 + G2.<br />
<br />
Discard the last column, to make a square matrix with zeros below the diagonal, and no zeros on the diagonal:<br />


<table class="wiki_table">
    <tr>
        <th><br />
</th>
        <th>2/1<br />
</th>
        <th>3/1<br />
</th>
        <th>5/1<br />
</th>
    </tr>
    <tr>
        <th>period<br />
</th>
        <td style="text-align: center;">1<br />
</td>
        <td style="text-align: center;">1<br />
</td>
        <td style="text-align: center;">1<br />
</td>
    </tr>
    <tr>
        <th>gen1<br />
</th>
        <td style="text-align: center;">0<br />
</td>
        <td style="text-align: center;">2<br />
</td>
        <td style="text-align: center;">1<br />
</td>
    </tr>
    <tr>
        <th>gen2<br />
</th>
        <td style="text-align: center;">0<br />
</td>
        <td style="text-align: center;">0<br />
</td>
        <td style="text-align: center;">2<br />
</td>
    </tr>
</table>

Use an <a class="wiki_link_ext" href="http://wims.unice.fr/wims/wims.cgi?session=GF84B8C7BF.1&amp;lang=en&amp;cmd=reply&amp;module=tool%2Flinear%2Fmatmult.en&amp;matA=1+1+1%0D%0A0+2+1%0D%0A0+0+2&amp;matB=&amp;show=A%5E-1" rel="nofollow">online tool</a> to invert it. &quot;/4&quot; means that each entry is to be divided by the determinant of the last matrix, which is 4.<br />


<table class="wiki_table">
    <tr>
        <th><br />
</th>
        <th>period<br />
</th>
        <th>gen1<br />
</th>
        <th>gen2<br />
</th>
        <th><br />
</th>
    </tr>
    <tr>
        <th>2/1<br />
</th>
        <td style="text-align: center;">4<br />
</td>
        <td style="text-align: center;">-2<br />
</td>
        <td style="text-align: center;">-1<br />
</td>
        <td><br />
</td>
    </tr>
    <tr>
        <th>3/1<br />
</th>
        <td style="text-align: center;">0<br />
</td>
        <td style="text-align: center;">2<br />
</td>
        <td style="text-align: center;">-1<br />
</td>
        <td><br />
</td>
    </tr>
    <tr>
        <th>5/1<br />
</th>
        <td style="text-align: center;">0<br />
</td>
        <td style="text-align: center;">0<br />
</td>
        <td style="text-align: center;">2<br />
</td>
        <td>/4<br />
</td>
    </tr>
</table>

Thus the period = (4, 0, 0)/4 = (1, 0, 0) = 2/1, gen1 = (-2, 2, 0)/4 = (-1, 1, 0)/2 = P5/2, and gen2 = (-1, -1, 2)/4 = (25/6) ^ (1/4) = WWyy1/4.<br />
<br />
Next, search for alternate generators. Add/subtract the period 2/1 from gen1. Since the multi-gen P5 is split in half, one multi-gen equals two gens, and adding an octave to the gen adds a <u>double</u> octave to the multi-gen. The alternate gens are WWP5/2 and P11/2, both of which are larger, so the best gen1 is P5/2.<br />
<br />
The multi-gen2 is split into quarters, so we must add/subtract quadruple periods and generators. Subtracting a quadruple octave and inverting makes gen2 be Wgg8/4 (Wgg8 = 96/25). A quadruple half-fifth is a double fifth is a M9. Subtracting that makes gen2 be gg7/4 (gg7 = 128/75).</body></html>