Tenney–Euclidean metrics: Difference between revisions

Wikispaces>genewardsmith
**Imported revision 197097588 - Original comment: **
Wikispaces>genewardsmith
**Imported revision 197259402 - 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:genewardsmith|genewardsmith]] and made on <tt>2011-01-29 19:40:41 UTC</tt>.<br>
: This revision was by author [[User:genewardsmith|genewardsmith]] and made on <tt>2011-01-30 19:09:33 UTC</tt>.<br>
: The original revision id was <tt>197097588</tt>.<br>
: The original revision id was <tt>197259402</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 20: Line 20:


To define the OE, or octave equivalent seminorm, we simply add a row |1 0 0 ... 0&gt; representing 2 to the matrix B. An alternative proceedure is to find the [[normal lists|normal val list]], and remove the first val from the list, corresponding to the octave or some fraction thereof, and proceed as in the previous section on temperamental complexity.
To define the OE, or octave equivalent seminorm, we simply add a row |1 0 0 ... 0&gt; representing 2 to the matrix B. An alternative proceedure is to find the [[normal lists|normal val list]], and remove the first val from the list, corresponding to the octave or some fraction thereof, and proceed as in the previous section on temperamental complexity.
For example, consider marvel temperament, tempering out 225/224. If we add a row for 2, we get [|1 0 0 0&gt;, |-5 2 2 -1&gt;]. If we denote log2 of the odd primes by p3, p5, p7 etc, then the monzo weighting of this matrix is M = [|1 0 0 0&gt;, |-5 2p3 2p5 -p7&gt;], and P = I - M`M = [|1 0 0 0&gt;, |0 4p5^2+p7^2 -4p3p5 2p3p7&gt;/H,
|0 -4p3p5 4p3^2+p7^2 2p5p7&gt;/H, |0 2p3p7 2p5p7 4(p3^2+p5^2)&gt;/H], where H = 4p3^2+4p5^2+p7^2. On the other hand, we may start from the normal val list for the temperament, which is [&lt;1 0 0 -5|, &lt;0 1 0 2|, &lt;0 0 1 2|]. Removing the first row gives [&lt;0 1 0 2|, &lt;0 0 1 2], and val weighting this gives C = [&lt;0 1/p3 0 2/p7|, &lt;0 0 1/p5 2/p7|]. Then P = C`C is precisely the same matrix we obtained before.
Octaves are now projected to the origin as well as commas. We can as before form the quotient space with respect to the seminorm, and obtain a normed space in which octave-equivalent interval classes of the intervals of the temperament are the lattice points. This seminorm applied to monzos gives the OE complexity.
If we start from a normal val list and remove the first val, the remaining vals map to the octave classes of the notes of the temperament. If we call this reduced list of vals R, then the inner product on note classes in this basis is defined by the symmetric matrix S = (RW^2R*)^(-1). Using the marvel example just considered, we obtain S = [[p3^2(4p5^2+p7^2) -4p3^2p5^2], [-4p3^2p5^2 p5^2(4p3^2+p7^2)]]/H. If k = [a b] is a note class of marvel in the coordinates defined by the truncated val list R, which in this case has a basis corresponding to tempered 3 and 5, then sqrt(kSk*) gives the OE complexity of the note class.


==Logflat TE badness==
==Logflat TE badness==
Line 42: Line 35:
Similarly, starting from the monzo |-1 1 0&gt; for 3/2, we may multiply this by **P**, obtaining &lt;-0.8793 0.9957 1.9526|, and taking the dot product of this with |-1 1 0&gt; gives 1.875 with square root 1.3693, which is T(3/2).
Similarly, starting from the monzo |-1 1 0&gt; for 3/2, we may multiply this by **P**, obtaining &lt;-0.8793 0.9957 1.9526|, and taking the dot product of this with |-1 1 0&gt; gives 1.875 with square root 1.3693, which is T(3/2).


