Module:MOS: Difference between revisions
No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
nL = tonumber(nL) | nL = tonumber(nL) | ||
ns = tonumber(ns) | ns = tonumber(ns) | ||
equave = | equave = equave:match('^%((.*)-equivalent%)$') or '2/1' -- Assumes this is a rational ratio written a/b | ||
equave = rat.parse(equave) | |||
if nL == nil or ns == nil or equave == nil then | if nL == nil or ns == nil or equave == nil then | ||
return nil | return nil | ||