Template:Infobox interval/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
m Cleanup on unnecessary formatting tricks and escaped characters
Line 2: Line 2:
=== Usage ===
=== Usage ===
There are three different ways to use this template:
There are three different ways to use this template:
* Small ratios: <code>{{<nowiki />Infobox Interval}}</code> (the ratio is inferred from page name), <code>{{<nowiki />Infobox Interval|7/4}}</code>, <code>{{<nowiki />Infobox Interval|Ratio=7/4}}</code>.
* Small ratios: <code><nowiki>{{Infobox Interval}}</nowiki></code> (the ratio is inferred from page name), <code><nowiki>{{Infobox Interval|7/4}}</nowiki></code>, <code><nowiki>{{Infobox Interval|Ratio=7/4}}</nowiki></code>.
** When use this form? In most cases, whenever both numerator and denominator of the ratio are small enough to fit within Lua numbers as integers. You should not encounter any problems with integers up to {{nowrap|2<sup>32</sup> &minus; 1}}, and you might happen to not encounter any problems when those are 2<sup>53</sup>. With larger numbers, you are almost guaranteed to get inaccurate results.
** When use this form? In most cases, whenever both numerator and denominator of the ratio are small enough to fit within Lua numbers as integers. You should not encounter any problems with integers up to {{nowrap|2<sup>32</sup> &minus; 1}}, and you might happen to not encounter any problems when those are 2<sup>53</sup>. With larger numbers, you are almost guaranteed to get inaccurate results.
* Large ratios: <code>{{<nowiki />Infobox Interval|Ket=-2 0 0 1}}</code>, <code>{{<nowiki />Infobox Interval|Monzo=-2 0 0 1}}</code>.
* Large ratios: <code><nowiki>{{Infobox Interval|Ket=-2 0 0 1}}</nowiki></code>, <code><nowiki>{{Infobox Interval|Monzo=-2 0 0 1}}</nowiki></code>.
** In this form, '''Ratio''' (unless you specify it explicitly, in which case it will be printed as is) and most norms are omitted.
** In this form, '''Ratio''' (unless you specify it explicitly, in which case it will be printed as is) and most norms are omitted.
** When use this form? Whenever numerator or denominator are too large.
** When use this form? Whenever numerator or denominator are too large.
* Irrational intervals: <code>{{<nowiki />Infobox Interval|Ratio=\pi|Cents=1981.795}}</code>.
* Irrational intervals: <code><nowiki>{{Infobox Interval|Ratio=\pi|Cents=1981.795}}</nowiki></code>.
** In this form, '''Factorization''', '''Subgroup''', '''Monzo''' (unless you specify it explicitly), '''FJS name''', norms are omitted.
** In this form, '''Factorization''', '''Subgroup''', '''Monzo''' (unless you specify it explicitly), '''FJS name''', norms are omitted.
** When use this form? Whenever the interval is irrational.
** When use this form? Whenever the interval is irrational.
Line 30: Line 30:
| Ratio
| Ratio
| 1, Ratio
| 1, Ratio
| Frequency [[ratio]] of the interval. Specified explicitly, derived from page name or omitted. For irrational intervals, a LaTeX expression describing the interval (without <code>&lt;math&gt;</code>).
| Frequency [[ratio]] of the interval. Specified explicitly, derived from page name or omitted. For irrational intervals, a LaTeX expression describing the interval (without <code><nowiki><math></nowiki></code>).
|-
|-
| Factorization
| Factorization
Line 50: Line 50:
| Name
| Name
| Name
| Name
| Name(s) of the interval. Pages with missing values go into [[:Category:Todo:add interval name]]. You should not put any <code><<nowiki />br /></code> tags between names here; it will be done automatically.
| Name(s) of the interval. Pages with missing values go into [[:Category:Todo:add interval name]]. You should not put any <code><nowiki><br></nowiki></code> tags between names here; it will be done automatically.
|-
|-
| [[Kite's color notation|Color name]]
| [[Color notation|Color name]]
| Color name
| Color name
| Color name after [[Kite's color notation]] in the form: <code>written form, spoken form</code>. For color names see also [[Gallery of just intervals]]. Pages with missing values go into [[:Category:Todo:add color name]]. Default: omitted.
| Color name after Kite's [[color notation]] in the form: <code>written form, spoken form</code>. For color names see also [[Gallery of just intervals]]. Pages with missing values go into [[:Category:Todo:add color name]]. Default: omitted.
|-
|-
| [[Functional Just System|FJS name]]
| [[Functional Just System|FJS name]]
Line 62: Line 62:
| Special properties
| Special properties
|
|
| Currently implemented: [[Superparticular interval|superparticular]] and [[square superparticular]] for small ratios, [[harmonic]]s and [[subharmonic]]s, including reduced ones, whether a ratio is [[octave reduction|reduced]].
| Currently implemented: [[superparticular interval|superparticular]] and [[square superparticular]] for small ratios, [[harmonic]]s and [[subharmonic]]s, including reduced ones, whether a ratio is [[octave reduction|reduced]].
|-
|-
| [[Tenney height]]
| [[Tenney height]]
Line 78: Line 78:
| [[Harmonic entropy]]
| [[Harmonic entropy]]
|
|
| Harmonic entropy approximation (Shannon, <math>\sqrt{n\cdot d}</math> weights, <math>200\text{-integer limit}\cap\{x\mid\left|\left|x\right|\right|\leq 100\}</math>). Derived from '''Ratio''', '''Monzo''', or '''Cents'''.
| Harmonic entropy approximation (Shannon, <math>\sqrt{nd}</math> weights, <math>200\text{-integer limit} \cap \left\lbrace x \mid \left\Vert x \right\Vert \leq 100 \right\rbrace</math>). Derived from '''Ratio''', '''Monzo''', or '''Cents'''.
|-
|-
| [[Comma|Comma size]]
| [[Comma|Comma size]]
Line 140: Line 140:
=== See also ===
=== See also ===
* {{modlink}}
* {{modlink}}
* [[Template:Infobox ET]]
* [[Template: Infobox ET]]
* [[xen-calc]] &ndash; The according page of that tool gets linked automatically for rational intervals.
* [[xen-calc]] The according page of that tool gets linked automatically for rational intervals.


<!-- interwiki -->
<!-- interwiki -->
[[de:Vorlage:Infobox Intervall]]
[[de:Vorlage:Infobox Intervall]]