Tenney–Euclidean tuning: Difference between revisions

Unify nomenclature (k -> r, A -> V, B -> M); also the tuning map shouldn't be weighted
Improve readability
Line 10: Line 10:
In more pragmatic terms, suppose W is the weighting matrix. For the prime basis Q = {{val| 2 3 5 … ''p'' }},  
In more pragmatic terms, suppose W is the weighting matrix. For the prime basis Q = {{val| 2 3 5 … ''p'' }},  


<math>W = \operatorname {diag} (1/\log_2 (Q))</math>
<math>\displaystyle W = \operatorname {diag} (1/\log_2 (Q))</math>


If V is the mapping of the [[Regular temperament|abstract temperament]] whose rows are (not necessarily independent) vals, then V<sub>W</sub> = VW is the mapping in the weighted space. If J is the row vector of targeted JI intervals (i.e. the [[JIP]]), then J<sub>W</sub> = JW is the JI intervals in the weighted space, in the case of Tenney-weighting it is {{val| 1 1 … 1 }}. Let us also denote the row vector of TE generators G. TE tuning then defines a [[Wikipedia: Least squares|least squares problem]] of the following overdetermined linear equation system:  
If V is the mapping of the [[Regular temperament|abstract temperament]] whose rows are (not necessarily independent) vals, then V<sub>W</sub> = VW is the mapping in the weighted space. If J is the row vector of targeted JI intervals (i.e. the [[JIP]]), then J<sub>W</sub> = JW is the JI intervals in the weighted space, in the case of Tenney-weighting it is {{val| 1 1 … 1 }}. Let us also denote the row vector of TE generators G. TE tuning then defines a [[Wikipedia: Least squares|least squares problem]] of the following overdetermined linear equation system:  


<math> \displaystyle
<math>\displaystyle GV_W = J_W</math>
GV_W = J_W
</math>


The system simply says that the sum of (''v''<sub>''w''</sub>)<sub>''kl''</sub> steps of generator ''g''<sub>''k''</sub> for all ''k'''s should equal the ''l''-th targeted JI interval (''j''<sub>''w''</sub>)<sub>''l''</sub>.  
The system simply says that the sum of (''v''<sub>''w''</sub>)<sub>''kl''</sub> steps of generator ''g''<sub>''k''</sub> for all ''k'''s should equal the ''l''-th targeted JI interval (''j''<sub>''w''</sub>)<sub>''l''</sub>.  
Line 37: Line 35:
In the pseudoinverse method, the (not necessarily independent) TE generators which correspond to the rows of V are given by
In the pseudoinverse method, the (not necessarily independent) TE generators which correspond to the rows of V are given by


<math>\displaystyle
<math>\displaystyle G = J_W V_W^+</math>
G = J_W V_W^+
</math>


Applying the weighted val list to the generators, The TE tuning map is given by
Applying the weighted val list to the generators, The TE tuning map is given by


<math>
<math>\displaystyle T = GV = J_W V_W^+ V</math>
\displaystyle T = GV = J_W V_W^+ V
</math>


We may also obtain the TE tuning from a projection matrix. P = V<sub>W</sub><sup>+</sup>V<sub>W</sub> is the orthogonal projection matrix that maps onto the space spanned by the rows of V. This space corresponds to the temperament, and so does P. However, P is independent of how the temperament is defined; it does not depend on whether the vals are linearly independent, how many of them there are, or whether [[contorsion]] has been removed. The tuning map giving the tuning of each prime number is found by multiplying by the JIP: T = JP where J is the JIP, which is the nearest point in the subspace corresponding to the temperament to J.
We may also obtain the TE tuning from a projection matrix. P = V<sub>W</sub><sup>+</sup>V<sub>W</sub> is the orthogonal projection matrix that maps onto the space spanned by the rows of V. This space corresponds to the temperament, and so does P. However, P is independent of how the temperament is defined; it does not depend on whether the vals are linearly independent, how many of them there are, or whether [[contorsion]] has been removed. The tuning map giving the tuning of each prime number is found by multiplying by the JIP: T = JP where J is the JIP, which is the nearest point in the subspace corresponding to the temperament to J.
Line 66: Line 60:
We may also do the same things starting from nonweighted vals. This leads to a different tuning, the '''Frobenius tuning''', which is perfectly functional but has less theoretical justification than TE tuning. However, if greater weight needs to be attached to the larger primes than TE tuning attaches, Frobenius tuning may be preferred; people who feel that larger primes require more tuning care than smaller ones may well prefer it.  
We may also do the same things starting from nonweighted vals. This leads to a different tuning, the '''Frobenius tuning''', which is perfectly functional but has less theoretical justification than TE tuning. However, if greater weight needs to be attached to the larger primes than TE tuning attaches, Frobenius tuning may be preferred; people who feel that larger primes require more tuning care than smaller ones may well prefer it.  


