Target tuning: Difference between revisions
ArrowHead294 (talk | contribs) m Formatting |
Replace Gene's tie-breaking method in favor of a more reasonable one. Misc. clarification/cleanup |
||
| Line 2: | Line 2: | ||
== Least squares tunings == | == Least squares tunings == | ||
By assumption we have a finite set of rational intervals defining interval | By assumption we have a finite set of rational intervals defining [[interval class]]es, which we may take to be [[octave reduction|octave-reduced]] intervals, expressed logarithmically in terms of [[binary logarithm]]. The least squares tuning, ''T'', is the tuning for a particular regular temperament which minimizes the sum of the squares of the errors, ∑<sub>''i''</sub> ({{nowrap|''T''(''q<sub>i</sub>'') − log<sub>2</sub>(''q<sub>i</sub>''))<sup>2</sup>}}, where ''q<sub>i</sub>'' are the rational intervals of the target set. | ||
We may find the least squares tuning in various ways, one of which is to start from a matrix '''R''' whose rows are the monzos of the target set, and a matrix '''U''' whose rows are [[val]]s spanning the temperament. From '''U''' we form the matrix '''V''' by taking the [[ | Most commonly, the target set is a [[tonality diamond]], since these are the intervals in a [[harmonic series]] up to some odd integer ''d'', and hence may be considered the [[consonance]]s of the ''d''-odd-limit. By convention, intervals of the tonality diamond are reduced to lowest terms and have duplicates removed. If duplicates are not removed, the results are usually different. | ||
We may find the least squares tuning in various ways, one of which is to start from a matrix '''R''' whose rows are the monzos of the target set, and a matrix '''U''' whose rows are [[val]]s spanning the temperament. From '''U''' we form the matrix '''V''' by taking the [[normal forms|normal val list]] for '''U''' and removing the first ("period") row. A list of [[eigenmonzo|eigenmonzos (unchanged-intervals)]] {{nowrap|'''E'''' {{=}} '''VR'''<sup>T</sup>'''R'''}}, where the <sup>T</sup> denotes the matrix transpose, can now be obtained by matrix multiplication, and to this we add a row for the monzo of 2. The [[projection matrix]] for the least squares tuning is then the square matrix with fractional monzo rows, the rows of '''E''', including 2, as eigenmonzos, that is left eigenvectors with eigenvalue one, and any basis for the commas of the temperament as left eigenvectors with eigenvalues zero. | |||
== Minimax tuning == | == Minimax tuning == | ||
Starting with the same assumptions as with least squares tuning, minimax tuning works similarly, except instead of minimizing the squares of the errors, we minimize {{nowrap|max<sub>''i''</sub>{{!}}''T''(''q<sub>i</sub>'') − log<sub>2</sub>(''q<sub>i</sub>''){{!}} }}, the maximum error over all the target intervals. This can be solved by setting the minimization up as a {{w|linear programming}} problem, but another approach leads as before to a projection matrix with fractional monzo rows. | Starting with the same assumptions as with least squares tuning, minimax tuning works similarly, except instead of minimizing the squares of the errors, we minimize {{nowrap|max<sub>''i''</sub>{{!}}''T''(''q<sub>i</sub>'') − log<sub>2</sub>(''q<sub>i</sub>''){{!}} }}, the maximum error over all the target intervals. This can be solved by setting the minimization up as a {{w|linear programming}} problem, but another approach leads as before to a projection matrix with fractional monzo rows. | ||
For a rank-''r'' temperament, we can form a list of candidate sets of eigenmonzos by taking {{nowrap|''r'' − 1}} elements from the list of target intervals, and adding 2 to the set, leading to an ''r''-element set. To avoid duplications and sets with rank less than ''r'', we can take the [[ | For a rank-''r'' temperament, we can form a list of candidate sets of eigenmonzos by taking {{nowrap|''r'' − 1}} elements from the list of target intervals, and adding 2 to the set, leading to an ''r''-element set. To avoid duplications and sets with rank less than ''r'', we can take the [[normal forms|normal interval list]] defined by each of these ''r''-element sets, discarding any with less than ''r'' elements. This means we are compiling a list of rank-''r'' [[just intonation subgroup]]s, which are [[eigenmonzo subgroup]]s for the corresponding tuning. For each of these these subgroups, we may find a corresponding projection matrix as the matrix with the ''r'' generators of the subgroup as eigenmonzos and a basis for the commas as left eigenvectors with eigenvalue zero. These projection matrices define tunings, and the tuning, if unique, with the least maximum error is the minimax tuning. However, this tuning may not be unique, in which case we may break the tie by discarding the bounding intervals and repeat minimax on the rest of the intervals until a unique tuning is found. This is the same tuning achieved by minimizing the ''p''-norm error as ''p'' approaches infinity<ref group="note">See [[Dave Keenan & Douglas Blumeyer's guide to RTT/Tuning computation #Tie breaking: power limit method]] for details.</ref><ref group="note">Historically, [[Gene Ward Smith]] proposed breaking the tie by falling back to least squares tuning in the set of minimax tunings.</ref>. | ||
== Example == | == Example == | ||
| Line 23: | Line 25: | ||
Starting from the same six intervals of the 5-odd-limit diamond and adding 2, we find after computing the normal interval lists that the three subgroups are [2, 3], [2, 5], and [2, 5/3]. Computing the projection matrix and from thence the tuning in each case, we find that the minimax tuning is [{{monzo| 1 0 0 }}, {{monzo| 1 0 1/4 }}, {{monzo| 0 0 1 }}], the projection matrix for 1/4-comma meantone. | Starting from the same six intervals of the 5-odd-limit diamond and adding 2, we find after computing the normal interval lists that the three subgroups are [2, 3], [2, 5], and [2, 5/3]. Computing the projection matrix and from thence the tuning in each case, we find that the minimax tuning is [{{monzo| 1 0 0 }}, {{monzo| 1 0 1/4 }}, {{monzo| 0 0 1 }}], the projection matrix for 1/4-comma meantone. | ||
== Notes == | |||
<references group="note"/> | |||
[[Category:Math]] | [[Category:Math]] | ||
[[Category:Regular temperament tuning]] | [[Category:Regular temperament tuning]] | ||