Module:Infobox interval: Difference between revisions
Make harmonic entropy display opt-in |
+ space between number and cent symbol |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 91: | Line 91: | ||
prime_limit = rat.max_prime(ratio) | prime_limit = rat.max_prime(ratio) | ||
end | end | ||
cats = cats | cats = cats .. "[[Category:" .. prime_limit .. "-limit intervals]]" | ||
else | else | ||
cats = cats .. "[[Category:Irrational intervals]]" | cats = cats .. "[[Category:Irrational intervals]]" | ||
| Line 152: | Line 152: | ||
-- there was a subsequence of 4+ zeros | -- there was a subsequence of 4+ zeros | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"[[ | "[[Subgroup monzos and vals|Subgroup monzo]]", | ||
rat.as_subgroup_ket(ratio, frame), | rat.as_subgroup_ket(ratio, frame), | ||
}) | }) | ||
| Line 183: | Line 183: | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"Size in [[cent]]s", | "Size in [[cent]]s", | ||
utils._round(cents, 7) .. "¢", | utils._round(cents, 7) .. " ¢", | ||
}) | }) | ||
end | end | ||
| Line 218: | Line 218: | ||
if value_provided(colour_name) then | if value_provided(colour_name) then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"[[ | "[[Kite's color notation|Color name]]", | ||
colour_name, | colour_name, | ||
}) | }) | ||
| Line 265: | Line 265: | ||
if rational and regular then | if rational and regular then | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"[[Tenney | "[[Tenney norm]] (log<sub>2</sub> ''nd'')", | ||
utils._round(rat.tenney_height(ratio), 6), | utils._round(rat.tenney_height(ratio), 6), | ||
}) | }) | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"[[Weil | "[[Weil norm]] (log<sub>2</sub> max(''n'', ''d''))", | ||
utils._round(rat.weil_height(ratio), 6), | utils._round(rat.weil_height(ratio), 6), | ||
}) | }) | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
"[[Wilson | "[[Wilson norm]] (sopfr(''nd''))", | ||
utils._round(rat.wilson_height(ratio), 6), | utils._round(rat.wilson_height(ratio), 6), | ||
}) | }) | ||