The list of Frobenius generators, G, is given by:
The weighting matrix W is given by


<math>G = JV^+</math>
<math>\displaystyle W = I</math>
 
That simplifies the list of Frobenius generators G to
 
<math>\displaystyle G = JV^+</math>


where J is the nonweighted JIP and V is the nonweighted mapping.  
where J is the nonweighted JIP and V is the nonweighted mapping.  


The Frobenius tuning map, T, is given by:
The Frobenius tuning map T becomes


<math>T = GV = JV^+V</math>
<math>\displaystyle T = GV = JV^+V</math>


However, the main value of unweighted vals is that the pseudoinverse and projection matrix have rational entries, so that the rows of the matrix are [[fractional monzos]]. The Frobenius projection matrix therefore, like the [[wedgie]], defines a completely canonical object not depending on any arbitrary definition (e.g. how Hermite normal form or LLL reduction is specifically defined) which corresponds one-to-one with temperaments, and which does not depend on whether the monzos or vals from which it is computed are [[Mathematical theory of saturation|saturated]]. It may be found starting either from a set of vals or a set of commas, since if Q is the projection matrix found by treating monzos in the same way as vals, P = I - Q is the same projection matrix as would be found if starting from a set of vals defining the same temperament.
However, the main value of unweighted vals is that the pseudoinverse and projection matrix have rational entries, so that the rows of the matrix are [[fractional monzos]]. The Frobenius projection matrix therefore, like the [[wedgie]], defines a completely canonical object not depending on any arbitrary definition (e.g. how Hermite normal form or LLL reduction is specifically defined) which corresponds one-to-one with temperaments, and which does not depend on whether the monzos or vals from which it is computed are [[Mathematical theory of saturation|saturated]]. It may be found starting either from a set of vals or a set of commas, since if Q is the projection matrix found by treating monzos in the same way as vals, P = I - Q is the same projection matrix as would be found if starting from a set of vals defining the same temperament.
Line 85: Line 83:
'''Benedetti-Euclidean tuning''' ('''BE tuning''') adopts the Benedetti or Wilson weight in place of Tenney weight, based on the dual norm of [[Wilson height]]. For Q = {{val| 2 3 5 … }}, the weighting matrix has the form  
'''Benedetti-Euclidean tuning''' ('''BE tuning''') adopts the Benedetti or Wilson weight in place of Tenney weight, based on the dual norm of [[Wilson height]]. For Q = {{val| 2 3 5 … }}, the weighting matrix has the form  


<math>W = \operatorname {diag} (1/Q)</math>
<math>\displaystyle W = \operatorname {diag} (1/Q)</math>


== Examples ==
== Examples ==
:''For practical helps, see [[POTE tuning]].''  
:''For practical helps, see [[POTE tuning]].''  


