Relative interval error: Difference between revisions
m Xenwolf moved page Relative Interval Error to Relative interval error: remove capitalization within the lemma |
Using "val mapping" and "direct approximation" and other style improvements |
||
Line 1: | Line 1: | ||
''This article is about the error of intervals measured in relative cents. For the relative error of temperaments, see [[Tenney-Euclidean temperament measures #TE simple badness]].'' | ''This article is about the error of intervals measured in relative cents. For the relative error of temperaments, see [[Tenney-Euclidean temperament measures #TE simple badness]].'' | ||
The '''relative error''' of an [[interval]] in an [[edo]] is the interval's error in cents divided by the cents of an edostep, or equivalently stated, the error in [[ | The '''relative error''' of an [[interval]] in an [[edo]] is the interval's error in cents divided by the cents of an edostep, or equivalently stated, the error in [[relative cent]]s. | ||
For example, in | For example, in 24edo, 3/2 has an '''absolute error''' of about -2¢, meaning that the nearest interval in the edo is about 2¢ flat of 3/2. One edostep is 50¢, and -2 / 50 = -0.04, therefore the relative error is about -4% or -4 relative cents. In contrast, 12edo has the same absolute error, but a smaller relative error of -2%. (In fact, 12edo's absolute and relative errors are always identical.) | ||
== | == Computation == | ||
To find the relative error of any [[JI]] interval 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> | ||
where ''n'' is the edo number and ''r'' is the targeted [[frequency ratio]]. | where ''n'' is the edo number and ''r'' is the targeted [[frequency ratio]]. | ||
Line 14: | Line 14: | ||
The unit of relative error is ''relative cent'' or ''percent''. | The unit of relative error is ''relative cent'' or ''percent''. | ||
With | 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 from zero. To obtain the relative error in patent val mapping, first find the relative errors of each prime, and then find the dot product of this vector with the ratio's monzo. | ||
== Additivity == | == Additivity == | ||
In | In val mapping, there are two additivities of relative errors. | ||
First, for the same edo, a ratio which is the product of some other ratios have their relative errors additive, that is, if ''r''<sub>3</sub> = ''r''<sub>1</sub>''r''<sub>2</sub> for ''n'', then ''e'' (''n'', ''r''<sub>3</sub>) = ''e'' (''n'', ''r''<sub>1</sub>) + ''e'' (''n'', ''r''<sub>2</sub>). | First, for the same edo, a ratio which is the product of some other ratios have their relative errors additive, that is, if ''r''<sub>3</sub> = ''r''<sub>1</sub>''r''<sub>2</sub> for ''n'', then ''e'' (''n'', ''r''<sub>3</sub>) = ''e'' (''n'', ''r''<sub>1</sub>) + ''e'' (''n'', ''r''<sub>2</sub>). | ||
Line 23: | Line 23: | ||
Second, for the same ratio, an edo which is the sum of some other edos have their relative errors additive, that is, if ''n''<sub>3</sub> = ''n''<sub>1</sub> + ''n''<sub>2</sub> for ''r'', then ''e'' (''n''<sub>3</sub>, ''r'') = ''e'' (''n''<sub>1</sub>, ''r'') + ''e'' (''n''<sub>2</sub>'','' ''r''). | Second, for the same ratio, an edo which is the sum of some other edos have their relative errors additive, that is, if ''n''<sub>3</sub> = ''n''<sub>1</sub> + ''n''<sub>2</sub> for ''r'', then ''e'' (''n''<sub>3</sub>, ''r'') = ''e'' (''n''<sub>1</sub>, ''r'') + ''e'' (''n''<sub>2</sub>'','' ''r''). | ||
In either case, if the error exceeds the range -50% to +50%, it indicates that an inconsistency occurs, and there is a discrepancy in val mapping and direct | In either case, if the error exceeds the range -50% to +50%, it indicates that an inconsistency occurs, and there is a discrepancy in val mapping and direct approximation, so is the error. To find the error in direct approximation, modulo the previous result by 100%. | ||
An example of the first additivity is shown as follows. The errors of 2/1, 3/1 and 5/1 in | An example of the first additivity is shown as follows. 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. | ||
Here is an example for the second additivity. The errors of 3/1 for | Here is an example for the second additivity. The errors of 3/1 for 26edo and 27edo are -20.90% and +20.60%, respectively, and their sum -0.30% is the error of 3/1 for 53edo. | ||
== See also == | == See also == | ||
* [[Relative cent]] | * [[Relative cent]] | ||
* [[Relative errors of small | * [[Relative errors of small EDOs]] | ||
[[Category:Terms]] | [[Category:Terms]] | ||
[[Category: | [[Category:Approximation]] | ||
[[Category: | [[Category:Measure]] | ||
[[Category: | [[Category:Relative measure]] |
Revision as of 15:30, 30 August 2021
This article is about the error of intervals measured in relative cents. For the relative error of temperaments, see Tenney-Euclidean temperament measures #TE simple badness.
The relative error of an interval in an edo is the interval's error in cents divided by the cents of an edostep, or equivalently stated, the error in relative cents.
For example, in 24edo, 3/2 has an absolute error of about -2¢, meaning that the nearest interval in the edo is about 2¢ flat of 3/2. One edostep is 50¢, and -2 / 50 = -0.04, therefore the relative error is about -4% or -4 relative cents. In contrast, 12edo has the same absolute error, but a smaller relative error of -2%. (In fact, 12edo's absolute and relative errors are always identical.)
Computation
To find the relative error of any JI interval in direct approximation:
[math]\displaystyle{ e (n, r) = (\text{round} (n \log_2 r) - n \log_2 r) \times 100\% }[/math]
where n is the edo number and r is the targeted frequency ratio.
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 from zero. To obtain the relative error in patent val mapping, first find the relative errors of each prime, and then find the dot product of this vector with the ratio's monzo.
Additivity
In val mapping, there are two additivities of relative errors.
First, for the same edo, a ratio which is the product of some other ratios have their relative errors additive, that is, if r3 = r1r2 for n, then e (n, r3) = e (n, r1) + e (n, r2).
Second, for the same ratio, an edo which is the sum of some other edos have their relative errors additive, that is, if n3 = n1 + n2 for r, then e (n3, r) = e (n1, r) + e (n2, r).
In either case, if the error exceeds the range -50% to +50%, it indicates that an inconsistency occurs, and there is a discrepancy in val mapping and direct approximation, so is the error. To find the error in direct approximation, modulo the previous result by 100%.
An example of the first additivity is shown as follows. 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.
Here is an example for the second additivity. The errors of 3/1 for 26edo and 27edo are -20.90% and +20.60%, respectively, and their sum -0.30% is the error of 3/1 for 53edo.