Module:MOS degrees: Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 179: | Line 179: | ||
function p.mos_degrees_frame(frame) | function p.mos_degrees_frame(frame) | ||
-- Default parameters for input mos and step ratio (5L 2s and 2:1 step ratio) | -- Default parameters for input mos and step ratio (5L 2s and 2:1 step ratio) | ||
local | local input_mos_unparsed = frame.args['Scale Signature'] | ||
local input_mos = mos.parse(input_mos_unparsed) or mos.new(2, 5, 2) | |||
-- Step ratio | -- Step ratio | ||
| Line 192: | Line 193: | ||
local mossteps_per_period = mossteps_per_equave / periods_per_equave | local mossteps_per_period = mossteps_per_equave / periods_per_equave | ||
-- | -- If certain params were left blank and the scalesig is 5L 2s, the default | ||
-- params will be for standard notation | |||
local scale_sig = mos.as_string(input_mos) | local scale_sig = mos.as_string(input_mos) | ||
| Line 206: | Line 208: | ||
udp = p.parse_udp(frame.args['UDP']) | udp = p.parse_udp(frame.args['UDP']) | ||
end | end | ||
local generators_up = udp[1] | |||
local generators_down = udp[2] | |||
-- Get note symbols | -- Get note symbols | ||