The val for 5-limit 12et is {{val|12 19 28}}. In weighted coordinates, that becomes v<sub>12</sub> = {{val|12 19/log<sub>2</sub>3 28/log<sub>2</sub>5}} ~ {{val|12.0 11.988 12.059}}. If we take this to be a 1×3 matrix and take the pseudoinverse, we get the 3×1 matrix v<sub>12</sub><sup>+</sup> ~ [{{monzo|0.027706 0.027677 0.027842}}]. Then P = v<sub>12</sub><sup>+</sup>v<sub>12</sub> is a projection matrix that maps onto the one-dimensional subspace whose single basis vector is v<sub>12</sub>. We find that v<sub>12</sub>P equals v<sub>12</sub>; on the other hand, if we take the monzo for 81/80, which is {{monzo|-4 4 -1}}; and monzo-weight it to {{monzo|-4 4log<sub>2</sub>3 -log<sub>2</sub>5}} and multiply (either side, the matrix is symmetric) by P, we get the zero vector, corresponding to the unison.
The val for 5-limit 12et is V<sub>12</sub> = {{val| 12 19 28 }}. In weighted coordinates, that becomes (V<sub>12</sub>)<sub>W</sub> = {{val| 12 19/log<sub>2</sub>3 28/log<sub>2</sub>5 }} ~ {{val| 12.0 11.988 12.059 }}. If we take this to be a 1×3 matrix and take the pseudoinverse, we get the 3×1 matrix (V<sub>12</sub>)<sub>W</sub><sup>+</sup> ~ [{{monzo| 0.027706 0.027677 0.027842 }}]. Then P = (V<sub>12</sub>)<sub>W</sub><sup>+</sup>(V<sub>12</sub>)<sub>W</sub> is a projection matrix that maps onto the one-dimensional subspace whose single basis vector is (V<sub>12</sub>)<sub>W</sub>. We find that (V<sub>12</sub>)<sub>W</sub>P equals (V<sub>12</sub>)<sub>W</sub>; on the other hand, if we take the monzo for 81/80, which is {{monzo| -4 4 -1 }}; and monzo-weight it to {{monzo| -4 4log<sub>2</sub>3 -log<sub>2</sub>5 }} and multiply (either side, the matrix is symmetric) by P, we get the zero vector, corresponding to the unison.


