Module:Ups and downs notation: Difference between revisions

CompactStar (talk | contribs)
No edit summary
CompactStar (talk | contribs)
No edit summary
Line 106: Line 106:
for j = 1,(#last_major_names) do
for j = 1,(#last_major_names) do
table.insert(note_names[i], string.rep("v", num_downs) .. last_major_names[j] .. string.rep("b", num_flats))
table.insert(note_names[i], string.rep("v", num_downs) .. last_major_names[j] .. string.rep("b", num_flats))
end
end
end
-- Remove duplicate note names
for i = 0,et.size-1 do
temp = note_names[i]
note_names[i] = {}
hash = {}
for _,v in ipairs(temp) do
if (not hash[v]) then
table.insert(note_names[i], v)
hash[v] = true
end
end
end
end