Module:Ups and downs notation: Difference between revisions
CompactStar (talk | contribs) No edit summary |
CompactStar (talk | contribs) No edit summary |
||
| Line 118: | Line 118: | ||
function p.ups_and_downs_note_name(frame) | function p.ups_and_downs_note_name(frame) | ||
local et = ET.parse(frame.args['tuning']) or ET.parse('12edo') | return "test" | ||
local step = tonumber(frame.args['step']) | -- local et = ET.parse(frame.args['tuning']) or ET.parse('12edo') | ||
local tbl = p.get_note_names_table(et)[step] | -- local step = tonumber(frame.args['step']) | ||
local result = '' | -- local tbl = p.get_note_names_table(et)[step] | ||
local i = 0 | -- local result = '' | ||
while i < #tbl do | -- local i = 0 | ||
-- while i < #tbl do | |||
end | -- result = result + tbl[i] + ',' | ||
result = result:slice(0, result.len() - 1) | -- end | ||
return result | -- result = result:slice(0, result.len() - 1) | ||
-- return result | |||
end | end | ||
return p | return p | ||