Tenney–Euclidean tuning: Difference between revisions
No edit summary |
Move properties of pseudoinverse to the pseudoinverse page. Set straight the weightedness of projection matrices |
||
| Line 14: | Line 14: | ||
<math>\displaystyle 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 [[ | If ''V'' is the mapping of the [[regular temperament|abstract temperament]] whose rows are (not necessarily independent) vals, then {{nowrap| ''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 {{nowrap| ''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 {{w|least squares}} problem of the following overdetermined linear equation system: | ||
<math>\displaystyle GV_W = J_W</math> | <math>\displaystyle GV_W = J_W</math> | ||
| Line 20: | Line 20: | ||
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>. | ||
There are a number of methods to solve least squares problems. One common way is to use the | There are a number of methods to solve least squares problems. One common way is to use the [[Moore–Penrose pseudoinverse]]. | ||
== Computation using pseudoinverse == | == Computation using pseudoinverse == | ||
The Moore–Penrose pseudoinverse, denoted ''A''{{+}}, is a generalization of the inverse matrix with which it shares a lot of properties. | The Moore–Penrose pseudoinverse, denoted ''A''{{+}}, is a generalization of the inverse matrix with which it shares a lot of properties. In this method, the (not necessarily independent) TE generator map ''G'', which correspond to the rows of ''V'' are given by | ||
<math>\displaystyle G = J_W V_W^+</math> | <math>\displaystyle G = J_W V_W^+</math> | ||
Applying the | Applying the val list to the generators, The TE tuning map is given by | ||
<math>\displaystyle T = GV = J_W V_W^+ V</math> | <math>\displaystyle T = GV = J_W V_W^+ V</math> | ||
We may also obtain the TE tuning from a projection matrix. {{nowrap|''P'' {{=}} ''V'' | We may also obtain the TE tuning from a [[projection matrix]]. {{nowrap| ''P''<sub>''W''</sub> {{=}} {{subsup|''V''|''W''|+}}''V''<sub>''W''</sub> }} is the orthogonal projection matrix that maps onto the space spanned by the rows of ''V''<sub>''W''</sub>. This space corresponds to the temperament, and so does ''P''<sub>''W''</sub>. However, ''P''<sub>''W''</sub> 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 weighted tuning map ''T''<sub>''W''</sub> = ''TW'' giving the weighted tuning of each prime number is found by multiplying by the JIP: {{nowrap| ''T''<sub>''W''</sub> {{=}} ''J''<sub>''W''</sub>''P''<sub>''W''</sub> {{=}} ''J''<sub>''W''</sub>{{subsup|''V''|''W''|+}}''V''<sub>''W''</sub> }}, which is the nearest point in the subspace corresponding to the temperament to ''J''<sub>''W''</sub>, so that {{nowrap| ''T'' {{=}} ''J''<sub>''W''</sub>''P''<sub>''W''</sub>''W''{{inv}} {{=}} ''J''<sub>''W''</sub>{{subsup|''V''|''W''|+}}''V'' }}. | ||
We may find the same projection matrix starting from a list of weighted monzos rather than vals. If ''M''<sub>''W''</sub> is a rank-''n'' matrix whose columns are weighted monzos, and ''I'' is the ''n''×''n'' identity matrix, then {{nowrap|''P'' {{=}} ''I'' − ''M''<sub>''W''</sub>{{subsup|''M''|''W''|+}}}} is the same projection matrix as {{subsup|''V''|''W''|+}}''V''<sub>''W''</sub> so long as the temperament defined by the vals is the same as the temperament defined by the monzos. Again, it is irrelevant if the monzos are independent or how many of them there are. | We may find the same projection matrix starting from a list of weighted monzos rather than vals. If ''M''<sub>''W''</sub> is a rank-''n'' matrix whose columns are weighted monzos, and ''I'' is the ''n''×''n'' identity matrix, then {{nowrap| ''P''<sub>''W''</sub> {{=}} ''I'' − ''M''<sub>''W''</sub>{{subsup|''M''|''W''|+}} }} is the same projection matrix as {{subsup|''V''|''W''|+}}''V''<sub>''W''</sub> so long as the temperament defined by the vals is the same as the temperament defined by the monzos. Again, it is irrelevant if the monzos are independent or how many of them there are. | ||
== Enforcement == | == Enforcement == | ||
| Line 51: | Line 39: | ||
{{Main| POTE tuning }} | {{Main| POTE tuning }} | ||
We may call the pure-octave Tenney−Euclidean tuning the ''POTE tuning''. If {{nowrap|''T'' {{=}} '' | We may call the pure-octave Tenney−Euclidean tuning the ''POTE tuning''. If {{nowrap|''T'' {{=}} ''J''<sub>''W''</sub>{{subsup|''V''|''W''|+}}''V'' {{=}} ''GV''}} is the TE tuning map, then a corresponding pure-octaves map can be found by {{w|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''. | ||
=== Constrained TE tuning === | === Constrained TE tuning === | ||