Template:Harmonics in equal/doc: Difference between revisions

Sintel (talk | contribs)
No edit summary
Sintel (talk | contribs)
update docs
Line 52: Line 52:
: Default is: "Approximations of harmonics in ''name''". By default, the names for divisions of 2/1, 3/1 and 3/2 will be displayed as 'edo', 'edt' and 'edf' respectively. When the denominator is 1, it will not be displayed.
: Default is: "Approximations of harmonics in ''name''". By default, the names for divisions of 2/1, 3/1 and 3/2 will be displayed as 'edo', 'edt' and 'edf' respectively. When the denominator is 1, it will not be displayed.
; intervals
; intervals
: can be <code>prime</code> for primes, <code>odd</code> for odd harmonics and <code>integer</code> for integer harmonics. By default, edos get primes if they are consistent for the 21-odd limit, otherwise they get odds. Everything that is not edo gets integers.
: Can be <code>prime</code> for primes, <code>odd</code> for odd harmonics and <code>integer</code> for integer harmonics. By default, edos get primes if they are consistent for the odd harmonics up to 21, otherwise they get odds. Everything that is not an edo gets integers.


=== Examples ===
=== Examples ===
Line 83: Line 83:


<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
{{harmonics in equal|13|3|columns=11|start=2|title=Primes in [[13edt]]|intervals = primes}}
{{harmonics in equal|13|3|columns=11|start=2|title=Primes in [[13edt]]|intervals=prime}}
</syntaxhighlight>
</syntaxhighlight>
{{harmonics in equal|13|3|columns=11|start=2|title=Primes in [[13edt]]|intervals = primes}}
{{harmonics in equal|13|3|columns=11|start=2|title=Primes in [[13edt]]|intervals=prime}}


For large divisions ([[313edo]] in this example) the absolute error gets very small. The default precision gets calculated automatically, but if we want to increase it even further, we can set <code>prec</code> to a higher value. This is not recommended generally.
For large divisions ([[313edo]] in this example) the absolute error gets very small. The default precision gets calculated automatically, but if we want to increase it even further, we can set <code>prec</code> to a higher value. This is not recommended generally.