Kite's thoughts on pergens: Difference between revisions

Wikispaces>TallKite
**Imported revision 625119305 - Original comment: **
Wikispaces>TallKite
**Imported revision 625176467 - 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>2018-01-19 21:19:24 UTC</tt>.<br>
: This revision was by author [[User:TallKite|TallKite]] and made on <tt>2018-01-22 03:49:06 UTC</tt>.<br>
: The original revision id was <tt>625119305</tt>.<br>
: The original revision id was <tt>625176467</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>
Line 320: Line 320:
=__Further Discussion__=  
=__Further Discussion__=  


==Searching for pergens==
To list all valid pergens is not a trivial task, like listing all valid edos or all valid MOS scales. Not all combinations of octave fractions and multigen fractions make a valid pergen. The search for rank-2 pergens can be done by looping through all possible square mappings [(x, y), (0, z)], and using the formula (P8/x, (i·z - y, x) / xz). While x is always positive and z is always nonzero, y can take on any value. For any x and z, y can be constrained to produce a viable cents value for 3/1. Let T be the tempered twefth 3/1. The mapping says T = y·P + z·G = y·P8/x + z·G. Thus y = x·(T/P8 - z·G/P8). We adopt the convention that G is less than half an octave. We constrain T so that the 5th is between 600¢ and 800¢, which certainly includes anything that sounds like a 5th. Thus T is between 3/2 and 5/3 of an octave. We assume that if the octave is stretched, the ranges of T and G will be stretched along with it. The outer ranges of y can now be computed, using the floor function to round down to the nearest integer, and the ceiling function to round up:
If z &gt; 0, then y is at least ceiling (x·(3/2 - z/2)) and at most floor (x·5/3)
If z &lt; 0, then y is at least ceiling (x·3/2) and at most floor (x·(5/3 - z/2))
Next we loop through all combinations of x and z in such a way that larger values of x and z come last:
i = 1; loop (maxFraction,
&gt; j = 1; loop (i - 1,
&gt;&gt; makeMapping (i, j); makeMapping (i, -j);
&gt;&gt; makeMapping (j, i); makeMapping (j, -i);
&gt;&gt; j += 1;
&gt; );
&gt; makeMapping (i, i); makeMapping (i, -i);
&gt; i += 1;
);
The makeMapping function uses the two parameters as x and z, and loops through all valid values of y. Every value of i from -x to x is tested, and the one that minimizes the multigen's splitting fraction and cents is chosen. This combination of x, y, z and i makes a valid pergen. If the pergen is of the form (P8/m, P4), it's converted to (P8/m, P5). This pergen is added to the list, unless it's a duplicate. The pergens are almost but not quite in the proper order, they will need to be sorted.
In the [[pergen#Further%20Discussion-Supplemental%20materials|Supplemental materials]] section, a program is linked to that performs these calculations and lists all pergens. It also lists suggested enharmonics. Experimenting with allowing y and i to range further does not produce any additional pergens.


==Extremely large multigens==  
==Extremely large multigens==  
Line 659: Line 638:
Screenshot of the first 38 pergens:
Screenshot of the first 38 pergens:
[[image:alt-pergenLister.png width="704" height="460"]]
[[image:alt-pergenLister.png width="704" height="460"]]
To list all valid pergens is not a trivial task, like listing all valid edos or all valid MOS scales. Not all combinations of octave fractions and multigen fractions make a valid pergen. The search for rank-2 pergens can be done by looping through all possible square mappings [(x, y), (0, z)], and using the formula (P8/x, (i·z - y, x) / xz). While x is always positive and z is always nonzero, y can take on any value. For any x and z, y can be constrained to produce a viable cents value for 3/1. Let T be the tempered twefth 3/1. The mapping says T = y·P + z·G = y·P8/x + z·G. Thus y = x·(T/P8 - z·G/P8). We adopt the convention that G is less than half an octave. We constrain T so that the 5th is between 600¢ and 800¢, which certainly includes anything that sounds like a 5th. Thus T is between 3/2 and 5/3 of an octave. We assume that if the octave is stretched, the ranges of T and G will be stretched along with it. The outer ranges of y can now be computed, using the floor function to round down to the nearest integer, and the ceiling function to round up:
If z &gt; 0, then y is at least ceiling (x·(3/2 - z/2)) and at most floor (x·5/3)
If z &lt; 0, then y is at least ceiling (x·3/2) and at most floor (x·(5/3 - z/2))
Next we loop through all combinations of x and z in such a way that larger values of x and z come last:
i = 1; loop (maxFraction,
&gt; j = 1; loop (i - 1,
&gt;&gt; makeMapping (i, j); makeMapping (i, -j);
&gt;&gt; makeMapping (j, i); makeMapping (j, -i);
&gt;&gt; j += 1;
&gt; );
&gt; makeMapping (i, i); makeMapping (i, -i);
&gt; i += 1;
);
The makeMapping function uses the two parameters as x and z, and loops through all valid values of y. Every value of i from -x to x is tested, and the one that minimizes the multigen's splitting fraction and cents is chosen. This combination of x, y, z and i makes a valid pergen. If the pergen is of the form (P8/m, P4), it's converted to (P8/m, P5). This pergen is added to the list, unless it's a duplicate. The pergens are almost but not quite in the proper order, they will need to be sorted. Experimenting with allowing y and i to range further does not produce any additional pergens.


==Misc notes==  
==Misc notes==  
Line 738: Line 736:
<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&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;!-- ws:start:WikiTextHeadingRule:52:&amp;lt;h1&amp;gt; --&gt;&lt;h1 id="toc0"&gt;&lt;!-- ws:end:WikiTextHeadingRule:52 --&gt; &lt;/h1&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&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;!-- ws:start:WikiTextHeadingRule:52:&amp;lt;h1&amp;gt; --&gt;&lt;h1 id="toc0"&gt;&lt;!-- ws:end:WikiTextHeadingRule:52 --&gt; &lt;/h1&gt;
  &lt;!-- ws:start:WikiTextTocRule:92:&amp;lt;img id=&amp;quot;wikitext@@toc@@normal&amp;quot; class=&amp;quot;WikiMedia WikiMediaToc&amp;quot; title=&amp;quot;Table of Contents&amp;quot; src=&amp;quot;/site/embedthumbnail/toc/normal?w=225&amp;amp;h=100&amp;quot;/&amp;gt; --&gt;&lt;div id="toc"&gt;&lt;h1 class="nopad"&gt;Table of Contents&lt;/h1&gt;&lt;!-- ws:end:WikiTextTocRule:92 --&gt;&lt;!-- ws:start:WikiTextTocRule:93: --&gt;&lt;div style="margin-left: 1em;"&gt;&lt;a href="#toc0"&gt; &lt;/a&gt;&lt;/div&gt;
  &lt;!-- ws:start:WikiTextTocRule:90:&amp;lt;img id=&amp;quot;wikitext@@toc@@normal&amp;quot; class=&amp;quot;WikiMedia WikiMediaToc&amp;quot; title=&amp;quot;Table of Contents&amp;quot; src=&amp;quot;/site/embedthumbnail/toc/normal?w=225&amp;amp;h=100&amp;quot;/&amp;gt; --&gt;&lt;div id="toc"&gt;&lt;h1 class="nopad"&gt;Table of Contents&lt;/h1&gt;&lt;!-- ws:end:WikiTextTocRule:90 --&gt;&lt;!-- ws:start:WikiTextTocRule:91: --&gt;&lt;div style="margin-left: 1em;"&gt;&lt;a href="#toc0"&gt; &lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:93 --&gt;&lt;!-- ws:start:WikiTextTocRule:94: --&gt;&lt;div style="margin-left: 1em;"&gt;&lt;a href="#Definition"&gt;Definition&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:91 --&gt;&lt;!-- ws:start:WikiTextTocRule:92: --&gt;&lt;div style="margin-left: 1em;"&gt;&lt;a href="#Definition"&gt;Definition&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:94 --&gt;&lt;!-- ws:start:WikiTextTocRule:95: --&gt;&lt;div style="margin-left: 1em;"&gt;&lt;a href="#Derivation"&gt;Derivation&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:92 --&gt;&lt;!-- ws:start:WikiTextTocRule:93: --&gt;&lt;div style="margin-left: 1em;"&gt;&lt;a href="#Derivation"&gt;Derivation&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:95 --&gt;&lt;!-- ws:start:WikiTextTocRule:96: --&gt;&lt;div style="margin-left: 1em;"&gt;&lt;a href="#Applications"&gt;Applications&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:93 --&gt;&lt;!-- ws:start:WikiTextTocRule:94: --&gt;&lt;div style="margin-left: 1em;"&gt;&lt;a href="#Applications"&gt;Applications&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:96 --&gt;&lt;!-- ws:start:WikiTextTocRule:97: --&gt;&lt;div style="margin-left: 1em;"&gt;&lt;a href="#Further Discussion"&gt;Further Discussion&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:94 --&gt;&lt;!-- ws:start:WikiTextTocRule:95: --&gt;&lt;div style="margin-left: 1em;"&gt;&lt;a href="#Further Discussion"&gt;Further Discussion&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:97 --&gt;&lt;!-- ws:start:WikiTextTocRule:98: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Searching for pergens"&gt;Searching for pergens&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:95 --&gt;&lt;!-- ws:start:WikiTextTocRule:96: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Extremely large multigens"&gt;Extremely large multigens&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:98 --&gt;&lt;!-- ws:start:WikiTextTocRule:99: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Extremely large multigens"&gt;Extremely large multigens&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:96 --&gt;&lt;!-- ws:start:WikiTextTocRule:97: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Singles and doubles"&gt;Singles and doubles&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:99 --&gt;&lt;!-- ws:start:WikiTextTocRule:100: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Singles and doubles"&gt;Singles and doubles&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:97 --&gt;&lt;!-- ws:start:WikiTextTocRule:98: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Finding an example temperament"&gt;Finding an example temperament&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:100 --&gt;&lt;!-- ws:start:WikiTextTocRule:101: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Finding an example temperament"&gt;Finding an example temperament&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:98 --&gt;&lt;!-- ws:start:WikiTextTocRule:99: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Ratio and cents of the accidentals"&gt;Ratio and cents of the accidentals&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:101 --&gt;&lt;!-- ws:start:WikiTextTocRule:102: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Ratio and cents of the accidentals"&gt;Ratio and cents of the accidentals&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:99 --&gt;&lt;!-- ws:start:WikiTextTocRule:100: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Finding a notation for a pergen"&gt;Finding a notation for a pergen&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:102 --&gt;&lt;!-- ws:start:WikiTextTocRule:103: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Finding a notation for a pergen"&gt;Finding a notation for a pergen&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:100 --&gt;&lt;!-- ws:start:WikiTextTocRule:101: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Alternate enharmonics"&gt;Alternate enharmonics&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:103 --&gt;&lt;!-- ws:start:WikiTextTocRule:104: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Alternate enharmonics"&gt;Alternate enharmonics&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:101 --&gt;&lt;!-- ws:start:WikiTextTocRule:102: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Alternate keyspans and stepspans"&gt;Alternate keyspans and stepspans&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:104 --&gt;&lt;!-- ws:start:WikiTextTocRule:105: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Alternate keyspans and stepspans"&gt;Alternate keyspans and stepspans&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:102 --&gt;&lt;!-- ws:start:WikiTextTocRule:103: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Chord names and scale names"&gt;Chord names and scale names&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:105 --&gt;&lt;!-- ws:start:WikiTextTocRule:106: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Chord names and scale names"&gt;Chord names and scale names&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:103 --&gt;&lt;!-- ws:start:WikiTextTocRule:104: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#toc13"&gt; &lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:106 --&gt;&lt;!-- ws:start:WikiTextTocRule:107: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#toc14"&gt; &lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:104 --&gt;&lt;!-- ws:start:WikiTextTocRule:105: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Pergens and MOS scales"&gt;Pergens and MOS scales&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:107 --&gt;&lt;!-- ws:start:WikiTextTocRule:108: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Pergens and MOS scales"&gt;Pergens and MOS scales&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:105 --&gt;&lt;!-- ws:start:WikiTextTocRule:106: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Pergens and EDOs"&gt;Pergens and EDOs&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:108 --&gt;&lt;!-- ws:start:WikiTextTocRule:109: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Pergens and EDOs"&gt;Pergens and EDOs&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:106 --&gt;&lt;!-- ws:start:WikiTextTocRule:107: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Combining pergens"&gt;Combining pergens&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:109 --&gt;&lt;!-- ws:start:WikiTextTocRule:110: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Combining pergens"&gt;Combining pergens&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:107 --&gt;&lt;!-- ws:start:WikiTextTocRule:108: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Supplemental materials"&gt;Supplemental materials&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:110 --&gt;&lt;!-- ws:start:WikiTextTocRule:111: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Supplemental materials"&gt;Supplemental materials&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:108 --&gt;&lt;!-- ws:start:WikiTextTocRule:109: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Misc notes"&gt;Misc notes&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:111 --&gt;&lt;!-- ws:start:WikiTextTocRule:112: --&gt;&lt;div style="margin-left: 2em;"&gt;&lt;a href="#Further Discussion-Misc notes"&gt;Misc notes&lt;/a&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:109 --&gt;&lt;!-- ws:start:WikiTextTocRule:110: --&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:112 --&gt;&lt;!-- ws:start:WikiTextTocRule:113: --&gt;&lt;/div&gt;
&lt;!-- ws:end:WikiTextTocRule:110 --&gt;&lt;!-- ws:start:WikiTextHeadingRule:54:&amp;lt;h1&amp;gt; --&gt;&lt;h1 id="toc1"&gt;&lt;a name="Definition"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:54 --&gt;&lt;u&gt;&lt;strong&gt;Definition&lt;/strong&gt;&lt;/u&gt;&lt;/h1&gt;
&lt;!-- ws:end:WikiTextTocRule:113 --&gt;&lt;!-- ws:start:WikiTextHeadingRule:54:&amp;lt;h1&amp;gt; --&gt;&lt;h1 id="toc1"&gt;&lt;a name="Definition"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:54 --&gt;&lt;u&gt;&lt;strong&gt;Definition&lt;/strong&gt;&lt;/u&gt;&lt;/h1&gt;
  &lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Line 2,330: Line 2,327:
&lt;!-- ws:start:WikiTextHeadingRule:60:&amp;lt;h1&amp;gt; --&gt;&lt;h1 id="toc4"&gt;&lt;a name="Further Discussion"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:60 --&gt;&lt;u&gt;Further Discussion&lt;/u&gt;&lt;/h1&gt;
&lt;!-- ws:start:WikiTextHeadingRule:60:&amp;lt;h1&amp;gt; --&gt;&lt;h1 id="toc4"&gt;&lt;a name="Further Discussion"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:60 --&gt;&lt;u&gt;Further Discussion&lt;/u&gt;&lt;/h1&gt;
  &lt;br /&gt;
  &lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:62:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc5"&gt;&lt;a name="Further Discussion-Searching for pergens"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:62 --&gt;Searching for pergens&lt;/h2&gt;
&lt;br /&gt;
To list all valid pergens is not a trivial task, like listing all valid edos or all valid MOS scales. Not all combinations of octave fractions and multigen fractions make a valid pergen. The search for rank-2 pergens can be done by looping through all possible square mappings [(x, y), (0, z)], and using the formula (P8/x, (i·z - y, x) / xz). While x is always positive and z is always nonzero, y can take on any value. For any x and z, y can be constrained to produce a viable cents value for 3/1. Let T be the tempered twefth 3/1. The mapping says T = y·P + z·G = y·P8/x + z·G. Thus y = x·(T/P8 - z·G/P8). We adopt the convention that G is less than half an octave. We constrain T so that the 5th is between 600¢ and 800¢, which certainly includes anything that sounds like a 5th. Thus T is between 3/2 and 5/3 of an octave. We assume that if the octave is stretched, the ranges of T and G will be stretched along with it. The outer ranges of y can now be computed, using the floor function to round down to the nearest integer, and the ceiling function to round up:&lt;br /&gt;
&lt;br /&gt;
If z &amp;gt; 0, then y is at least ceiling (x·(3/2 - z/2)) and at most floor (x·5/3)&lt;br /&gt;
If z &amp;lt; 0, then y is at least ceiling (x·3/2) and at most floor (x·(5/3 - z/2))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next we loop through all combinations of x and z in such a way that larger values of x and z come last:&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:62:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc5"&gt;&lt;a name="Further Discussion-Extremely large multigens"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:62 --&gt;Extremely large multigens&lt;/h2&gt;
i = 1; loop (maxFraction,&lt;br /&gt;
&lt;ul class="quotelist"&gt;&lt;li&gt;j = 1; loop (i - 1,&lt;ul class="quotelist"&gt;&lt;li&gt;makeMapping (i, j); makeMapping (i, -j);&lt;/li&gt;&lt;li&gt;makeMapping (j, i); makeMapping (j, -i);&lt;/li&gt;&lt;li&gt;j += 1;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;);&lt;/li&gt;&lt;li&gt;makeMapping (i, i); makeMapping (i, -i);&lt;/li&gt;&lt;li&gt;i += 1;&lt;/li&gt;&lt;/ul&gt;);&lt;br /&gt;
&lt;br /&gt;
The makeMapping function uses the two parameters as x and z, and loops through all valid values of y. Every value of i from -x to x is tested, and the one that minimizes the multigen's splitting fraction and cents is chosen. This combination of x, y, z and i makes a valid pergen. If the pergen is of the form (P8/m, P4), it's converted to (P8/m, P5). This pergen is added to the list, unless it's a duplicate. The pergens are almost but not quite in the proper order, they will need to be sorted.&lt;br /&gt;
&lt;br /&gt;
In the &lt;a class="wiki_link" href="/pergen#Further%20Discussion-Supplemental%20materials"&gt;Supplemental materials&lt;/a&gt; section, a program is linked to that performs these calculations and lists all pergens. It also lists suggested enharmonics. Experimenting with allowing y and i to range further does not produce any additional pergens.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:64:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc6"&gt;&lt;a name="Further Discussion-Extremely large multigens"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:64 --&gt;Extremely large multigens&lt;/h2&gt;
  &lt;br /&gt;
  &lt;br /&gt;
So far, the largest multigen has been a 12th. As the multigen fractions get larger, the multigen gets quite wide. To avoid cumbersome degree names like 16th or 22nd, for degrees above 12, the widening is indicated with one &amp;quot;W&amp;quot; per octave. Thus 32/9 = Wm7, 9/2 = WWM2 or WM9, etc. For (P8, M/n), valid multigens are any voicing of the fifth that is less than n/2 octaves. For (P8, M/6), the multigen can be P4, P5, P11, P12, WWP4 or WWP5.&lt;br /&gt;
So far, the largest multigen has been a 12th. As the multigen fractions get larger, the multigen gets quite wide. To avoid cumbersome degree names like 16th or 22nd, for degrees above 12, the widening is indicated with one &amp;quot;W&amp;quot; per octave. Thus 32/9 = Wm7, 9/2 = WWM2 or WM9, etc. For (P8, M/n), valid multigens are any voicing of the fifth that is less than n/2 octaves. For (P8, M/6), the multigen can be P4, P5, P11, P12, WWP4 or WWP5.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:66:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc7"&gt;&lt;a name="Further Discussion-Singles and doubles"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:66 --&gt;Singles and doubles&lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:64:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc6"&gt;&lt;a name="Further Discussion-Singles and doubles"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:64 --&gt;Singles and doubles&lt;/h2&gt;
  &lt;br /&gt;
  &lt;br /&gt;
If a pergen has only one fraction, like (P8/2, P5) or (P8, P4/3), the pergen is a &lt;strong&gt;single-split&lt;/strong&gt; pergen. If it has two fractions, it's a &lt;strong&gt;double-split&lt;/strong&gt; pergen. A single-split pergen can result from tempering out only a single comma, although it can be created by multiple commas. A single-split pergen can be notated with only ups and downs, called &lt;strong&gt;single-pair&lt;/strong&gt; notation because it adds only a single pair of accidentals to conventional notation. &lt;strong&gt;Double-pair&lt;/strong&gt; notation uses both ups/downs and highs/lows. In general, single-pair notation is preferred, because it's simpler. However, double-pair notation may be preferred, especially if the enharmonic for single-pair notation is a 3rd or larger. In this article, ups and downs are used for the octave-splitting enharmonic, and highs/lows are used for the multigen-splitting enharmonic. But the choice of which pair of accidentals is used for which enharmonic is arbitrary, and ups/downs could be exchanged with highs/lows.&lt;br /&gt;
If a pergen has only one fraction, like (P8/2, P5) or (P8, P4/3), the pergen is a &lt;strong&gt;single-split&lt;/strong&gt; pergen. If it has two fractions, it's a &lt;strong&gt;double-split&lt;/strong&gt; pergen. A single-split pergen can result from tempering out only a single comma, although it can be created by multiple commas. A single-split pergen can be notated with only ups and downs, called &lt;strong&gt;single-pair&lt;/strong&gt; notation because it adds only a single pair of accidentals to conventional notation. &lt;strong&gt;Double-pair&lt;/strong&gt; notation uses both ups/downs and highs/lows. In general, single-pair notation is preferred, because it's simpler. However, double-pair notation may be preferred, especially if the enharmonic for single-pair notation is a 3rd or larger. In this article, ups and downs are used for the octave-splitting enharmonic, and highs/lows are used for the multigen-splitting enharmonic. But the choice of which pair of accidentals is used for which enharmonic is arbitrary, and ups/downs could be exchanged with highs/lows.&lt;br /&gt;
Line 2,357: Line 2,340:
A pergen (P8/m, (a,b)/n) is a false double if and only if GCD (m,n) = |b|. The next section discusses an alternate test.&lt;br /&gt;
A pergen (P8/m, (a,b)/n) is a false double if and only if GCD (m,n) = |b|. The next section discusses an alternate test.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:68:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc8"&gt;&lt;a name="Further Discussion-Finding an example temperament"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:68 --&gt;Finding an example temperament&lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:66:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc7"&gt;&lt;a name="Further Discussion-Finding an example temperament"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:66 --&gt;Finding an example temperament&lt;/h2&gt;
  &lt;br /&gt;
  &lt;br /&gt;
To find an example of a temperament with a specific pergen, we must find the comma(s) the temperament tempers out. To construct a comma that creates a single-split pergen, find a ratio for P or G that contains only one higher prime, with exponent ±1, of appropriate cents to add up to approximately the octave or the multigen. The comma is the difference between the stacked ratios and the larger interval. For example, (P8/4, P5) requires a P of about 300¢. The comma is the difference between 4&lt;span class="nowrap"&gt;⋅&lt;/span&gt;P and P8. If P is 6/5, the comma is 4&lt;span class="nowrap"&gt;⋅&lt;/span&gt;P - P8 = (6/5)&lt;span style="vertical-align: super;"&gt;4&lt;/span&gt; ÷ (2/1) = 648/625. If P is 7/6, the comma is P8 - 4&lt;span class="nowrap"&gt;⋅&lt;/span&gt;P = (2/1) · (7/6)&lt;span style="vertical-align: super;"&gt;-4&lt;/span&gt;. Neither 13/11 nor 32/27 would work for P, too many and too few higher primes respectively. (P8, P4/3) requires a G of about (498¢)/3 = 166¢, perhaps 10/9. The comma is 3&lt;span class="nowrap"&gt;⋅&lt;/span&gt;G - P4 = (10/9)^3 ÷ (4/3) = 250/243.&lt;br /&gt;
To find an example of a temperament with a specific pergen, we must find the comma(s) the temperament tempers out. To construct a comma that creates a single-split pergen, find a ratio for P or G that contains only one higher prime, with exponent ±1, of appropriate cents to add up to approximately the octave or the multigen. The comma is the difference between the stacked ratios and the larger interval. For example, (P8/4, P5) requires a P of about 300¢. The comma is the difference between 4&lt;span class="nowrap"&gt;⋅&lt;/span&gt;P and P8. If P is 6/5, the comma is 4&lt;span class="nowrap"&gt;⋅&lt;/span&gt;P - P8 = (6/5)&lt;span style="vertical-align: super;"&gt;4&lt;/span&gt; ÷ (2/1) = 648/625. If P is 7/6, the comma is P8 - 4&lt;span class="nowrap"&gt;⋅&lt;/span&gt;P = (2/1) · (7/6)&lt;span style="vertical-align: super;"&gt;-4&lt;/span&gt;. Neither 13/11 nor 32/27 would work for P, too many and too few higher primes respectively. (P8, P4/3) requires a G of about (498¢)/3 = 166¢, perhaps 10/9. The comma is 3&lt;span class="nowrap"&gt;⋅&lt;/span&gt;G - P4 = (10/9)^3 ÷ (4/3) = 250/243.&lt;br /&gt;
Line 2,379: Line 2,362:
There are also alternate enharmonics, see below. For double-pair notation, there are also equivalent enharmonics.&lt;br /&gt;
There are also alternate enharmonics, see below. For double-pair notation, there are also equivalent enharmonics.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:70:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc9"&gt;&lt;a name="Further Discussion-Ratio and cents of the accidentals"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:70 --&gt;Ratio and cents of the accidentals&lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:68:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc8"&gt;&lt;a name="Further Discussion-Ratio and cents of the accidentals"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:68 --&gt;Ratio and cents of the accidentals&lt;/h2&gt;
  &lt;br /&gt;
  &lt;br /&gt;
In a 5-limit temperament, the up symbol is generally 81/80. However, for diminished (which sets 6/5 = P8/4), ^1 = 80/81. in every temperament except those in the meantone family, the 81/80 comma is not tempered out, but it is still tempered, just like every ratio. Occasionally 81/80 is tempered so far that it becomes a descending interval. In a 2.3.7 rank-2 temperament, ^1 is often 64/63, or perhaps 63/64. #1 is always (-11,7) = 2187/2048, by definition.&lt;br /&gt;
In a 5-limit temperament, the up symbol is generally 81/80. However, for diminished (which sets 6/5 = P8/4), ^1 = 80/81. in every temperament except those in the meantone family, the 81/80 comma is not tempered out, but it is still tempered, just like every ratio. Occasionally 81/80 is tempered so far that it becomes a descending interval. In a 2.3.7 rank-2 temperament, ^1 is often 64/63, or perhaps 63/64. #1 is always (-11,7) = 2187/2048, by definition.&lt;br /&gt;
Line 2,406: Line 2,389:
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:72:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc10"&gt;&lt;a name="Further Discussion-Finding a notation for a pergen"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:72 --&gt;Finding a notation for a pergen&lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:70:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc9"&gt;&lt;a name="Further Discussion-Finding a notation for a pergen"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:70 --&gt;Finding a notation for a pergen&lt;/h2&gt;
  &lt;br /&gt;
  &lt;br /&gt;
There are multiple notations for a given pergen, depending on the enharmonic interval(s). Preferably, the enharmonic's degree will be a unison or a 2nd, because equating two notes a 3rd or 4th apart is very disconcerting. If it's a unison, it will always be an A1. (P1 would be pointless, d1 would be inverted to A1, and AA1 would be split into two A1's.) If it's a 2nd, preferably it will be a m2 or a d2 or a dd2, and not a M2 or an A2 or a ddd2. There is an easy method for finding such a pergen, if one exists. First, some terminology and basic concepts:&lt;br /&gt;
There are multiple notations for a given pergen, depending on the enharmonic interval(s). Preferably, the enharmonic's degree will be a unison or a 2nd, because equating two notes a 3rd or 4th apart is very disconcerting. If it's a unison, it will always be an A1. (P1 would be pointless, d1 would be inverted to A1, and AA1 would be split into two A1's.) If it's a 2nd, preferably it will be a m2 or a d2 or a dd2, and not a M2 or an A2 or a ddd2. There is an easy method for finding such a pergen, if one exists. First, some terminology and basic concepts:&lt;br /&gt;
Line 2,441: Line 2,424:
This is a lot of math, but it only needs to be done once for each pergen!&lt;br /&gt;
This is a lot of math, but it only needs to be done once for each pergen!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:74:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc11"&gt;&lt;a name="Further Discussion-Alternate enharmonics"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:74 --&gt;Alternate enharmonics&lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:72:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc10"&gt;&lt;a name="Further Discussion-Alternate enharmonics"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:72 --&gt;Alternate enharmonics&lt;/h2&gt;
  &lt;br /&gt;
  &lt;br /&gt;
Sometimes the enharmonic found by rounding off the gedra can be greatly improved by rounding off differently. For example, (P8/3, P4/4) unreduces to (P8/3, WWM6/12), a false double. The bare alternate generator is WWM6/12 = [33,19]/12 = [3,2] = m3. The bare enharmonic is [33,19] - 12·[3,2] = [-3,-5] = a quintuple-diminished 6th! This would make for a very confusing notation. However, [33,19]/12 can be rounded very inaccurately all the way up to [4,2] = M3. The enharmonic becomes [33,19] - 12·[4,2] = [-15,-5] = -5·[3,1] = -5·v&lt;span style="vertical-align: super;"&gt;12&lt;/span&gt;A2, which is an improvement but still awkward. The period is ^&lt;span style="vertical-align: super;"&gt;4&lt;/span&gt;m3 and the generator is v&lt;span style="vertical-align: super;"&gt;3&lt;/span&gt;M2.&lt;br /&gt;
Sometimes the enharmonic found by rounding off the gedra can be greatly improved by rounding off differently. For example, (P8/3, P4/4) unreduces to (P8/3, WWM6/12), a false double. The bare alternate generator is WWM6/12 = [33,19]/12 = [3,2] = m3. The bare enharmonic is [33,19] - 12·[3,2] = [-3,-5] = a quintuple-diminished 6th! This would make for a very confusing notation. However, [33,19]/12 can be rounded very inaccurately all the way up to [4,2] = M3. The enharmonic becomes [33,19] - 12·[4,2] = [-15,-5] = -5·[3,1] = -5·v&lt;span style="vertical-align: super;"&gt;12&lt;/span&gt;A2, which is an improvement but still awkward. The period is ^&lt;span style="vertical-align: super;"&gt;4&lt;/span&gt;m3 and the generator is v&lt;span style="vertical-align: super;"&gt;3&lt;/span&gt;M2.&lt;br /&gt;
Line 2,464: Line 2,447:
This is all for single-comma temperaments. Each comma of a multiple-comma temperament also implies an enharmonic, and they may conflict. True double pergens, which are always multi-comma, have multiple notations. For example, the half-everything pergen has 3 possible notations, all equally valid. Even single-split pergens can have multiple commas that imply different enharmonics.&lt;br /&gt;
This is all for single-comma temperaments. Each comma of a multiple-comma temperament also implies an enharmonic, and they may conflict. True double pergens, which are always multi-comma, have multiple notations. For example, the half-everything pergen has 3 possible notations, all equally valid. Even single-split pergens can have multiple commas that imply different enharmonics.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:76:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc12"&gt;&lt;a name="Further Discussion-Alternate keyspans and stepspans"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:76 --&gt;Alternate keyspans and stepspans&lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:74:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc11"&gt;&lt;a name="Further Discussion-Alternate keyspans and stepspans"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:74 --&gt;Alternate keyspans and stepspans&lt;/h2&gt;
  &lt;br /&gt;
  &lt;br /&gt;
One might wonder, when using gedras, why 12-edo keyspans? Why heptatonic stepspans? Heptatonic is best because conventional notation is heptatonic, and we want to minimize the heptatonic stepspan of the enharmonic. In order for the matrix to be invertible, the edo must be connected to the 4\7 kite on the scale tree. The only choices are 5-edo, 12-edo, 19-edo, 26-edo, 33-edo, 40-edo and 47-edo, and on the other side, 2-edo, 9-edo, 16-edo and 23-edo. Any of these edos would also work. 12-edo is merely the most convenient choice, because of its familiarity. Dividing the gedra directly only gives you an estimate of the best period or generator. As noted in the previous section, to improve the enharmonic, this initial estimate must often be revised. So the choice of estimating edo isn't very important.&lt;br /&gt;
One might wonder, when using gedras, why 12-edo keyspans? Why heptatonic stepspans? Heptatonic is best because conventional notation is heptatonic, and we want to minimize the heptatonic stepspan of the enharmonic. In order for the matrix to be invertible, the edo must be connected to the 4\7 kite on the scale tree. The only choices are 5-edo, 12-edo, 19-edo, 26-edo, 33-edo, 40-edo and 47-edo, and on the other side, 2-edo, 9-edo, 16-edo and 23-edo. Any of these edos would also work. 12-edo is merely the most convenient choice, because of its familiarity. Dividing the gedra directly only gives you an estimate of the best period or generator. As noted in the previous section, to improve the enharmonic, this initial estimate must often be revised. So the choice of estimating edo isn't very important.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:78:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc13"&gt;&lt;a name="Further Discussion-Chord names and scale names"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:78 --&gt;Chord names and scale names&lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:76:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc12"&gt;&lt;a name="Further Discussion-Chord names and scale names"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:76 --&gt;Chord names and scale names&lt;/h2&gt;
  &lt;br /&gt;
  &lt;br /&gt;
Using pergens, all rank-2 chords can be named using ups and downs, and if needed highs and lows as well. See the &lt;a class="wiki_link" href="/Ups%20and%20Downs%20Notation"&gt;ups and downs&lt;/a&gt; page for chord naming conventions. The genchain and/or the perchain creates a lattice in which each note and each interval has its own name. The many enharmonic equivalents allow proper chord spelling.&lt;br /&gt;
Using pergens, all rank-2 chords can be named using ups and downs, and if needed highs and lows as well. See the &lt;a class="wiki_link" href="/Ups%20and%20Downs%20Notation"&gt;ups and downs&lt;/a&gt; page for chord naming conventions. The genchain and/or the perchain creates a lattice in which each note and each interval has its own name. The many enharmonic equivalents allow proper chord spelling.&lt;br /&gt;
Line 2,479: Line 2,462:
&lt;br /&gt;
&lt;br /&gt;
Scales can be named similar to Meantone[7], as (P8, P5) [7] = unsplit heptatonic, or (P8, P5/2) [7] = half-fifth pentatonic, etc. The number of notes in the scale tend to be a multiple of m, so that half-octave pergens have scales with an even number of notes.&lt;br /&gt;
Scales can be named similar to Meantone[7], as (P8, P5) [7] = unsplit heptatonic, or (P8, P5/2) [7] = half-fifth pentatonic, etc. The number of notes in the scale tend to be a multiple of m, so that half-octave pergens have scales with an even number of notes.&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:80:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc14"&gt;&lt;!-- ws:end:WikiTextHeadingRule:80 --&gt; &lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:78:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc13"&gt;&lt;!-- ws:end:WikiTextHeadingRule:78 --&gt; &lt;/h2&gt;
  &lt;!-- ws:start:WikiTextHeadingRule:82:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc15"&gt;&lt;a name="Further Discussion-Pergens and MOS scales"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:82 --&gt;Pergens and MOS scales&lt;/h2&gt;
  &lt;!-- ws:start:WikiTextHeadingRule:80:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc14"&gt;&lt;a name="Further Discussion-Pergens and MOS scales"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:80 --&gt;Pergens and MOS scales&lt;/h2&gt;
  &lt;br /&gt;
  &lt;br /&gt;
Every rank-2 pergen generates certain MOS scales. This of course depends on the exact size of the generator. In this table, the 5th is assumed to be between 4\7 and 3\5. Sometimes the genchain is too short to generate the multigen. For example, (P8/3, P4/2) [6] has 3 genchains, each with only 2 notes, and thus only 1 step. But it takes 2 steps to make a 4th, so the scale doesn't actually contain any 4ths. Such scales are marked with an asterisk.&lt;br /&gt;
Every rank-2 pergen generates certain MOS scales. This of course depends on the exact size of the generator. In this table, the 5th is assumed to be between 4\7 and 3\5. Sometimes the genchain is too short to generate the multigen. For example, (P8/3, P4/2) [6] has 3 genchains, each with only 2 notes, and thus only 1 step. But it takes 2 steps to make a 4th, so the scale doesn't actually contain any 4ths. Such scales are marked with an asterisk.&lt;br /&gt;
Line 3,591: Line 3,574:
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:84:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc16"&gt;&lt;a name="Further Discussion-Pergens and EDOs"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:84 --&gt;Pergens and EDOs&lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:82:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc15"&gt;&lt;a name="Further Discussion-Pergens and EDOs"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:82 --&gt;Pergens and EDOs&lt;/h2&gt;
  &lt;br /&gt;
  &lt;br /&gt;
Pergens have much in common with edos. Pergens of rank-2 assume only primes 2 and 3, edos assume only prime 2. There are an infinite number of edos, but fewer than a hundred have been explored. There are an infinite number of pergens, but fewer than a hundred will suffice most composers.&lt;br /&gt;
Pergens have much in common with edos. Pergens of rank-2 assume only primes 2 and 3, edos assume only prime 2. There are an infinite number of edos, but fewer than a hundred have been explored. There are an infinite number of pergens, but fewer than a hundred will suffice most composers.&lt;br /&gt;
Line 3,903: Line 3,886:
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:86:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc17"&gt;&lt;a name="Further Discussion-Combining pergens"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:86 --&gt;Combining pergens&lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:84:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc16"&gt;&lt;a name="Further Discussion-Combining pergens"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:84 --&gt;Combining pergens&lt;/h2&gt;
  &lt;br /&gt;
  &lt;br /&gt;
Tempering out 250/243 creates third-4th, and 49/48 creates half-4th, and tempering out both commas creates sixth-4th. Therefore (P8, P4/3) + (P8, P4/2) = (P8, P4/6).&lt;br /&gt;
Tempering out 250/243 creates third-4th, and 49/48 creates half-4th, and tempering out both commas creates sixth-4th. Therefore (P8, P4/3) + (P8, P4/2) = (P8, P4/6).&lt;br /&gt;
Line 3,912: Line 3,895:
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:88:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc18"&gt;&lt;a name="Further Discussion-Supplemental materials"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:88 --&gt;Supplemental materials&lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:86:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc17"&gt;&lt;a name="Further Discussion-Supplemental materials"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:86 --&gt;Supplemental materials&lt;/h2&gt;
  &lt;br /&gt;
  &lt;br /&gt;
This PDF is a rank-2 notation guide that shows the full lattice for the first 15 pergens, up through the third-splits block.&lt;br /&gt;
This PDF is a rank-2 notation guide that shows the full lattice for the first 15 pergens, up through the third-splits block.&lt;br /&gt;
&lt;!-- ws:start:WikiTextUrlRule:4891:http://www.tallkite.com/misc_files/pergens.pdf --&gt;&lt;a class="wiki_link_ext" href="http://www.tallkite.com/misc_files/pergens.pdf" rel="nofollow"&gt;http://www.tallkite.com/misc_files/pergens.pdf&lt;/a&gt;&lt;!-- ws:end:WikiTextUrlRule:4891 --&gt;&lt;br /&gt;
&lt;!-- ws:start:WikiTextUrlRule:4886:http://www.tallkite.com/misc_files/pergens.pdf --&gt;&lt;a class="wiki_link_ext" href="http://www.tallkite.com/misc_files/pergens.pdf" rel="nofollow"&gt;http://www.tallkite.com/misc_files/pergens.pdf&lt;/a&gt;&lt;!-- ws:end:WikiTextUrlRule:4886 --&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alt-pergenLister lists out thousands of pergens, and suggests periods, generators and enharmonics for each one. It can also list only those pergens supported by a specific edo. Written in Jesusonic, runs inside Reaper.&lt;br /&gt;
Alt-pergenLister lists out thousands of pergens, and suggests periods, generators and enharmonics for each one. It can also list only those pergens supported by a specific edo. Written in Jesusonic, runs inside Reaper.&lt;br /&gt;
&lt;!-- ws:start:WikiTextUrlRule:4892:http://www.tallkite.com/misc_files/alt-pergensLister.zip --&gt;&lt;a class="wiki_link_ext" href="http://www.tallkite.com/misc_files/alt-pergensLister.zip" rel="nofollow"&gt;http://www.tallkite.com/misc_files/alt-pergensLister.zip&lt;/a&gt;&lt;!-- ws:end:WikiTextUrlRule:4892 --&gt;&lt;br /&gt;
&lt;!-- ws:start:WikiTextUrlRule:4887:http://www.tallkite.com/misc_files/alt-pergensLister.zip --&gt;&lt;a class="wiki_link_ext" href="http://www.tallkite.com/misc_files/alt-pergensLister.zip" rel="nofollow"&gt;http://www.tallkite.com/misc_files/alt-pergensLister.zip&lt;/a&gt;&lt;!-- ws:end:WikiTextUrlRule:4887 --&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Screenshot of the first 38 pergens:&lt;br /&gt;
Screenshot of the first 38 pergens:&lt;br /&gt;
&lt;!-- ws:start:WikiTextLocalImageRule:2872:&amp;lt;img src=&amp;quot;/file/view/alt-pergenLister.png/624838213/704x460/alt-pergenLister.png&amp;quot; alt=&amp;quot;&amp;quot; title=&amp;quot;&amp;quot; style=&amp;quot;height: 460px; width: 704px;&amp;quot; /&amp;gt; --&gt;&lt;img src="/file/view/alt-pergenLister.png/624838213/704x460/alt-pergenLister.png" alt="alt-pergenLister.png" title="alt-pergenLister.png" style="height: 460px; width: 704px;" /&gt;&lt;!-- ws:end:WikiTextLocalImageRule:2872 --&gt;&lt;br /&gt;
&lt;!-- ws:start:WikiTextLocalImageRule:2869:&amp;lt;img src=&amp;quot;/file/view/alt-pergenLister.png/624838213/704x460/alt-pergenLister.png&amp;quot; alt=&amp;quot;&amp;quot; title=&amp;quot;&amp;quot; style=&amp;quot;height: 460px; width: 704px;&amp;quot; /&amp;gt; --&gt;&lt;img src="/file/view/alt-pergenLister.png/624838213/704x460/alt-pergenLister.png" alt="alt-pergenLister.png" title="alt-pergenLister.png" style="height: 460px; width: 704px;" /&gt;&lt;!-- ws:end:WikiTextLocalImageRule:2869 --&gt;&lt;br /&gt;
&lt;br /&gt;
To list all valid pergens is not a trivial task, like listing all valid edos or all valid MOS scales. Not all combinations of octave fractions and multigen fractions make a valid pergen. The search for rank-2 pergens can be done by looping through all possible square mappings [(x, y), (0, z)], and using the formula (P8/x, (i·z - y, x) / xz). While x is always positive and z is always nonzero, y can take on any value. For any x and z, y can be constrained to produce a viable cents value for 3/1. Let T be the tempered twefth 3/1. The mapping says T = y·P + z·G = y·P8/x + z·G. Thus y = x·(T/P8 - z·G/P8). We adopt the convention that G is less than half an octave. We constrain T so that the 5th is between 600¢ and 800¢, which certainly includes anything that sounds like a 5th. Thus T is between 3/2 and 5/3 of an octave. We assume that if the octave is stretched, the ranges of T and G will be stretched along with it. The outer ranges of y can now be computed, using the floor function to round down to the nearest integer, and the ceiling function to round up:&lt;br /&gt;
&lt;br /&gt;
If z &amp;gt; 0, then y is at least ceiling (x·(3/2 - z/2)) and at most floor (x·5/3)&lt;br /&gt;
If z &amp;lt; 0, then y is at least ceiling (x·3/2) and at most floor (x·(5/3 - z/2))&lt;br /&gt;
&lt;br /&gt;
Next we loop through all combinations of x and z in such a way that larger values of x and z come last:&lt;br /&gt;
i = 1; loop (maxFraction,&lt;br /&gt;
&lt;ul class="quotelist"&gt;&lt;li&gt;j = 1; loop (i - 1,&lt;ul class="quotelist"&gt;&lt;li&gt;makeMapping (i, j); makeMapping (i, -j);&lt;/li&gt;&lt;li&gt;makeMapping (j, i); makeMapping (j, -i);&lt;/li&gt;&lt;li&gt;j += 1;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;);&lt;/li&gt;&lt;li&gt;makeMapping (i, i); makeMapping (i, -i);&lt;/li&gt;&lt;li&gt;i += 1;&lt;/li&gt;&lt;/ul&gt;);&lt;br /&gt;
&lt;br /&gt;
The makeMapping function uses the two parameters as x and z, and loops through all valid values of y. Every value of i from -x to x is tested, and the one that minimizes the multigen's splitting fraction and cents is chosen. This combination of x, y, z and i makes a valid pergen. If the pergen is of the form (P8/m, P4), it's converted to (P8/m, P5). This pergen is added to the list, unless it's a duplicate. The pergens are almost but not quite in the proper order, they will need to be sorted. Experimenting with allowing y and i to range further does not produce any additional pergens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:90:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc19"&gt;&lt;a name="Further Discussion-Misc notes"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:90 --&gt;Misc notes&lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:88:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc18"&gt;&lt;a name="Further Discussion-Misc notes"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:88 --&gt;Misc notes&lt;/h2&gt;
  &lt;br /&gt;
  &lt;br /&gt;
Given:&lt;br /&gt;
Given:&lt;br /&gt;