Module:Infobox MOS: Difference between revisions
Quickly added a limit to how long step patterns can be (limit is 40) |
mNo edit summary |
||
| Line 120: | Line 120: | ||
-- a larger array. | -- a larger array. | ||
function p.scale_structure(input_mos) | function p.scale_structure(input_mos) | ||
local input_mos = input_mos or mos.new(5, | local input_mos = input_mos or mos.new(5, 2) | ||
local equave_as_string = rat.as_ratio(input_mos.equave) | local equave_as_string = rat.as_ratio(input_mos.equave) | ||
| Line 141: | Line 141: | ||
local section_entries = { | local section_entries = { | ||
{"[[Step pattern]]", | {"[[Step pattern]]", brightest_mode}, | ||
{"[[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)} | ||