Module:Infobox MOS: Difference between revisions

Ganaram inukshuk (talk | contribs)
m An s
Ganaram inukshuk (talk | contribs)
m Labels; rewording
Line 136: Line 136:
local section_entries = {
local section_entries = {
{"Brightest mode", mos.brightest_mode(input_mos)},
{"[[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 (L)", 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)},
{"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 (s)", 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)}
{"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 is_null_large = string.find(parent_scalesig, "0L") and input_mos.nL == number_of_periods
local is_nL_ns = input_mos.nL == number_of_periods and input_mos.ns == number_of_periods
local is_null_small = string.find(parent_scalesig, "0s") and input_mos.ns == number_of_periods
if is_nL_ns then
if is_null_large or is_null_small then
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]] (subset)", parent_scalesig},
{"[[Operations_on_MOSes#Parent_MOS | Parent]]", parent_scalesig},
{"[[Operations_on_MOSes#Daughter_MOS | Daughters]] (supersets)", soft_scalesig .. ", " .. hard_scalesig}
{"[[Operations_on_MOSes#Daughter_MOS | Daughters]]", soft_scalesig .. ", " .. hard_scalesig}
}
}