Module:Infobox MOS: Difference between revisions
m An s |
m Labels; rewording |
||
| Line 136: | Line 136: | ||
local section_entries = { | local section_entries = { | ||
{" | {"[[Step pattern]]", mos.brightest_mode(input_mos)}, | ||
{"[[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 228: | Line 228: | ||
local section_entries = { | local section_entries = { | ||
{"Large | {"Large", string.format("%s to %s (%.1f¢ to %.1f¢)", large_step_min_in_steps, large_step_max_in_steps, large_step_min_in_cents, large_step_max_in_cents)}, | ||
{"Small | {"Small", string.format("%s to %s (%.1f¢ to %.1f¢)", small_step_min_in_steps, large_step_min_in_steps, small_step_min_in_cents, large_step_min_in_cents)} | ||
} | } | ||
| Line 363: | Line 363: | ||
local number_of_periods = utils._gcd(input_mos.nL, input_mos.ns) | local number_of_periods = utils._gcd(input_mos.nL, input_mos.ns) | ||
local | local is_nL_ns = input_mos.nL == number_of_periods and input_mos.ns == number_of_periods | ||
if is_nL_ns then | |||
if | |||
parent_scalesig = "none" | parent_scalesig = "none" | ||
sister_scalesig = sister_scalesig .. " (self)" | |||
end | end | ||
local section_entries = { | local section_entries = { | ||
{"[[Operations_on_MOSes#Sister_MOS | Sister]]", sister_scalesig}, | {"[[Operations_on_MOSes#Sister_MOS | Sister]]", sister_scalesig}, | ||
{"[[Operations_on_MOSes#Parent_MOS | Parent]] | {"[[Operations_on_MOSes#Parent_MOS | Parent]]", parent_scalesig}, | ||
{"[[Operations_on_MOSes#Daughter_MOS | Daughters]] | {"[[Operations_on_MOSes#Daughter_MOS | Daughters]]", soft_scalesig .. ", " .. hard_scalesig} | ||
} | } | ||