Module:MOS degrees: Difference between revisions
Debugging with hardcoded test values |
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 | ||
-- 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) | ||