Module:MOS tunings: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 323: | Line 323: | ||
local step_ratios = p.parse_step_ratios(frame.args["Step Ratios"]) | local step_ratios = p.parse_step_ratios(frame.args["Step Ratios"]) | ||
local tolerance = tonumber(frame.args["Tolerance"]) | local tolerance = tonumber(frame.args["Tolerance"]) | ||
local debugg = frame.args["debug"] | local debugg = yesno(frame.args["debug"]) | ||
--local ji_ratios, footnotes = p.parse_ji_ratios(frame.args["JI Ratios"], input_mos.equave) | --local ji_ratios, footnotes = p.parse_ji_ratios(frame.args["JI Ratios"], input_mos.equave) | ||
local out_str = p._mos_tunings(input_mos, mos_prefix, mos_abbrev, step_ratios, ji_ratios, tolerance, footnotes, is_collapsed) | local out_str = p._mos_tunings(input_mos, mos_prefix, mos_abbrev, step_ratios, ji_ratios, tolerance, footnotes, is_collapsed) | ||
return frame:preprocess(debugg == | return frame:preprocess(debugg == true and "<pre>" .. out_str .. "</pre>" or out_str) | ||
end | end | ||