We can, however, map the monzos to elements of a rank r abelian group (where r is the rank of the temperament) which abstractly represents the elements of the temperament without regard to tuning, the [[abstract regular temperament]]. If b is a monzo, this mapping is given by bA*. Hence we have |1 -5 3&gt;A* = [0 0] for the interval associated to 250/243, and |-1 1 0&gt;A* = [9 13] for the interval assciated to 3/2. This is the number of steps needed to get to 3/2 in 15et and 22et respectively. We now may obtain a matrix defining the temperamental norm on this abstract temperament by //P// = (AW^2A*)^(-1), which is approximately
We can, however, map the monzos to elements of a rank r abelian group (where r is the rank of the temperament) which abstractly represents the elements of the temperament without regard to tuning, the [[abstract regular temperament]]. If b is a monzo, this mapping is given by bA*. Hence we have |1 -5 3&gt;A* maps to [0 0] for the interval associated to 250/243, and |-1 1 0&gt;A* maps to [9 13] for the interval assciated to 3/2. This is the number of steps needed to get to 3/2 in 15et and 22et respectively. We now may obtain a matrix defining the temperamental norm on this abstract temperament by //P// = (AW^2A*)^(-1), which is approximately


[175.3265 -120.0291]
[175.3265 -120.0291]
[-120.0291 82.1730]
[-120.0291 82.1730]


