Relative interval error: Difference between revisions
Using "val mapping" and "direct approximation" and other style improvements |
Rework |
||
Line 6: | Line 6: | ||
== Computation == | == Computation == | ||
To find the relative error of any [[JI]] | === In direct approximation === | ||
To find the relative error of any [[JI]] ratio in direct approximation: | |||
<math>e (n, r) = (\text{round} (n \log_2 r) - n \log_2 r) \times 100\%</math> | <math>e (n, r) = (\text{round} (n \log_2 r) - n \log_2 r) \times 100\%</math> | ||
Line 14: | Line 15: | ||
The unit of relative error is ''relative cent'' or ''percent''. | The unit of relative error is ''relative cent'' or ''percent''. | ||
With direct approximation via the ratio's cents, the relative error ranges from -50% to +50%. With a val mapping via [[patent val]] or other vals, it can be farther | With direct approximation via the ratio's cents, the relative error ranges from -50% to +50%. With a val mapping via [[patent val]] or other vals, it can be farther. | ||
== | === In val mapping === | ||
Given ''n''-edo equipped with ''p''-limit val A = {{val| ''a''<sub>1</sub> ''a''<sub>2</sub> … ''a''<sub>π (''p'')</sub> }}, the relative error map E<sub>r</sub> of each prime harmonic is given by | |||
<math>E_\text {r} = (A - nJ) \times 100\%</math> | |||
where J is the [[JIP]]. | |||
The relative error for any monzo b is given by | |||
<math>E_\text {r} \vec b</math> | |||
Here is an example | == Linearity == | ||
=== Linearity of the relative error space === | |||
In val mapping, the relative error space {E<sub>r</sub>} is linear. That is, if ''n'' = ''αn''<sub>1</sub> + ''βn''<sub>2</sub> and A = ''α''A<sub>1</sub> + ''β''A<sub>2</sub>, then | |||
<math> | |||
E_\text {r} = (A - nJ) \times 100\% \\ | |||
= ((\alpha A_1 + \beta A_2) - (\alpha n_1 + \beta n_2)J) \times 100\% \\ | |||
= \alpha (A_1 - n_1 J) \times 100\% + (\beta (A_2 - n_2 J) \times 100\% \\ | |||
= \alpha E_\text {r1} + \beta E_\text {r2} | |||
</math> | |||
Here is an example. The relative errors of 26edo in its 7-limit patent val is | |||
<math>E_\text {r, 26} = \langle \begin{matrix} 0.00\% & -20.90\% & -37.01\% \end{matrix} ]</math> | |||
That of 27edo in its 5-limit patent val is | |||
<math>E_\text {r, 27} = \langle \begin{matrix} 0.00\% & +20.60\% & +30.79\% \end{matrix} ]</math> | |||
As 53 = 26 + 27, the relative errors of 53edo in its 5-limit patent val is | |||
<math>E_\text {r, 53} = \langle \begin{matrix} 0.00\% & -0.30\% & -6.22\% \end{matrix} ]</math> | |||
We see how the errors of a sharp tending system and a flat tending system cancel out each other by the sum, and result in a much more accurate equal temperament. | |||
It is somewhat applicable to direct approximation, too, but if the error exceeds the range of -50% to +50%, it indicates that there is a discrepancy in val mapping and direct approximation. In this case, you need to modulo the result by 100%. | |||
=== Linearity of the interval space === | |||
{{See also| Monzos and interval space }} | |||
Another linearity is actually about the interval space {b}. This enables us to find the relative error of any ratio in a given tuning of an equal temperament. | |||
Let us try finding the relative error of 6/5 in 19edo's patent val. We first find the errors of 2/1, 3/1 and 5/1 in 19edo are 0, -11.43% and -11.66%, respectively. Since 6/5 = (2/1)(3/1) / (5/1), its error is 0 + (-11.43%) - (-11.66%) = 0.23%. That shows 19edo has fairly flat fifths and major thirds, yet they cancel out when it comes to minor thirds and results in a very accurate approximation. | |||
== See also == | == See also == |