Module:MOS: Difference between revisions
No edit summary |
No edit summary |
||
| Line 43: | Line 43: | ||
['9L 1s'] = 'sinatonic' | ['9L 1s'] = 'sinatonic' | ||
} | } | ||
function table_invert(t) | |||
local s={} | |||
for k,v in pairs(t) do | |||
s[v]=k | |||
end | |||
return s | |||
end | |||
-- Create a table that parses a mos string from the TAMNAMS name. | |||
p.parse_name = table_invert(p.tamnams_name) | |||
-- create a MOS structure (nL)L (ns)s <equave> | -- create a MOS structure (nL)L (ns)s <equave> | ||
function p.new(nL, ns, equave) | function p.new(nL, ns, equave) | ||