Using this, we find the temperamental norm of [9 13] to be sqrt([9 13]//P//[9 13]*) ~ sqrt(1.875) ~ 1.3693, identical to the temperamental seminorm of 3/2. Note however that while **P** does not depend on the choice of basis vals for the temperament, //P// does; if we choose [&lt;1 2 3|, &lt;0 -3 -5|] for our basis instead, then 3/2 is represented by [1 -3] and //P// changes coordinates to produce the same final result of temperamental complexity.</pre></div>
Using this, we find the temperamental norm of [9 13] to be sqrt([9 13]//P//[9 13]*) ~ sqrt(1.875) ~ 1.3693, identical to the temperamental seminorm of 3/2. Note however that while **P** does not depend on the choice of basis vals for the temperament, //P// does; if we choose [&lt;1 2 3|, &lt;0 -3 -5|] for our basis instead, then 3/2 is represented by [1 -3] and //P// changes coordinates to produce the same final result of temperamental complexity.
 
If instead we want OE complexity, we may remove the first row of [&lt;1 2 3|, &lt;0 -3 -5|], leaving just [&lt;0 -3 -5|]. If we now call this 1x3 matrix A, then (AW^2A*)^(-1) is a 1x1 matrix; in effect a scalar, with value [[0.1215588]]. Multiplying a monzo b times A* gives a 1x1 matrix bA* whose value is the number of generator steps of porcupine (of size a tempered 10/9) it takes to get to the octave class to which b belongs. Performing the multiplication and taking the square root, we conclude the OE complexity is simply proportional to this number of steps.
 
For a more substantial example we need to consider at least a rank three temperament, so let us turn to marvel, the 7-limit temperament tempering out 225/224. The 2x4 matrix of monzos whose first row represents 2 and whose second row 225/224 is [|1 0 0 0&gt;, |-5 2 2 -1&gt;]. If we denote log2 of the odd primes by p3, p5, p7 etc, then the monzo weighting of this matrix is M = [|1 0 0 0&gt;, |-5 2p3 2p5 -p7&gt;], and P = I - M`M = [|1 0 0 0&gt;, |0 4p5^2+p7^2 -4p3p5 2p3p7&gt;/H,
|0 -4p3p5 4p3^2+p7^2 2p5p7&gt;/H, |0 2p3p7 2p5p7 4(p3^2+p5^2)&gt;/H], where H = 4p3^2+4p5^2+p7^2. On the other hand, we may start from the normal val list for the temperament, which is [&lt;1 0 0 -5|, &lt;0 1 0 2|, &lt;0 0 1 2|]. Removing the first row gives [&lt;0 1 0 2|, &lt;0 0 1 2], and val weighting this gives C = [&lt;0 1/p3 0 2/p7|, &lt;0 0 1/p5 2/p7|]. Then P = C`C is precisely the same matrix we obtained before.
 
Octaves are now projected to the origin as well as commas. We can as before form the quotient space with respect to the seminorm, and obtain a normed space in which octave-equivalent interval classes of the intervals of the temperament are the lattice points. This seminorm applied to monzos gives the OE complexity.
 
If we start from a normal val list and remove the first val, the remaining vals map to the octave classes of the notes of the temperament. If we call this reduced list of vals R, then the inner product on note classes in this basis is defined by the symmetric matrix S = (RW^2R*)^(-1). In the case of marvel, we obtain S = [[p3^2(4p5^2+p7^2) -4p3^2p5^2], [-4p3^2p5^2 p5^2(4p3^2+p7^2)]]/H. If k = [a b] is a note class of marvel in the coordinates defined by the truncated val list R, which in this case has a basis corresponding to tempered 3 and 5, then sqrt(kSk*) gives the OE complexity of the note class.
</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;Tenney-Euclidean metrics&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-The weighting matrix"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:0 --&gt;The weighting matrix&lt;/h2&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;Tenney-Euclidean metrics&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-The weighting matrix"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:0 --&gt;The weighting matrix&lt;/h2&gt;
Line 63: Line 66:
&lt;br /&gt;
&lt;br /&gt;
To define the OE, or octave equivalent seminorm, we simply add a row |1 0 0 ... 0&amp;gt; representing 2 to the matrix B. An alternative proceedure is to find the &lt;a class="wiki_link" href="/normal%20lists"&gt;normal val list&lt;/a&gt;, and remove the first val from the list, corresponding to the octave or some fraction thereof, and proceed as in the previous section on temperamental complexity.&lt;br /&gt;
To define the OE, or octave equivalent seminorm, we simply add a row |1 0 0 ... 0&amp;gt; representing 2 to the matrix B. An alternative proceedure is to find the &lt;a class="wiki_link" href="/normal%20lists"&gt;normal val list&lt;/a&gt;, and remove the first val from the list, corresponding to the octave or some fraction thereof, and proceed as in the previous section on temperamental complexity.&lt;br /&gt;
&lt;br /&gt;
For example, consider marvel temperament, tempering out 225/224. If we add a row for 2, we get [|1 0 0 0&amp;gt;, |-5 2 2 -1&amp;gt;]. If we denote log2 of the odd primes by p3, p5, p7 etc, then the monzo weighting of this matrix is M = [|1 0 0 0&amp;gt;, |-5 2p3 2p5 -p7&amp;gt;], and P = I - M`M = [|1 0 0 0&amp;gt;, |0 4p5^2+p7^2 -4p3p5 2p3p7&amp;gt;/H, &lt;br /&gt;
|0 -4p3p5 4p3^2+p7^2 2p5p7&amp;gt;/H, |0 2p3p7 2p5p7 4(p3^2+p5^2)&amp;gt;/H], where H = 4p3^2+4p5^2+p7^2. On the other hand, we may start from the normal val list for the temperament, which is [&amp;lt;1 0 0 -5|, &amp;lt;0 1 0 2|, &amp;lt;0 0 1 2|]. Removing the first row gives [&amp;lt;0 1 0 2|, &amp;lt;0 0 1 2], and val weighting this gives C = [&amp;lt;0 1/p3 0 2/p7|, &amp;lt;0 0 1/p5 2/p7|]. Then P = C`C is precisely the same matrix we obtained before.&lt;br /&gt;
&lt;br /&gt;
Octaves are now projected to the origin as well as commas. We can as before form the quotient space with respect to the seminorm, and obtain a normed space in which octave-equivalent interval classes of the intervals of the temperament are the lattice points. This seminorm applied to monzos gives the OE complexity.&lt;br /&gt;
&lt;br /&gt;
If we start from a normal val list and remove the first val, the remaining vals map to the octave classes of the notes of the temperament. If we call this reduced list of vals R, then the inner product on note classes in this basis is defined by the symmetric matrix S = (RW^2R*)^(-1). Using the marvel example just considered, we obtain S = [[p3^2(4p5^2+p7^2) -4p3^2p5^2], [-4p3^2p5^2 p5^2(4p3^2+p7^2)]]/H. If k = [a b] is a note class of marvel in the coordinates defined by the truncated val list R, which in this case has a basis corresponding to tempered 3 and 5, then sqrt(kSk*) gives the OE complexity of the note class.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!-- ws:start:WikiTextHeadingRule:6:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc3"&gt;&lt;a name="x-Logflat TE badness"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:6 --&gt;Logflat TE badness&lt;/h2&gt;
&lt;!-- ws:start:WikiTextHeadingRule:6:&amp;lt;h2&amp;gt; --&gt;&lt;h2 id="toc3"&gt;&lt;a name="x-Logflat TE badness"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:6 --&gt;Logflat TE badness&lt;/h2&gt;
Line 85: Line 81:
Similarly, starting from the monzo |-1 1 0&amp;gt; for 3/2, we may multiply this by &lt;strong&gt;P&lt;/strong&gt;, obtaining &amp;lt;-0.8793 0.9957 1.9526|, and taking the dot product of this with |-1 1 0&amp;gt; gives 1.875 with square root 1.3693, which is T(3/2).&lt;br /&gt;
Similarly, starting from the monzo |-1 1 0&amp;gt; for 3/2, we may multiply this by &lt;strong&gt;P&lt;/strong&gt;, obtaining &amp;lt;-0.8793 0.9957 1.9526|, and taking the dot product of this with |-1 1 0&amp;gt; gives 1.875 with square root 1.3693, which is T(3/2).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can, however, map the monzos to elements of a rank r abelian group (where r is the rank of the temperament) which abstractly represents the elements of the temperament without regard to tuning, the &lt;a class="wiki_link" href="/abstract%20regular%20temperament"&gt;abstract regular temperament&lt;/a&gt;. If b is a monzo, this mapping is given by bA*. Hence we have |1 -5 3&amp;gt;A* &lt;!-- ws:start:WikiTextHeadingRule:10:&amp;lt;h1&amp;gt; --&gt;&lt;h1 id="toc5"&gt;&lt;a name="x[0 0] for the interval associated to 250/243, and |-1 1 0&amp;gt;A*"&gt;&lt;/a&gt;&lt;!-- ws:end:WikiTextHeadingRule:10 --&gt; [0 0] for the interval associated to 250/243, and |-1 1 0&amp;gt;A* &lt;/h1&gt;
We can, however, map the monzos to elements of a rank r abelian group (where r is the rank of the temperament) which abstractly represents the elements of the temperament without regard to tuning, the &lt;a class="wiki_link" href="/abstract%20regular%20temperament"&gt;abstract regular temperament&lt;/a&gt;. If b is a monzo, this mapping is given by bA*. Hence we have |1 -5 3&amp;gt;A* maps to [0 0] for the interval associated to 250/243, and |-1 1 0&amp;gt;A* maps to [9 13] for the interval assciated to 3/2. This is the number of steps needed to get to 3/2 in 15et and 22et respectively. We now may obtain a matrix defining the temperamental norm on this abstract temperament by &lt;em&gt;P&lt;/em&gt; = (AW^2A*)^(-1), which is approximately&lt;br /&gt;
[9 13] for the interval assciated to 3/2. This is the number of steps needed to get to 3/2 in 15et and 22et respectively. We now may obtain a matrix defining the temperamental norm on this abstract temperament by &lt;em&gt;P&lt;/em&gt; = (AW^2A*)^(-1), which is approximately&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[175.3265 -120.0291]&lt;br /&gt;
[175.3265 -120.0291]&lt;br /&gt;
[-120.0291 82.1730]&lt;br /&gt;
[-120.0291 82.1730]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using this, we find the temperamental norm of [9 13] to be sqrt([9 13]&lt;em&gt;P&lt;/em&gt;[9 13]*) ~ sqrt(1.875) ~ 1.3693, identical to the temperamental seminorm of 3/2. Note however that while &lt;strong&gt;P&lt;/strong&gt; does not depend on the choice of basis vals for the temperament, &lt;em&gt;P&lt;/em&gt; does; if we choose [&amp;lt;1 2 3|, &amp;lt;0 -3 -5|] for our basis instead, then 3/2 is represented by [1 -3] and &lt;em&gt;P&lt;/em&gt; changes coordinates to produce the same final result of temperamental complexity.&lt;/body&gt;&lt;/html&gt;</pre></div>
Using this, we find the temperamental norm of [9 13] to be sqrt([9 13]&lt;em&gt;P&lt;/em&gt;[9 13]*) ~ sqrt(1.875) ~ 1.3693, identical to the temperamental seminorm of 3/2. Note however that while &lt;strong&gt;P&lt;/strong&gt; does not depend on the choice of basis vals for the temperament, &lt;em&gt;P&lt;/em&gt; does; if we choose [&amp;lt;1 2 3|, &amp;lt;0 -3 -5|] for our basis instead, then 3/2 is represented by [1 -3] and &lt;em&gt;P&lt;/em&gt; changes coordinates to produce the same final result of temperamental complexity.&lt;br /&gt;
&lt;br /&gt;
If instead we want OE complexity, we may remove the first row of [&amp;lt;1 2 3|, &amp;lt;0 -3 -5|], leaving just [&amp;lt;0 -3 -5|]. If we now call this 1x3 matrix A, then (AW^2A*)^(-1) is a 1x1 matrix; in effect a scalar, with value &lt;a class="wiki_link" href="/0.1215588"&gt;0.1215588&lt;/a&gt;. Multiplying a monzo b times A* gives a 1x1 matrix bA* whose value is the number of generator steps of porcupine (of size a tempered 10/9) it takes to get to the octave class to which b belongs. Performing the multiplication and taking the square root, we conclude the OE complexity is simply proportional to this number of steps.&lt;br /&gt;
&lt;br /&gt;
For a more substantial example we need to consider at least a rank three temperament, so let us turn to marvel, the 7-limit temperament tempering out 225/224. The 2x4 matrix of monzos whose first row represents 2 and whose second row 225/224 is [|1 0 0 0&amp;gt;, |-5 2 2 -1&amp;gt;]. If we denote log2 of the odd primes by p3, p5, p7 etc, then the monzo weighting of this matrix is M = [|1 0 0 0&amp;gt;, |-5 2p3 2p5 -p7&amp;gt;], and P = I - M`M = [|1 0 0 0&amp;gt;, |0 4p5^2+p7^2 -4p3p5 2p3p7&amp;gt;/H, &lt;br /&gt;
|0 -4p3p5 4p3^2+p7^2 2p5p7&amp;gt;/H, |0 2p3p7 2p5p7 4(p3^2+p5^2)&amp;gt;/H], where H = 4p3^2+4p5^2+p7^2. On the other hand, we may start from the normal val list for the temperament, which is [&amp;lt;1 0 0 -5|, &amp;lt;0 1 0 2|, &amp;lt;0 0 1 2|]. Removing the first row gives [&amp;lt;0 1 0 2|, &amp;lt;0 0 1 2], and val weighting this gives C = [&amp;lt;0 1/p3 0 2/p7|, &amp;lt;0 0 1/p5 2/p7|]. Then P = C`C is precisely the same matrix we obtained before.&lt;br /&gt;
&lt;br /&gt;
Octaves are now projected to the origin as well as commas. We can as before form the quotient space with respect to the seminorm, and obtain a normed space in which octave-equivalent interval classes of the intervals of the temperament are the lattice points. This seminorm applied to monzos gives the OE complexity.&lt;br /&gt;
&lt;br /&gt;
If we start from a normal val list and remove the first val, the remaining vals map to the octave classes of the notes of the temperament. If we call this reduced list of vals R, then the inner product on note classes in this basis is defined by the symmetric matrix S = (RW^2R*)^(-1). In the case of marvel, we obtain S = [[p3^2(4p5^2+p7^2) -4p3^2p5^2], [-4p3^2p5^2 p5^2(4p3^2+p7^2)]]/H. If k = [a b] is a note class of marvel in the coordinates defined by the truncated val list R, which in this case has a basis corresponding to tempered 3 and 5, then sqrt(kSk*) gives the OE complexity of the note class.&lt;/body&gt;&lt;/html&gt;</pre></div>