Tenney–Euclidean tuning: Difference between revisions
Rewrite the middle part; general cleanup. Following Wikipedia for pseudoinverse symbol. Gonna check the examples later |
More cleanup. Link to POTE page for practical examples |
||
| Line 11: | Line 11: | ||
If we put the weighted Euclidean metric on tuning space, leading to TE tuning space in weighted coordinates, it is easy to find the nearest point in the subspace to the JI point {{val|1 1 … 1}}, and this closest point will define a tuning map which is called TE tuning (or TOP-RMS), a tuning which has been extensively studied by [[Graham Breed]]. We may also keep unweighted coordinates and use the TE norm on tuning space; in these coordinates the JI point is {{val|1 log<sub>2</sub>3 … log<sub>2</sub>''p''}}. The two approaches are equivalent. | If we put the weighted Euclidean metric on tuning space, leading to TE tuning space in weighted coordinates, it is easy to find the nearest point in the subspace to the JI point {{val|1 1 … 1}}, and this closest point will define a tuning map which is called TE tuning (or TOP-RMS), a tuning which has been extensively studied by [[Graham Breed]]. We may also keep unweighted coordinates and use the TE norm on tuning space; in these coordinates the JI point is {{val|1 log<sub>2</sub>3 … log<sub>2</sub>''p''}}. The two approaches are equivalent. | ||
In more pragmatic terms, suppose M is the known mapping of the temperament, '''g''' the row vector of TE generators in per-octave, '''p''' the row vector of targeted intervals in per-octave, and W the weighting matrix. In this case, W<sub>''ij''</sub> = 1/log<sub>2</sub>''p'' if ''i'' = ''j'', and 0 otherwise. TE tuning then defines a [[wikipedia:Least_squares|least square]] problem of the following overdetermined linear equation system: | In more pragmatic terms, suppose M is the known mapping of the [[Regular temperament|abstract temperament]], '''g''' the row vector of TE generators (in per-octave), '''p''' the row vector of targeted JI intervals (in per-octave), and W the weighting matrix. In this case, W<sub>''ij''</sub> = 1/log<sub>2</sub>''p'' if ''i'' = ''j'', and 0 otherwise. TE tuning then defines a [[wikipedia:Least_squares|least square]] problem of the following overdetermined linear equation system: | ||
<math>\vec{g}V = J</math> | <math>\vec{g}V = J</math> | ||
| Line 17: | Line 17: | ||
where V = MW, i.e. the mapping in the weighted basis, and J = '''p'''W, i.e. the JI point, in this case it is {{val|1 1 … 1}}. | where V = MW, i.e. the mapping in the weighted basis, and J = '''p'''W, i.e. the JI point, in this case it is {{val|1 1 … 1}}. | ||
The system simply says that the sum of V<sub>''ij''</sub> steps of generator '''g'''<sub>''i''</sub> for all ''i'' should equal the ''j''-th targeted interval J<sub>''j''</sub>. | The system simply says that the sum of V<sub>''ij''</sub> steps of generator '''g'''<sub>''i''</sub> for all ''i'' should equal the ''j''-th targeted JI interval J<sub>''j''</sub>. | ||
There are a number of methods to solve least square problems. One common way is to use the [[wikipedia:Moore%E2%80%93Penrose_pseudoinverse|Moore–Penrose pseudoinverse]]. | There are a number of methods to solve least square problems. One common way is to use the [[wikipedia:Moore%E2%80%93Penrose_pseudoinverse|Moore–Penrose pseudoinverse]]. | ||
| Line 34: | Line 34: | ||
* uA<sup>+</sup> is the nearest point to u in the subspace spanned by the rows of A; A<sup>+</sup>v is the nearest point to v in the space spanned by the columns of A. | * uA<sup>+</sup> is the nearest point to u in the subspace spanned by the rows of A; A<sup>+</sup>v is the nearest point to v in the space spanned by the columns of A. | ||
<math>\vec{g} = JV^+</math> | |||
gives the TE tuning in the sense that it gives (not necessarily independent) generators which correspond to the rows of V. How many of each generator to take to map a rational number contained in the prime limit in question is determined by applying the val corresponding to the generator to the rational number. | |||
We may also obtain the TE tuning from a projection map. P = V<sup>+</sup>V is the orthogonal projection map 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 JI map: JP where J is the JI map, which is the nearest point in the subspace corresponding to the temperament to J. | We may also obtain the TE tuning from a projection map. P = V<sup>+</sup>V is the orthogonal projection map 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 JI map: JP where J is the JI map, which is the nearest point in the subspace corresponding to the temperament to J. | ||
| Line 45: | Line 47: | ||
We may call pure-octaves Tenney-Euclidean tuning the '''POTE tuning'''. | We may call pure-octaves Tenney-Euclidean tuning the '''POTE tuning'''. | ||
If T = JP is the TE tuning map, then a corresponding pure-octaves map can be found by [ | If T = JP = '''g'''V is the TE tuning map, then a corresponding pure-octaves map can be found by [[wikipedia:Scalar_multiplication|scalar multiplication]], T/T<sub>1</sub>, where T<sub>1</sub>, the first entry, is the tuning of 2. The justification for this is that T does not only define a point, but a line through the origin lying in the subspace defining the temperament, or in other words, a point in the linear subspace of projective space corresponding to the temperament, and hence is a projective object. Another way to say this is that T defines not only the closest point to J, but the closest direction in terms of angular measure between the line through T and the line through J. | ||
== The Frobenius projection map == | == The Frobenius projection map == | ||
| Line 55: | Line 57: | ||
== Examples == | == Examples == | ||
The val for 5-limit 12et is | ''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 map 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. | |||
Now consider [[Diaschismic_family|pajara]], the 7-limit temperament tempering out both 50/49 and 64/63. Two possible equal temperament tunings for pajara are [[ | 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 2x4 matrix with rows equal to the vals for 12, and 22; in weighted coordinates this would be | ||
V ~ [ | V ~ [{{val|12 11.988 12.059 12.111}}, {{val|22 22.083 21.965 22.085}}] | ||
Then the pseudoinverse V<sup>+</sup> is approximately | Then the pseudoinverse V<sup>+</sup> is approximately | ||
| Line 71: | Line 75: | ||
[3.67652 -1.99757] | [3.67652 -1.99757] | ||
which we may also write as [|-1.81029 -6.68250 4.83496 3. | which we may also write as [{{monzo|-1.81029 -6.68250 4.83496 3.67652}}, {{monzo|1.00052 3.66285 -2.63063 -1.99757}}] | ||
Paj = V<sup>+</sup>V is a 4x4 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 [[ | Paj = V<sup>+</sup>V is a 4x4 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. | ||
If we use unweighted coordinates we get the Frobenius projection map instead, whose rows are [[ | If we use unweighted coordinates we get the Frobenius projection map 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 map F: | ||
[{{val|144 228 336}}, {{val|228 361 532}}, {{val|336 532 784}}]/1289 | |||
Multiplying | 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. | ||
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 map for pajara, is | 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 map for pajara, is | ||
[|36 92 14 32 | [{{monzo|36 92 14 32}}, {{monzo|92 269 -32 14}}, {{monzo|14 -32 141 148}}, {{monzo|32 14 148 64}}]/305 | ||
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. | ||
| Line 90: | Line 94: | ||
[[Category:theory]] | [[Category:theory]] | ||
[[Category:todo:improve_definition]] | [[Category:todo:improve_definition]] | ||
[[Category:tuning]] | [[Category:tuning]] | ||
[[Category:tuning_technique]] | [[Category:tuning_technique]] | ||