Constrained tuning: Difference between revisions
→Definition: improve the formulation |
m Display style. Mark todo |
||
| Line 1: | Line 1: | ||
{{ | {{Texops}}{{texmap}} | ||
'''Constrained tunings''' are tuning [[optimization]] techniques using the constraint of some purely tuned intervals (i.e. [[eigenmonzo|unit eigenmonzos, or unchanged-intervals]]). | '''Constrained tunings''' are tuning [[optimization]] techniques using the constraint of some purely tuned intervals (i.e. [[eigenmonzo|unit eigenmonzos, or unchanged-intervals]]). | ||
| Line 173: | Line 173: | ||
It can also be solved analytically using the method of {{w|Lagrange multipliers}}. The solution is given by: | It can also be solved analytically using the method of {{w|Lagrange multipliers}}. The solution is given by: | ||
$$ | |||
\begin{bmatrix} | \begin{bmatrix} | ||
G^{\mathsf T} \\ | G^{\mathsf T} \\ | ||
| Line 183: | Line 183: | ||
(VM)^{\mathsf T} & O | (VM)^{\mathsf T} & O | ||
\end{bmatrix}^{-1} | \end{bmatrix}^{-1} | ||
\begin{bmatrix} | \begin{bmatrix} | ||
V_X J_X^{\mathsf T}\\ | V_X J_X^{\mathsf T}\\ | ||
(JM)^{\mathsf T} | (JM)^{\mathsf T} | ||
\end{bmatrix} | \end{bmatrix} | ||
$$ | |||
Notice we introduced the vector of lagrange multipliers ''Λ'', with length equal to the number of constraints. The lagrange multipliers have no concrete meaning for the resulting tuning, so they can be discarded. | Notice we introduced the vector of lagrange multipliers ''Λ'', with length equal to the number of constraints. The lagrange multipliers have no concrete meaning for the resulting tuning, so they can be discarded. | ||
=== Simple fast closed-form algorithm === | === Simple fast closed-form algorithm === | ||
{{Todo|inline=1|cleanup|comment=Unify variable names with the other sections. }} | |||
Another way to compute the CTE and CWE tunings, and the CTWE tuning in general, is to use the pseudoinverse. | Another way to compute the CTE and CWE tunings, and the CTWE tuning in general, is to use the pseudoinverse. | ||
| Line 383: | Line 384: | ||
Take 7-limit meantone as an example. The POTE [[tuning map]] is a little bit flatter than [[quarter-comma meantone]], with all the primes tuned flat: | Take 7-limit meantone as an example. The POTE [[tuning map]] is a little bit flatter than [[quarter-comma meantone]], with all the primes tuned flat: | ||
$$ \val{1200.000 & 1896.495 & 2785.980 & 3364.949} $$ | |||
The CWE tuning map is a little bit sharper than quarter-comma meantone, with 5 tuned sharp and 3 and 7 flat: | The CWE tuning map is a little bit sharper than quarter-comma meantone, with 5 tuned sharp and 3 and 7 flat: | ||
$$ \val{1200.000 & 1896.656 & 2786.625 & 3366.562} $$ | |||
The CTE tuning map is even sharper, with 3 tuned flat and 5 and 7 sharp: | The CTE tuning map is even sharper, with 3 tuned flat and 5 and 7 sharp: | ||
$$ \val{1200.000 & 1896.952 & 2787.809 & 3369.521} $$ | |||
==== Blackwood ==== | ==== Blackwood ==== | ||
| Line 398: | Line 399: | ||
Note that the POTE tuning still has prime 5 tuned sharp, even though it could be tuned pure: | Note that the POTE tuning still has prime 5 tuned sharp, even though it could be tuned pure: | ||
$$ \val{1200.000 & 1920.000 & 2799.594} $$ | |||
The CWE gives similar results, although tunes it a few cents flatter: | The CWE gives similar results, although tunes it a few cents flatter: | ||
$$ \val{1200.000 & 1920.000 & 2795.126} $$ | |||
The CTE tuning, on the other hand, tunes prime 5 pure: | The CTE tuning, on the other hand, tunes prime 5 pure: | ||
$$ \val{1200.000 & 1920.000 & 2786.314} $$ | |||
Since prime 5 is not involved in the comma to begin with, it is understandable that it is tuned pure as in 5-limit JI. This, as mentioned above, leads to very lopsided behavior for compact chords like 1–5/4–3/2. Note that the tunings for KE and POTE distribute the error between 5/4 and 6/5 relatively evenly; both are very close to the delta-rational 0–397–720. The CTE tuning, on the other hand, has that chord tuned to 0–386–720, so that all of the error is on the 6/5 at about 18 cents sharp. | Since prime 5 is not involved in the comma to begin with, it is understandable that it is tuned pure as in 5-limit JI. This, as mentioned above, leads to very lopsided behavior for compact chords like 1–5/4–3/2. Note that the tunings for KE and POTE distribute the error between 5/4 and 6/5 relatively evenly; both are very close to the delta-rational 0–397–720. The CTE tuning, on the other hand, has that chord tuned to 0–386–720, so that all of the error is on the 6/5 at about 18 cents sharp. | ||
| Line 420: | Line 421: | ||
The step size ''g'' can be found by | The step size ''g'' can be found by | ||
$$ g = 1/\operatorname{mean} (V_X) $$ | |||
The edo number ''n'' can be found by | The edo number ''n'' can be found by | ||
$$ n = 1/g = \operatorname{mean} (V_X) $$ | |||
Unlike TE or TOP, the optimal edo number space in TOC is linear with respect to ''V''. That is, if {{nowrap|''V'' {{=}} ''αV''<sub>1</sub> + ''βV''<sub>2</sub>}}, then | Unlike TE or TOP, the optimal edo number space in TOC is linear with respect to ''V''. That is, if {{nowrap|''V'' {{=}} ''αV''<sub>1</sub> + ''βV''<sub>2</sub>}}, then | ||
$$ | |||
\begin{align} | \begin{align} | ||
n &= \operatorname {mean} (VX) \\ | n &= \operatorname {mean} (VX) \\ | ||
| Line 435: | Line 436: | ||
&= \alpha n_1 + \beta n_2 | &= \alpha n_1 + \beta n_2 | ||
\end{align} | \end{align} | ||
$$ | |||
As a result, the [[Relative interval error #Linearity|relative error space]] is also linear with respect to ''V''. | As a result, the [[Relative interval error #Linearity|relative error space]] is also linear with respect to ''V''. | ||
| Line 441: | Line 442: | ||
For example, the relative errors of 12ettoc5 (12et in 5-limit TOC) is | For example, the relative errors of 12ettoc5 (12et in 5-limit TOC) is | ||
$$ \mathcal{E}_\text {r}(12) = \val{-1.55\% & -4.42\% & +10.08\% } $$ | |||
That of 19ettoc5 is | That of 19ettoc5 is | ||
$$ \mathcal{E}_\text {r}(19) = \val{+4.08\% & -4.97\% & -2.19\% } $$ | |||
As 31 = 12 + 19, the relative errors of 31ettoc5 is | As 31 = 12 + 19, the relative errors of 31ettoc5 is | ||
$$ | |||
\begin{align} | \begin{align} | ||
\mathcal{E}_\text {r}(31) &= \mathcal{E}_\text {r}(12) + \mathcal{E}_\text {r}(19) \\ | \mathcal{E}_\text {r}(31) &= \mathcal{E}_\text {r}(12) + \mathcal{E}_\text {r}(19) \\ | ||
&= \val{+2.52\% & -9.38\% & +7.88\% } | &= \val{+2.52\% & -9.38\% & +7.88\% } | ||
\end{align} | \end{align} | ||
$$ | |||
== Systematic name == | == Systematic name == | ||