Template:Harmonics in equal/doc: Difference between revisions
m Default number of columns is 10 now |
Update |
||
| Line 3: | Line 3: | ||
=== Usage === | === Usage === | ||
==== Simple ==== | ==== Simple ==== | ||
| Line 9: | Line 8: | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{Harmonics in equal|<EDO number>}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 15: | Line 14: | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{Harmonics in equal|<steps>|<numerator>|<denominator>}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 22: | Line 21: | ||
==== Advanced ==== | ==== Advanced ==== | ||
The template takes up to | The template takes up to 9 arguments: | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{Harmonics in equal | ||
| steps = <number of steps> | | steps = <number of steps> | ||
| num = <numerator> | | num = <numerator> | ||
| Line 34: | Line 33: | ||
| title = <your title> | | title = <your title> | ||
| intervals = <interval list name> | | intervals = <interval list name> | ||
| collapsed = <true/false> | |||
}} | }} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 53: | Line 53: | ||
; 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 odd harmonics up to 21, otherwise they get odds. Everything that is not an 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. | ||
; collapsed | |||
: <code>true</code> or <code>false</code> to collapse the table. Default: false. | |||
=== Examples === | === Examples === | ||
| Line 61: | Line 63: | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{Harmonics in equal|31}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{ | {{Harmonics in equal|31}} | ||
For tritave or other integer divisions, two arguments is enough: | For tritave or other integer divisions, two arguments is enough: | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{Harmonics in equal|13|3}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{ | {{Harmonics in equal|13|3}} | ||
In the most general case, we can input the number of steps, numerator and denominator. | In the most general case, we can input the number of steps, numerator and denominator. | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{Harmonics in equal|15|7|3}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{ | {{Harmonics in equal|15|7|3}} | ||
==== Advanced ==== | ==== Advanced ==== | ||
| Line 83: | Line 85: | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{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=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. | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
{{ | {{Harmonics in equal|313|columns=9|start=2}} | ||
{{ | {{Harmonics in equal|313|columns=9|start=2|prec=5|title=Same with prec=5}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{ | {{Harmonics in equal|313|columns=9|start=2}} | ||
{{ | {{Harmonics in equal|313|columns=9|start=2|prec=5|title=Same with prec=5}} | ||