User:Plumtree/Infobox Interval: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 13: | Line 13: | ||
* 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>. | * 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>. | ||
** In this form, '''Factorization''', '''Subgroup''', '''Ket'''/'''Monzo''', '''Cents''', '''FJS name''', '''Norms''', '''Harmonic entropy''' are computed automatically. | ** In this form, '''Factorization''', '''Subgroup''', '''Ket'''/'''Monzo''', '''Cents''', '''FJS name''', '''Norms''', '''Harmonic entropy''' are computed automatically. | ||
** 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 when those are <math>\leq 2^{32}</math>, and you might happen to not encounter any problems when those are <math>\leq 2^{53}</math>. With larger numbers, you are almost guaranteed to get inaccurate results. | |||
* Large ratios: <code><nowiki>{{Infobox Interval|Ket=-2 0 0 1}}</nowiki></code>, <code><nowiki>{{Infobox Interval|Monzo=-2 0 0 1}}</nowiki></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''' and '''Norms''' are omitted, '''Factorization''', '''Subgroup''', '''Cents''', '''FJS name''', '''Harmonic entropy''' are computed automatically. | ** In this form, '''Ratio''' and '''Norms''' are omitted, '''Factorization''', '''Subgroup''', '''Cents''', '''FJS name''', '''Harmonic entropy''' are computed automatically. | ||
** When use this form? Whenever numerator or denominator are too large. | |||
* Irrational intervals: <code><nowiki>{{Infobox Interval|Ratio=π|Cents=1981.795}}</nowiki></code>. | * Irrational intervals: <code><nowiki>{{Infobox Interval|Ratio=π|Cents=1981.795}}</nowiki></code>. | ||
** In this form, '''Factorization''', '''Subgroup''', '''Ket'''/'''Monzo''', '''FJS name''', '''Norms''', '''Harmonic entropy''' are omitted. | ** In this form, '''Factorization''', '''Subgroup''', '''Ket'''/'''Monzo''', '''FJS name''', '''Norms''', '''Harmonic entropy''' are omitted. | ||
** When use this form? Whenever the interval is irrational. | |||
The template supports the following parameters: | The template supports the following parameters: | ||