Module:MOS degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
Fixed bug with default step ratio when step ratio param is blank
Ganaram inukshuk (talk | contribs)
No edit summary
Line 249: Line 249:
-- Step ratios
-- Step ratios
-- Up to three step ratios can be entered; the default is one step ratio
-- Up to three step ratios can be entered; the default is only 2/1
-- of 2/1, for a basic step ratio
-- Had to use parse function to make sure the default works
local step_ratios = p.parse_step_ratios(frame.args['Step Ratio']) or { [1] = {5, 2} }
local step_ratios = p.parse_step_ratios(frame.args['Step Ratio']) or p.parse_step_ratios("2/1")
-- Get the number of mossteps per period and equave
-- Get the number of mossteps per period and equave