Module:MOS degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
m Fixed a bug with having no mos prefix
Ganaram inukshuk (talk | contribs)
Fixed bug with default step ratio when step ratio param is blank
Line 251: Line 251:
-- 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 one step ratio
-- of 2/1, for a basic step ratio
-- of 2/1, for a basic step ratio
local step_ratios = p.parse_step_ratios(frame.args['Step Ratio']) or {{ 2, 1 }}
local step_ratios = p.parse_step_ratios(frame.args['Step Ratio']) or { [1] = {5, 2} }
-- Get the number of mossteps per period and equave
-- Get the number of mossteps per period and equave