Tenney–Euclidean metrics: Difference between revisions
→TE norm: clarify with a link |
No edit summary |
||
| Line 2: | Line 2: | ||
== TE norm == | == TE norm == | ||
The '''Tenney–Euclidean norm''' ('''TE norm''') or '''Tenney–Euclidean complexity''' ('''TE complexity''') applies to [[val]]s as well as to [[monzo]]s. | The '''Tenney–Euclidean norm''' ('''TE norm''') or '''Tenney–Euclidean complexity''' ('''TE complexity''') applies to [[val]]s (equal temperaments) as well as to [[monzo]]s (intervals). | ||
=== Val complexity === | |||
When applied to vals, it provides the complexity of the val (roughly, the "number of notes" in the tuning system). A naive approach might be to simply take the mapping of 2, but for unusual mappings where 2 is mapped to a strange number of steps, that doesn't work. TE complexity is foolproof and equave-agnostic, however. The TE complexity of 31-ET is 30.98, which is close to the edo number as expected for a patent val. But if one were to take the TE complexity of [1 1900 2785 3370], which is technically a tuning of 1-ET, you get 1038.83, which matches the complexity of the tuning much better than the naive approach of simply taking 1 for the complexity, and means that that val is roughly equivalent to 1039edo in complexity. | |||
To find the Tenney-Euclidean norm of a val, you divide each of its entries by the logarithm (base 2) of the prime that it corresponds to, then treat the resulting vector as a point in Euclidean space. The norm is the distance from the origin to that point, scaled by the square root of the dimensionality of the space. For example, for 31-ET, you get [31, 49/log<sub>2</sub>3, 72/log<sub>2</sub>5, 87/log<sub>2</sub>7], or roughly [31, 30.92, 31.01, 30.99]. Each of these entries individually tells you how "sharp" or "flat" each tuning is relative to the octave. The distance from the origin to this point is ~61.96, which is divided by sqrt(4)=2 to receive the norm, 30.98. | |||
Formally, the scaling factors may be represented by a "val weighting matrix" W, a {{w|diagonal matrix}} with values 1, 1/log<sub>2</sub>3, 1/log<sub>2</sub>5 … 1/log<sub>2</sub>''p'' along the diagonal for the [[harmonic limit|''p''-limit]] prime basis ''Q'' = {{val| 2 3 5 … ''p'' }}, or the analog in any subgroup. | |||
=== Monzo complexity === | |||
When applied to monzos, it provides a measure of complexity for the interval itself. To calculate the monzo weighting matrix, you use a similar method, but instead of dividing by the logarithm of each prime, you multiply. This can be thought of as scaling the lattice of intervals so that larger primes represent greater distances along their respective axes. Again, this results in a vector that can be treated as a point in Euclidean space. Then, as with vals, the TE norm is the distance from the origin to that point, but this time it is multiplied by the square root of the dimensionality rather than divided. That means the TE complexity of, say, 5/3, is the distance from the origin to [0 -1.585 2.322], the scaled version of the monzo [0 -1 1], multiplied by sqrt(3). That value is 2.939. | |||
== TE temperamental norm == | == TE temperamental norm == | ||
Suppose now ''V'' is a matrix whose rows are vals defining a ''p''-limit regular temperament. Then the corresponding weighted matrix is {{nowrap| ''V''<sub>''W''</sub> {{=}} ''VW'' }}. The [[Tenney–Euclidean tuning|TE tuning]] [[projection matrix]] is then {{nowrap| ''P''<sub>''W''</sub> {{=}} {{subsup|''V''|''W''|+}}''V''<sub>''W''</sub> }}, where {{+}} denotes the {{w|Moore–Penrose pseudoinverse}}. If the rows of ''V | {{Todo|Rewrite|inline=1|text=Pretty sure a lot of this is just sorta assuming we don't already have the generator tuning map.}} | ||
Suppose now ''V'' is a matrix whose rows are vals defining a ''p''-limit regular temperament. Then the corresponding weighted matrix is {{nowrap|''V''<sub>''W''</sub> {{=}} ''VW''}}. The [[Tenney–Euclidean tuning|TE tuning]] [[projection matrix]] is then {{nowrap|''P''<sub>''W''</sub> {{=}} {{subsup|''V''|''W''|+}}''V''<sub>''W''</sub>}}, where {{+}} denotes the {{w|Moore–Penrose pseudoinverse}}. If the rows of ''V<sub>W</sub>'' (or equivalently, ''V'') are linearly independent, then we have {{nowrap|{{subsup|''V''|''W''|+}} {{=}} {{subsup|''V''|''W''|T}}(''V''<sub>''W''</sub>{{subsup|''V''|''W''|T}}){{inv}}}}. In terms of vals, the tuning projection matrix is {{nowrap|{{subsup|''V''|''W''|+}}''V''<sub>''W''</sub> {{=}} {{subsup|''V''|''W''|T}}(''V''<sub>''W''</sub>{{subsup|''V''|''W''|T}}){{inv}}''V''<sub>''W''</sub>}} {{nowrap|{{=}} ''WV''{{t}}(''VW''<sup>2</sup>''V''{{t}}){{inv}}''VW''}}. ''P<sub>W</sub>'' is a {{w|positive-definite matrix|positive semidefinite matrix}}, so it defines a {{w|definite bilinear form|positive semidefinite bilinear form}}. In terms of weighted monzos ('''m'''<sub>''W''</sub>)<sub>1</sub> and ('''m'''<sub>''W''</sub>)<sub>2</sub>, {{subsup|('''m'''<sub>''W''</sub>)|1|T}}''P<sub>W</sub>''('''m'''<sub>''W''</sub>)<sub>2</sub> defines the semidefinite form on weighted monzos, and hence {{subsup|'''m'''|1|T}}''W''{{inv}}''P<sub>W</sub>W''{{inv}}'''m'''<sub>2</sub> defines a semidefinite form on unweighted monzos, in terms of the matrix {{nowrap|''P'' {{=}} ''W''{{inv}}''P''<sub>''W''</sub>''W''{{inv}}}} {{nowrap|{{=}} ''V''{{t}}(''VW''<sup>2</sup>''V''{{t}}){{inv}}''V''}}. From the semidefinite form we obtain an associated {{w|definite quadratic form|semidefinite quadratic form}} '''m'''{{t}}''P'''''m''' and from this the {{w|norm (mathematics)|seminorm}} sqrt('''m'''{{t}}''P'''''m'''). | |||
It may be noted that {{nowrap|(''V''<sub>''W''</sub>{{subsup|''V''|''W''|T}}){{inv}} {{=}} (''VW''<sup>2</sup>''V''{{t}}){{inv}}}} is the inverse of the {{w|Gramian matrix}} used to compute [[TE complexity]], and hence is the corresponding Gram matrix for the dual space. Hence ''P'' represents a change of basis defined by the mapping given by the vals combined with an {{w|inner product space|inner product}} on the result. Given a monzo '''m''', ''V'''''m''' represents the tempered interval corresponding to '''m''' in a basis defined by the mapping ''V'', and {{nowrap|''P''<sub>''T''</sub> {{=}} (''VW''<sup>2</sup>''V''{{t}}){{inv}}}} defines a positive-definite quadratic form, and hence a norm, on the tempered interval space with basis defined by ''V''. | It may be noted that {{nowrap|(''V''<sub>''W''</sub>{{subsup|''V''|''W''|T}}){{inv}} {{=}} (''VW''<sup>2</sup>''V''{{t}}){{inv}}}} is the inverse of the {{w|Gramian matrix}} used to compute [[TE complexity]], and hence is the corresponding Gram matrix for the dual space. Hence ''P'' represents a change of basis defined by the mapping given by the vals combined with an {{w|inner product space|inner product}} on the result. Given a monzo '''m''', ''V'''''m''' represents the tempered interval corresponding to '''m''' in a basis defined by the mapping ''V'', and {{nowrap|''P''<sub>''T''</sub> {{=}} (''VW''<sup>2</sup>''V''{{t}}){{inv}}}} defines a positive-definite quadratic form, and hence a norm, on the tempered interval space with basis defined by ''V''. | ||
Denoting the temperament-defined, or temperamental, seminorm by ''T''(''x''), the subspace of interval space such that {{nowrap|''T''(''x'') {{=}} 0}} contains a lattice consisting of the commas of the temperament, which is a sublattice of the lattice of monzos. The {{w|quotient space (linear algebra)|quotient space}} of the full vector space by the commatic subspace such that {{nowrap|''T''(''x'') {{=}} 0}} is now a {{w|normed vector space}} with norm given by ''T'', in which the intervals of the regular temperament define a lattice. The norm ''T'' on these lattice points is the '''TE temperamental norm''' or '''TE temperamental complexity''' of the intervals of the regular temperament; in terms of the basis defined by ''V'', it is sqrt('''t'''{{t}}''P | Denoting the temperament-defined, or temperamental, seminorm by ''T''(''x''), the subspace of interval space such that {{nowrap|''T''(''x'') {{=}} 0}} contains a lattice consisting of the commas of the temperament, which is a sublattice of the lattice of monzos. The {{w|quotient space (linear algebra)|quotient space}} of the full vector space by the commatic subspace such that {{nowrap|''T''(''x'') {{=}} 0}} is now a {{w|normed vector space}} with norm given by ''T'', in which the intervals of the regular temperament define a lattice. The norm ''T'' on these lattice points is the '''TE temperamental norm''' or '''TE temperamental complexity''' of the intervals of the regular temperament; in terms of the basis defined by ''V'', it is sqrt('''t'''{{t}}''P<sub>T</sub>'''''t''') where '''t''' is the image of a monzo '''m''' by {{nowrap|'''t''' {{=}} ''V'''''m'''}}. | ||
== Octave-equivalent TE seminorm == | == Octave-equivalent TE seminorm == | ||
Revision as of 04:45, 13 November 2025
The Tenney-Euclidean metrics are metrics defined in Tenney-Euclidean space. These consist of the TE norm, which measures the complexity of an interval in just intonation, the TE temperamental norm, which measures the complexity of an interval as mapped by a temperament, and the octave-equivalent TE seminorms of both.
TE norm
The Tenney–Euclidean norm (TE norm) or Tenney–Euclidean complexity (TE complexity) applies to vals (equal temperaments) as well as to monzos (intervals).
Val complexity
When applied to vals, it provides the complexity of the val (roughly, the "number of notes" in the tuning system). A naive approach might be to simply take the mapping of 2, but for unusual mappings where 2 is mapped to a strange number of steps, that doesn't work. TE complexity is foolproof and equave-agnostic, however. The TE complexity of 31-ET is 30.98, which is close to the edo number as expected for a patent val. But if one were to take the TE complexity of [1 1900 2785 3370], which is technically a tuning of 1-ET, you get 1038.83, which matches the complexity of the tuning much better than the naive approach of simply taking 1 for the complexity, and means that that val is roughly equivalent to 1039edo in complexity.
To find the Tenney-Euclidean norm of a val, you divide each of its entries by the logarithm (base 2) of the prime that it corresponds to, then treat the resulting vector as a point in Euclidean space. The norm is the distance from the origin to that point, scaled by the square root of the dimensionality of the space. For example, for 31-ET, you get [31, 49/log23, 72/log25, 87/log27], or roughly [31, 30.92, 31.01, 30.99]. Each of these entries individually tells you how "sharp" or "flat" each tuning is relative to the octave. The distance from the origin to this point is ~61.96, which is divided by sqrt(4)=2 to receive the norm, 30.98.
Formally, the scaling factors may be represented by a "val weighting matrix" W, a diagonal matrix with values 1, 1/log23, 1/log25 … 1/log2p along the diagonal for the p-limit prime basis Q = ⟨2 3 5 … p], or the analog in any subgroup.
Monzo complexity
When applied to monzos, it provides a measure of complexity for the interval itself. To calculate the monzo weighting matrix, you use a similar method, but instead of dividing by the logarithm of each prime, you multiply. This can be thought of as scaling the lattice of intervals so that larger primes represent greater distances along their respective axes. Again, this results in a vector that can be treated as a point in Euclidean space. Then, as with vals, the TE norm is the distance from the origin to that point, but this time it is multiplied by the square root of the dimensionality rather than divided. That means the TE complexity of, say, 5/3, is the distance from the origin to [0 -1.585 2.322], the scaled version of the monzo [0 -1 1], multiplied by sqrt(3). That value is 2.939.
TE temperamental norm
| Todo: Rewrite
Pretty sure a lot of this is just sorta assuming we don't already have the generator tuning map. |
Suppose now V is a matrix whose rows are vals defining a p-limit regular temperament. Then the corresponding weighted matrix is VW = VW. The TE tuning projection matrix is then PW = V +
W VW, where + denotes the Moore–Penrose pseudoinverse. If the rows of VW (or equivalently, V) are linearly independent, then we have V +
W = V T
W (VWV T
W )−1. In terms of vals, the tuning projection matrix is V +
W VW = V T
W (VWV T
W )−1VW = WV T(VW2V T)−1VW. PW is a positive semidefinite matrix, so it defines a positive semidefinite bilinear form. In terms of weighted monzos (mW)1 and (mW)2, (mW) T
1 PW(mW)2 defines the semidefinite form on weighted monzos, and hence m T
1 W−1PWW−1m2 defines a semidefinite form on unweighted monzos, in terms of the matrix P = W−1PWW−1 = V T(VW2V T)−1V. From the semidefinite form we obtain an associated semidefinite quadratic form m TPm and from this the seminorm sqrt(m TPm).
It may be noted that (VWV T
W )−1 = (VW2V T)−1 is the inverse of the Gramian matrix used to compute TE complexity, and hence is the corresponding Gram matrix for the dual space. Hence P represents a change of basis defined by the mapping given by the vals combined with an inner product on the result. Given a monzo m, Vm represents the tempered interval corresponding to m in a basis defined by the mapping V, and PT = (VW2V T)−1 defines a positive-definite quadratic form, and hence a norm, on the tempered interval space with basis defined by V.
Denoting the temperament-defined, or temperamental, seminorm by T(x), the subspace of interval space such that T(x) = 0 contains a lattice consisting of the commas of the temperament, which is a sublattice of the lattice of monzos. The quotient space of the full vector space by the commatic subspace such that T(x) = 0 is now a normed vector space with norm given by T, in which the intervals of the regular temperament define a lattice. The norm T on these lattice points is the TE temperamental norm or TE temperamental complexity of the intervals of the regular temperament; in terms of the basis defined by V, it is sqrt(t TPTt) where t is the image of a monzo m by t = Vm.
Octave-equivalent TE seminorm
Instead of starting from a matrix of vals, we may start from a matrix of monzos. If M is a matrix with columns of monzos spanning the commas of a regular temperament, then MW = W−1M is the corresponding weighted matrix. QW = MWM +
W is a projection matrix dual to PW = I − QW, where I is the identity matrix, and PW is the same symmetric matrix as in the previous section. If the rows define a basis for the commas of the temperament, and are therefore linearly independent, then PW = I − MW(M T
W MW)−1M T
W = I − W−1M(M TW−2M)−1M TW−1, and m T
W PWmW = m TW−1PWW−1m, or m T(W−2 − W−2M(M TW−2M)−1M TW−2)m, so that the terms inside the parenthesis define a formula for P in terms of the matrix of monzos M.
To define the octave-equivalent Tenney–Euclidean seminorm, or OETES, we simply add a column [1 0 0 … 0⟩ representing 2 to the matrix M. An alternative procedure is to find the 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. This seminorm is a measure of the octave-equivalent complexity of a given p-limit rational interval in terms of the p-limit regular temperament given by V.
Examples
Consider the temperament defined by the 5-limit patent vals for 15 and 22 equal. From the vals, we may construct a 2×3 matrix V = [⟨15 24 35], ⟨22 35 51]]. From this we may obtain the matrix P as V T(VW2V T)−1V, approximately
[math]\displaystyle{ \left[\begin{matrix} 0.9911 & 0.1118 & -0.1440 \\ 0.1118 & 1.1075 & 1.8086 \\ -0.1440 & 1.8086 & 3.0624 \\ \end{matrix}\right] }[/math]
If we want to find the temperamental seminorm T(250/243) of 250/243, we convert it into a monzo as [1 -5 3⟩. Now we may multiply P by this on the left, obtaining the zero vector. Taking the dot product of the zero vector [1 -5 3⟩ gives zero, and taking the square root of zero we get zero, the temperametal seminorm T(250/243) of 250/243. All of this is telling us that 250/243 is a comma of this temperament, which is 5-limit porcupine.
Similarly, starting from the monzo [-1 1 0⟩ for 3/2, we may multiply this by P, obtaining ⟨-0.8793 0.9957 1.9526], and taking the dot product of this with [-1 1 0⟩ 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 m is a monzo, this mapping is given by Vm. Hence we have V[1 -5 3⟩ maps to [0 0⟩ for the interval associated to 250/243, and V[-1 1 0⟩ 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 PT = (VW2V T)−1, which is approximately
[math]\displaystyle{ \left[\begin{matrix} 175.3265 & -120.0291 \\ -120.0291 & 82.1730 \\ \end{matrix}\right] }[/math]
Using this, we find the temperamental norm of [9 13⟩ to be sqrt([9 13]PT[9 13] T) ~ 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, PT does; if we choose [⟨1 2 3], ⟨0 -3 -5]] for our basis instead, then 3/2 is represented by [1 -3⟩ and PT changes coordinates to produce the same final result of temperamental complexity.
If instead we want the OETES, we may remove the first row of [⟨1 2 3], ⟨0 -3 -5]], leaving just [⟨0 -3 -5]]. If we now call this 1×3 matrix V, then PT = (VW2V T)−1 is a 1×1 matrix; in effect a scalar, with value [⟨0.1215588]]. Multiplying a monzo m by V on the left gives a 1×1 matrix Vm 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 m belongs. Performing the multiplication and taking the square root, we conclude the OE complexity is simply proportional to this number of generator steps.
For a more substantial example we need to consider at least a rank-3 temperament, so let us turn to 7-limit marvel, the 7-limit temperament tempering out 225/224. The 2×4 matrix of monzos whose first row represents 2 and whose second row 225/224 is [[1 0 0 0⟩, [-5 2 2 -1⟩]. If we denote log2 of the odd primes by p3, p5, p7, etc., then the monzo weighting of this matrix is MW = [[1 0 0 0⟩, [-5 2p3 2p5 -p7⟩], and PW = I − MWM +
W = [[1 0 0 0⟩, [0 4(p5)2 + (p7)2 -4(p3)(p5) 2(p3)(p7)⟩/H, [0 -4(p3)(p5) 4(p3)2 + (p7)2 2(p5)(p7)⟩/H, [0 2(p3)(p7) 2(p5)(p7) 4((p3)2 + (p5)2)⟩/H], where H = 4(p3)2 + 4(p5)2 + (p7)2. On the other hand, we may start from the normal val list for the temperament, which is [⟨1 0 0 -5], ⟨0 1 0 2], ⟨0 0 1 2]]. Removing the first row gives [⟨0 1 0 2], ⟨0 0 1 2]], and val weighting this gives CW = [⟨0 1/p3 0 2/p7], ⟨0 0 1/p5 2/p7]]. Then PW = CW+CW 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 = (RW2R T)−1. In the case of marvel, we obtain S = [[(p3)2(4(p5)2 + (p7)2) -4(p3)2(p5)2], [-4(p3)2(p5)2 (p5)2(4(p3)2 + (p7)2)]]/H. If k = [k1 k2⟩ 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(k TSk) gives the OE complexity of the note class.