Module:Interval table: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 63: | Line 63: | ||
local tuning = frame.args["tuning"] | local tuning = frame.args["tuning"] | ||
local et = ET.parse(tuning) or ET.parse("12edo") | local et = ET.parse(tuning) or ET.parse("12edo") | ||
local debugg = yesno(frame.args["debug"]) | |||
local patent_val = { | local patent_val = { | ||
[2] = ET.approximate(et, 2), | [2] = ET.approximate(et, 2), | ||
| Line 182: | Line 183: | ||
wtext = wtext .. "|}" | wtext = wtext .. "|}" | ||
return frame:preprocess(debugg == true and "<pre>" .. wtext .. "</pre>" or wtext) | return frame:preprocess(debugg == true and "<pre>" .. wtext .. "</pre>" or wtext) | ||
end | end | ||
return p | return p | ||