User:Sintel/CTE tuning: Difference between revisions
No edit summary |
m Categories |
||
(15 intermediate revisions by one other user not shown) | |||
Line 4: | Line 4: | ||
== Definition == | == Definition == | ||
Given a temperament [[mapping]] | Given a temperament [[mapping]] M, the CTE tuning is equivalent to the following optimization problem: | ||
<math> | <math> | ||
\begin{align} | \begin{align} | ||
\underset{g}{\text{minimize}} & \quad \| gMW - jW \|^2 \\ | |||
\text{subject to} & \quad ( gM - j )V = 0 \\ | |||
\end{align} | \end{align} | ||
</math> | </math> | ||
where ''g'' is the generator list, W the diagonal Tenney-Euclidean | where ''g'' is the (unknown) generator list, W the diagonal Tenney-Euclidean weight matrix, ''j'' is the [[JIP]], and V is a matrix obtained by stacking the monzos that we want to be pure. This problem is feasible if rank (V) ≤ rank (M). | ||
== Computation == | |||
Since this is a convex problem, it can be solved using the method of lagrange multipliers. Let's first simplify: | |||
<math> | |||
\begin{align} | |||
A &= (MW)^{\mathsf T} | |||
&b &= (jW)^{\mathsf T} \\ | |||
C &= (MV)^{\mathsf T} | |||
&d &= (jV)^{\mathsf T} \\ | |||
\end{align} | |||
</math> | |||
The problem then becomes: | |||
<math> | <math> | ||
\begin{ | \begin{align} | ||
\ | \underset{g}{\text{minimize}} & \quad \left\| Ag^{\mathsf T} - b \right\|^2 \\ | ||
\ | \text{s.t.} & \quad \phantom{\|} Cg^{\mathsf T} - d = 0 \\ | ||
\end{ | \end{align} | ||
</math> | |||
The solution can be found by solving the dual problem: | |||
<math> | |||
\begin{bmatrix} | \begin{bmatrix} | ||
g^{\mathsf T} \\ | g^{\mathsf T} \\ | ||
Line 27: | Line 46: | ||
= | = | ||
\begin{bmatrix} | \begin{bmatrix} | ||
\ | A^{\mathsf T}A & C^{\mathsf T} \\ | ||
\ | C & 0 | ||
\end{bmatrix}^{-1} | |||
\begin{bmatrix} | |||
A^{\mathsf T} b\\ | |||
d | |||
\end{bmatrix} | \end{bmatrix} | ||
</math> | </math> | ||
Where we introduced the vector of lagrange multipliers <math>\lambda</math>, with length equal to the number of constraints. The lagrange multipliers have no concrete meaning for the resulting tuning, so they can be ignored. | |||
As a standard optimization problem, numerous algorithms exist to solve for this tuning, such as [[Wikipedia: Sequential quadratic programming|sequential quadratic programming]], to name one. | As a standard optimization problem, numerous algorithms exist to solve for this tuning, such as [[Wikipedia: Sequential quadratic programming|sequential quadratic programming]], to name one. | ||
Line 114: | Line 134: | ||
It can be speculated that POTE tends to result in biased tunings whereas CTE less so. | It can be speculated that POTE tends to result in biased tunings whereas CTE less so. | ||
[[Category:Regular temperament | [[Category:Regular temperament tuning]] | ||
[[Category:Terms]] | [[Category:Terms]] | ||
[[Category:Math]] | [[Category:Math]] | ||