Module:Infobox ET: Difference between revisions
m Distinct consistency limit optimisation |
m Highly melodic ETs: test |
||
Line 32: | Line 32: | ||
function p.infobox_ET(frame) | function p.infobox_ET(frame) | ||
-- debug mode | |||
local debug_mode = frame.args['debug'] ~= nil | |||
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') | ||
Line 128: | Line 131: | ||
distinct_consistency | distinct_consistency | ||
}) | }) | ||
end | |||
if debug_mode then | |||
if ET.is_highly_melodic(et) then | |||
table.insert(infobox_data, { | |||
'Highly melodic?', | |||
ET.why_highly_melodic(et) | |||
}) | |||
end | |||
end | end | ||