Template:Harmonics in equal/doc: Difference between revisions

Sintel (talk | contribs)
Created page with "<includeonly><hr><small>Documentation transcluded from /doc</small></includeonly> === Usage === ==== Simple ==== For divisions of the octave (EDO), you can use one u..."
 
Sintel (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly><hr><small>Documentation transcluded from [[/doc]]</small></includeonly>
<includeonly><hr><small>Documentation transcluded from [[/doc]]</small></includeonly>
This template generates a table for prime approximations in [[Equal-step tuning|equal-step tunings]].
=== Usage ===
=== Usage ===


==== Simple ====
==== Simple ====


For divisions of the octave ([[EDO]]), you can use one unnamed argument:
For divisions of the octave ([[edo]]), you can use one unnamed argument:


<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
Line 10: Line 12:
</syntaxhighlight>
</syntaxhighlight>


For other division, you can use two or three unnamed arguments:
For other divisions, you can use two or three unnamed arguments:


<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
Line 39: Line 41:
* columns: number of primes to include, the default (8) means 2, 3, 5, 7, 11, 13, 17, 19
* columns: number of primes to include, the default (8) means 2, 3, 5, 7, 11, 13, 17, 19
* start: Default is 1 (which means the prime 2), set to 2 to skip the octave.
* start: Default is 1 (which means the prime 2), set to 2 to skip the octave.
* prec: Precision of absolute error (digits after the decimal point), default is estimated by EDO magnitude
* prec: Precision of absolute error (digits after the decimal point), default is estimated according to the step size.
* title: Default is: "Approximations of prime intervals in ''name''"
* title: Default is: "Approximations of prime intervals 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.


=== Examples ===
=== Examples ===
Line 63: Line 65:


<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
{{primes in equal|10|7|4}}
{{primes in equal|15|7|3}}
</syntaxhighlight>
</syntaxhighlight>
{{primes in equal|10|7|4}}
{{primes in equal|15|7|3}}


==== Advanced ====
==== Advanced ====