Template:Infobox ET: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
m Let Major 2nd stay
ArrowHead294 (talk | contribs)
mNo edit summary
 
(34 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<div style="
<includeonly>{{#invoke: Infobox_ET | infobox_ET
border: 1px solid #999;
| name = Infobox ET
margin: 0;
| tuning = {{{1|{{SUBPAGENAME}}}}}
margin-left: 1em;
| Prime factorization = {{{Prime factorization|}}}
margin-bottom: 0.5em;
| Zeta = {{{Zeta|}}}
padding: 0.5em;
| Consistency = {{{Consistency|}}}
background-color: #f0f0f0;
| Distinct consistency = {{{Distinct consistency|{{{Distinct|}}}}}}
min-width: 15em;
| debug = {{lc:{{{debug|}}}}}
float: right;
}}</includeonly><noinclude>
">
{{documentation}}
{| width="100%" style="border-collapse: collapse;"
|+ '''{{PAGENAME}}'''
|-
{{#if: {{{Prime factorization|{{{Prime Factorization|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Prime factorization
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Prime factorization|{{{Prime Factorization|}}}}}} '''
}}
|-
{{#if: {{{Step size|{{{Step Size|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Step size
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Step size|{{{Step Size|}}}}}}'''
}}
|-
{{#if: {{{Subgroup|}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Subgroup
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Subgroup|}}}'''
}}
|-
{{#if: {{{Fifth type|{{{Fifth Type|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Fifth
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Fifth type|{{{Fifth Type|}}}}}}'''
}}
|-
{{#if: {{{Major 2nd|{{{Major 2nd|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Major 2nd
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Major 2nd|{{{Major 2nd|}}}}}}'''
}}
|-
{{#if: {{{Minor 2nd|{{{Minor 2nd|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Minor 2nd
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Minor 2nd|{{{Minor 2nd|}}}}}}'''
}}
|-
{{#if: {{{Augmented 1sn|{{{Augmented 1sn|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Augmented 1sn
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Augmented 1sn|{{{Augmented 1sn|}}}}}}'''
}}
|-
{{#if: {{{Semitones|{{{Semitones|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Semitones (A1:m2)
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Semitones|{{{Semitones|}}}}}}'''
}}
|-
{{#if: {{{Common uses|{{{Common Uses|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Common uses
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Common uses|{{{Common Uses|}}}}}}'''
}}
|-
{{#if: {{{Important MOS|{{{Important MOSes|}}}}}} |
  {{!}} style="text-align:right; padding-right: 0.25em" {{!}} Important MOSes
  {{!}} style="background-color: white; padding-left: 0.25em" {{!}} '''{{{Important MOS|{{{Important MOSes|}}}}}}'''
}}
|-
{{#if: {{{Example composition|{{{Example Composition|}}}}}} |
  {{!}} colspan="2" style="text-align: center;" {{!}} Tuning showcase {{#if: {{{Composer}}} | (by {{{Composer}}}) }} <br> [[File:{{{Example composition|{{{Example Composition|}}}}}}|270px]]<br/>[[:File:{{{Example composition|{{{Example Composition|}}}}}}|sound info]] {{#if: {{{Score|}}} | <br> [[:File:{{{Score|}}}|score]] }}
}}
|}
</div><includeonly><!-- this includeonly section is for changing parameter names to regular form -->{{#if: {{{Prime Factorization|}}}
| [[Category:Todo:normalize EDO parameters]]}}{{#if: {{{Step Size|}}}
| [[Category:Todo:normalize EDO parameters]]}}{{#if: {{{Fifth Type|}}}
| [[Category:Todo:normalize EDO parameters]]}}{{#if: {{{Common Uses|}}}
| [[Category:Todo:normalize EDO parameters]]}}{{#if: {{{Important MOSes|}}}
| [[Category:Todo:normalize EDO parameters]]}}{{#if: {{{Example Composition|}}}
| [[Category:Todo:normalize EDO parameters]]}}{{#if:{{#regex:{{{Step size|}}}|/[\d.]+(.*)/|\1}}
| [[Category:Todo:normalize EDO parameters]]}}</includeonly><noinclude>


The template '''Infobox ET''' was built to help presenting basic information about [[EDO]]s 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.
[[Category:Infoboxes]]
 
The templates supports the following parameters (highly requested parameters in '''bold'''):
 
{| class="wikitable"
! width="15%" | Parameter
! width="85%" | Meaning, usage hints
|-
| Prime factorization
| Prime factorization of the equal temperament (e.g. 12 = 2<sup>2</sup> * 3)
|-
| '''Subgroup'''
| The [[JI subgroup]] that the equal temperament is a temperament of
|-
| '''Step size'''
| One step of the equal temperament in cents
|-
| Fifth type
| The best approximation of 3/2, in edosteps and in cents. Type of fifth, for edos. (Some possiblities: mavila, 7edo, flattone, meantone, schismic, parapyth, archy, superpyth, 5edo, father). If the edo has more than one type, list all the types, separated by <code>&lt;br&gt;</code>. If a fifth is the same as a fifth in a lower edo, then state that instead.
|-
| Major 2nd
| Size of the 3-limit major 2nd in edosteps and cents. Edosteps are mapped indirectly (so that 16-edo's M2 is 2\16 not 3\16).
|-
| ''Minor 2nd''
| (To be removed) Size of the 3-limit minor 2nd in edosteps and cents. Edosteps are mapped indirectly.
|-
| ''Augmented 1sn''
| (To be removed) Size of the 3-limit augmented unison 2nd in edosteps and cents. Edosteps are mapped indirectly. This is also the sharpness/flatness of the edo.
|-
| Semitones
| Size of the 3-limit augmented unison and minor second in edosteps, mapped indirectly.
|-
| Important MOS
| Important MOS types provided by the edo (but not by any subset), step sizes and number of L and s, period, and generator if the scale has multiple periods per octave; for multiple MOS types separate by <code>&lt;br&gt;</code>
|-
| Common uses
| Common compositional uses of the equal temperament
|-
| Example composition
| MP3 file name of the 1-minute example composition
|-
| ''Composer''
| (only when Example composition given) Composer of the 1-minute example composition
|-
| ''Score''
| (only when Example composition given) Score of the 1-minute example composition
|}
 
Usage example for [[24edo]]:
<nowiki>{{Infobox ET
| Prime factorization = 2<sup>3</sup> * 3
| Subgroup = 2.3.11.13.17.19
| Step size = 50¢
| Fifth type = [[12edo]] 14\24 700¢
| Major 2nd = 4\24
| Semitones = 2:2
| Common uses = Hyperchromatic 12edo, Westernized maqam, semaphore
| Important MOS = semaphore 414144141 (generator: 5\24) <br> mohajira 3434343 (generator: 7\24) <br> mohajira 3313313313 (generator: 7\24)
| Example composition =
| Score =
}}</nowiki>
 
----
 
Empty (Step size is self-filling) template for copy &amp; paste (to avoid copying wrong values from edo pages:
<nowiki>{{Infobox ET
| Prime factorization =
| Subgroup =
| Step size = {{subst:#number_format:{{subst:#expr:1200/{{subst:#regex:{{subst:PAGENAME}}|/(\d+)-?EDO/i|\1}}}}|3}}
| Fifth type =
| Major 2nd =
| Semitones =
| Common uses =
| Important MOS =
| Example composition =
| Score =
}}</nowiki>
 
== See also ==
 
* [[Template:Infobox Interval]]
 
{{todo
| inline=1
| comment=Reach consensus on parameters, see discussion page!
<!-- | cleanup -->
}}
 
[[Category:Templates]]
<!-- interwiki -->
</noinclude>
</noinclude>

Latest revision as of 12:35, 13 June 2025

Template documentation[view] [edit] [history] [purge]
This template should not be substituted.

The Infobox ET template was built to help presenting basic information about equal tunings 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.

Usage

The template should be placed at the beginning of an equal tuning page.

The template automatically fills in the following information (certain entries may be supplied with precomputed information using the keys in the Override column):

Entry Override Meaning and usage notes
ET identifier 1 An identifier of the form XedY, where X is the number of steps and Y is an equave: a non-negative integer, a positive rational number or one of letters signifying a rational number (f= 3/2, o= 2, t= 3). If not provided, the page title is assumed to be such an identifier. If parsing is unsuccessful, 12edo is chosen as a fallback.
Adjacent ETs Links to the previous and the next equal temperaments in the family.
Prime factorization 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 of the equal temperament in cents (6 significant digits). (step size = 1200/X)
Octave The closest approximation of 2/1, the octave (P8), in edosteps and in cents. Hidden for edos. (P8 := round(X/log2(Y)))
Twelfth The closest approximation of 3/1, the twelfth (P12), in edosteps and in cents. Hidden for edos and edts. (P12 := round(X/log3(Y)))
Fifth The closest approximation of 3/2, the perfect fifth (P5), in edosteps and in cents. Shown only for edos. (P5 := P12 - P8))
Semitones Size of the augmented unison (A1) and minor second (m2) in edosteps and cents as generated by the fifth. Shown only for edos.
The A1 is the sharpness of the edo. (A1 := 7 * P12 - 11 * P8; m2 := 8 * P8 - 5 * P12)
Dual sharp fifth For dual-fifths edos (fifth error > 1/3 edostep), the closest sharp approximation of 3/2, in edosteps and in cents.
Dual flat fifth For dual-fifths edos (fifth error > 1/3 edostep), the closest flat approximation of 3/2, in edosteps and in cents.
Dual major 2nd For dual-fifths edos (fifth error > 1/3 edostep), size of the major second (M2) in edosteps and cents as generated by the sharp fifth and the flat fifth. (M2 := P5_flat + P5_sharp - P8)
Consistency Consistency The limit diamond to which the tuning is consistent. This template will stop trying to compute this if the value is at least 43. The following generalization is used for arbitrary equaves: for degree n, all ratios of the form Yab; a, bn, are considered; when an increase of n does not add any new ratios, this degree is skipped.
Distinct consistency Distinct consistency The limit diamond to which the tuning is distinctly consistent. This template will stop trying to compute this if the value is at least 43.
Special properties Zeta If the size is highly composite, an additional entry states the fact. See Highly composite equal division. If the size is within integer sequences associated with zeta peaks, zeta integrals or zeta gaps, an additional entry states the fact. See The Riemann zeta function and tuning. Zeta information is hidden by default, pass the value of yes to display it (if any zeta category applies). Zeta-related categories are included regardless of the zeta display parameter.

Examples

← 11edo 12edo 13edo →
Prime factorization 22 × 3
Step size 100 ¢ (by definition) 
Fifth 7\12 (700 ¢)
(convergent)
Semitones (A1:m2) 1:1 (100 ¢ : 100 ¢)
Consistency limit 9
Distinct consistency limit 5
Special properties

For a regular ET page:

{{Infobox ET}}

Specifying a specific ET from an unrelated page:

{{Infobox ET|7ed5/4|debug=1}}

Note: debug=1 will disable categories.

Supplying precomputed consistency limits when those are too large to be recomputed on each page update:

{{Infobox ET|5407372813edo|Consistency=155|Distinct consistency=155}}

See also

Todo: discuss

Reach consensus on parameters (see discussion page)