Template:Infobox ET

From Xenharmonic Wiki
Revision as of 11:21, 18 December 2020 by FloraC (talk | contribs) (Primality should be stated; use real multiplication sign)
Jump to navigation Jump to search
Infobox ET

The template Infobox ET was built to help presenting basic information about EDOs in a unified form, to make them obvious by glance. Also the formatting of the wiki text itself is easier to read and improve when it is obviously structured by this template.

The templates supports the following parameters:

Parameter Meaning, usage hints
Prime factorization Prime factorization of the equal temperament (e.g. 12 = 22 × 3), even if prime per se (e.g. 17 (prime)).
Step size One step (1200/edo) of the equal temperament in cents (5 digits).
Fifth (Fifth type) The best approximation of 3/2, the perfect fifth (P5), in edosteps and in cents. (P5 := round(log2(3/2)*edo))
Major 2nd Size of the 3-limit major second (M2) in edosteps and cents. (M2 := 2*P5 - P8)
Minor 2nd Size of the 3-limit minor second (m2) in edosteps and cents. (m2 := 3*P8 - 5*P5)
Augmented 1sn Size of the 3-limit augmented unison (A1) in edosteps and cents. This is also the sharpness/flatness of the edo. (A1 := M2 - m2)

Usage example for 24edo:

{{Infobox ET
| Prime factorization = 2<sup>3</sup> × 3
| Step size = 50¢
| Fifth = 14\24 = 700¢
| Major 2nd = 4\24 = 200¢
| Minor 2nd = 2\24 = 100¢
| Augmented 1sn = 2\24 = 100¢
}}

Empty (Step size is self-filling) template for copy & paste (to avoid copying wrong values from edo pages:

{{Infobox ET
| Prime factorization = 
| Step size = {{subst:#number_format:{{subst:#expr:1200/{{subst:#regex:{{subst:PAGENAME}}|/(\d+)-?EDO/i|\1}}}}|3}}
| Fifth = 
| Major 2nd = 
| Minor 2nd = 
| Augmented 1sn = 
}}

See also

Todo:

Reach consensus on parameters, see discussion page!