Module:Infobox MOS: Difference between revisions
Fixed output for stepcount > 40 |
"step pattern examples" -> "step pattern"; simplified code for tamnams info |
||
| Line 143: | Line 143: | ||
local section_entries = { | local section_entries = { | ||
{string.format("<b>%s</b>", section_header)}, | {string.format("<b>%s</b>", section_header)}, | ||
{"[[Step pattern]]", step_pattern}, | |||
{"[[Step pattern]] | |||
{"[[Equave]]", string.format("%s (%.1f¢)", equave_as_string, equave_in_cents)}, | {"[[Equave]]", string.format("%s (%.1f¢)", equave_as_string, equave_in_cents)}, | ||
{"[[Period]]", string.format("%s (%.1f¢)", period_as_string, period_in_cents)} | {"[[Period]]", string.format("%s (%.1f¢)", period_as_string, period_in_cents)} | ||
| Line 316: | Line 315: | ||
-- Mos has a tamnams name | -- Mos has a tamnams name | ||
section_entries = { | section_entries = { | ||
{section_header}, | |||
{"[[TAMNAMS#Mos_pattern_names | Name]]", tamnams_name}, | {"[[TAMNAMS#Mos_pattern_names | Name]]", tamnams_name}, | ||
{"[[TAMNAMS#Mos_pattern_names | Prefix]]", tamnams_prefix}, | {"[[TAMNAMS#Mos_pattern_names | Prefix]]", tamnams_prefix}, | ||
| Line 321: | Line 321: | ||
} | } | ||
elseif not is_within_named_range and notecount > 10 and not is_root_mos then | elseif not is_within_named_range and notecount > 10 and not is_root_mos then | ||
-- Mos | -- Mos is a non-root mos and has a tamnams-named ancestor | ||
local ancestor_mos, lg_chunk, sm_chunk, generations = p.find_mos_ancestor(input_mos) | local ancestor_mos, lg_chunk, sm_chunk, generations = p.find_mos_ancestor(input_mos) | ||
local ancestor_scalesig = mos.as_string(ancestor_mos) | local ancestor_scalesig = mos.as_string(ancestor_mos) | ||
| Line 333: | Line 333: | ||
section_entries = { | section_entries = { | ||
{section_header}, | |||
{"Descends from", ancestor_entry} | {"Descends from", ancestor_entry} | ||
} | } | ||