Module:Harmonic entropy: Difference between revisions
m Bug fixing |
parse_ET recognizes integers as edos by default |
||
| Line 49: | Line 49: | ||
local size, equave | local size, equave | ||
-- size defaults to 12 | -- size defaults to 12 | ||
size = input:match("([0-9]+) | size = input:match("^([0-9]+)") or 12 | ||
if input:match("^[0-9]*[%-]?ed[fot]$") then | if input:match("^[0-9]*[%-]?ed[fot]$") then | ||
equave = equaves[tostring(input:match("[fot]"))] | equave = equaves[tostring(input:match("[fot]"))] | ||