Now consider [[Diaschismic_family #Pajara|pajara]], the 7-limit temperament tempering out both 50/49 and 64/63. Two possible equal temperament tunings for pajara are [[12edo]] and [[22edo]]. We may define a 2×4 matrix with rows equal to the vals for 12, and 22; in weighted coordinates this would be
Now consider [[pajara]], the 7-limit temperament tempering out both 50/49 and 64/63. Two possible equal temperament tunings for pajara are [[12edo]] and [[22edo]]. We may define a 2×4 matrix with rows equal to the vals for 12, and 22; in weighted coordinates this would be


V ~ [{{val|12 11.988 12.059 12.111}}, {{val|22 22.083 21.965 22.085}}]
<math>\displaystyle
V_W =
\begin{bmatrix}
12.000 & 11.988 & 12.059 & 12.111 \\
22.000 & 22.083 & 21.965 & 22.085
\end{bmatrix}
</math>


Then the pseudoinverse V<sup>+</sup> is approximately
Then the pseudoinverse V<sup>+</sup> is approximately


[-1.81029 1.00052]
<math>\displaystyle
V_W^+ =
\begin{bmatrix}
-1.81029 & 1.00052 \\
-6.68250 & 3.66285 \\
4.83496 & -2.63063 \\
3.67652 & -1.99757
\end{bmatrix}
</math>


[-6.68250 3.66285]
which we may also write as [{{monzo| -1.81029 -6.68250 4.83496 3.67652 }}, {{monzo| 1.00052 3.66285 -2.63063 -1.99757 }}]


[4.83496 -2.63063]
P = V<sub>W</sub><sup>+</sup>V<sub>W</sub> is a 4×4 symmetrical matrix which projects weighted vals in TE tuning space, or weighted monzos in TE interval space, to a subspace defined by pajara. It therefore projects the weighted monzos for 50/49, 64/63, 225/224, 2048/2025 etc. to the zero vector, whereas it leaves pajara vals such as [[10edo]] in weighted coordinates unchanged.


[3.67652 -1.99757]
If we use unweighted coordinates we get the Frobenius projection matrix instead, whose rows are [[fractional monzos]]. The unweighted pseudoinverse V<sub>12</sub><sup>+</sup> of the 5-limit val V<sub>12</sub> for 12 equal is the column matrix V<sub>12</sub><sup>T</sup>/1289; that is, the 1×3 matrix with column {{monzo| 12/1289 19/1289 28/1289 }}. Then V<sub>12</sub><sup>+</sup>V<sub>12</sub> is the 3×3 Frobenius projection matrix P<sub>F</sub>:


which we may also write as [{{monzo|-1.81029 -6.68250 4.83496 3.67652}}, {{monzo|1.00052 3.66285 -2.63063 -1.99757}}]
<math>\displaystyle
P_\text{F} = \frac{1}{1289}
\begin{bmatrix}
144 & 228 & 336 \\
228 & 361 & 532 \\
336 & 532 & 784
\end{bmatrix}
</math>


Paj = V<sup>+</sup>V is a 4×4 symmetrical matrix which projects weighted vals in TE tuning space, or weighted monzos in TE interval space, to a subspace defined by pajara. It therefore projects the weighted monzos for 50/49, 64/63, 225/224, 2048/2025 etc. to the zero vector, whereas it leaves pajara vals such as [[10edo]] in weighted coordinates unchanged.
Multiplying {{val| 12 19 28 }} by P<sub>F</sub> gives {{val| 12 19 28 }} again. Multiplying the monzos for 81/80, 128/125, 648/625 etc. gives the zero monzo, corresponding to a unison. Multiplying the val for 5-limit 19 equal, {{val| 19 30 44 }}, by P<sub>F</sub> gives {{val| 24360 38570 56840 }}/1289, which is approximately the 19 equal val. Multiplying the 5-limit monzo for 3/2, which is {{monzo| -1 1 0 }}; times F gives the fractional monzo corresponding to (2<sup>84</sup> 3<sup>133</sup> 5<sup>196</sup>)<sup>1/1289</sup>, which equates to 698.121 cents, the tempering of 3/2 in Frobenius tuning for 5-limit 12et, the tuning with octave defined by the top row of P<sub>F</sub>, which is to say by {{monzo| 1 0 0 }}P<sub>F</sub>, of 1196.778 cents.


If we use unweighted coordinates we get the Frobenius projection matrix instead, whose rows are [[fractional monzos]]. The unweighted pseudoinverse u<sub>12</sub><sup>+</sup> of the 5-limit val u<sub>12</sub> for 12 equal is the column matrix u<sub>12</sub><sup>T</sup>/1289; that is, the 1×3 matrix with column {{monzo|12/1289 19/1289 28/1289}}. Then u<sub>12</sub><sup>+</sup>u<sub>12</sub> is the 3×3 Frobenius projection matrix F:
We can do the same thing with a matrix V with rows consisting of the vals for 7-limit 12 and 22 equal; then V<sup>+</sup>V, the Frobenius projection matrix for pajara, is


[{{val|144 228 336}}, {{val|228 361 532}}, {{val|336 532 784}}]/1289
<math>\displaystyle
 
P_\text{F} = \frac{1}{305}
Multiplying {{val|12 19 28}} by F gives {{val|12 19 28}} again. Multiplying the monzos for 81/80, 128/125, 648/625 etc. gives the zero monzo, corresponding to a unison. Multiplying the val for 5-limit 19 equal, {{val|19 30 44}}, by F gives {{val|24360 38570 56840}}/1289, which is approximately the 19 equal val. Multiplying the 5-limit monzo for 3/2, which is {{monzo|-1 1 0}}; times F gives the fractional monzo corresponding to (2<sup>84</sup> 3<sup>133</sup> 5<sup>196</sup>)<sup>1/1289</sup>, which equates to 698.121 cents, the tempering of 3/2 in Frobenius tuning for 5-limit 12et, the tuning with octave defined by the top row of F, which is to say by {{monzo|1 0 0}}F, of 1196.778 cents.
\begin{bmatrix}
 
36 & 92 & 14 & 32 \\
We can do the same thing with a matrix U with rows consisting of the vals for 7-limit 12 and 22 equal; then U<sup>+</sup>U, the Frobenius projection matrix for pajara, is
92 & 269 & -32 & 14 \\
 
14 & -32 & 141 & 148 \\
[{{monzo|36 92 14 32}}, {{monzo|92 269 -32 14}}, {{monzo|14 -32 141 148}}, {{monzo|32 14 148 64}}]/305
32 & 14 & 148 & 64
\end{bmatrix}
</math>


This sends monzos for 50/49, 64/63 etc. to the unison monzo, and vals for 10et, 12et and 22et to themselves.
This sends monzos for 50/49, 64/63 etc. to the unison monzo, and vals for 10et, 12et and 22et to themselves.


[[Category:Regular temperament theory]]
[[Category:Math]]
[[Category:Math]]
[[Category:Theory]]
[[Category:Tuning]]
[[Category:Tuning]]
[[Category:Tuning technique]]
[[Category:Tuning technique]]