Module:MOS tunings: Difference between revisions

Ganaram inukshuk (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
m re-coded default ratios
Line 155: Line 155:
local mos_abbrev = frame.args["MOS Abbrev"]
local mos_abbrev = frame.args["MOS Abbrev"]
local collapsed  = yesno(frame.args["Collapsed"], false) -- Currently does nothing
local collapsed  = yesno(frame.args["Collapsed"], false) -- Currently does nothing
local step_ratios = tip.parse_numeric_pairs(frame.args["Step Ratios"])
local step_ratios = tip.parse_numeric_pairs(frame.args["Step Ratios"]) or {{2,1}, {3,1}, {3,2}}
-- If the table is size zero, defualt to simple tunings
if #step_ratios == 0 then
step_ratios = tip.parse_numeric_pairs("2/1; 3/1; 3/2")
end
-- Parse scalesig
-- Parse scalesig