Module:MOS degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
Debugging with hardcoded test values
Ganaram inukshuk (talk | contribs)
No edit summary
Line 192: Line 192:
step_ratio = p.parse_step_ratio(frame.args['Step Ratio'])
step_ratio = p.parse_step_ratio(frame.args['Step Ratio'])
end
end
-- Get the number of mossteps per period and equave
local mossteps_per_equave = input_mos.nL + input_mos.ns
local periods_per_equave = rat.gcd(input_mos.nL, input_mos.ns)
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)
-- The default UDP corresponds to the middle mode. For mosses with an even
-- The default UDP corresponds to the middle mode. For mosses with an even
Line 254: Line 245:
local chroma_plus_symbol = "#"
local chroma_plus_symbol = "#"
local chroma_minus_symbol = "b"
local chroma_minus_symbol = "b"
-- Get the number of mossteps per period and equave
local mossteps_per_equave = input_mos.nL + input_mos.ns
local periods_per_equave = rat.gcd(input_mos.nL, input_mos.ns)
local mossteps_per_period = mossteps_per_equave / periods_per_equave
-- Get the scale sig
local scale_sig = mos.as_string(input_mos)
-- How long are the initial genchain lengths? (These correspond to the UDP)
-- How long are the initial genchain lengths? (These correspond to the UDP)