Module:Ups and downs notation: Difference between revisions
CompactStar (talk | contribs) No edit summary |
CompactStar (talk | contribs) No edit summary |
||
| Line 79: | Line 79: | ||
end | end | ||
local last_major_names = note_names[last_major_note] | local last_major_names = note_names[last_major_note] | ||
for j = | for j = 1,(#last_major_names) do | ||
table.insert(note_names[i], string.rep("^", num_ups) .. last_major_names[j] .. string.rep("#", num_sharps)) | table.insert(note_names[i], string.rep("^", num_ups) .. last_major_names[j] .. string.rep("#", num_sharps)) | ||
end | end | ||
| Line 99: | Line 99: | ||
end | end | ||
last_major_names = note_names[last_major_note] | last_major_names = note_names[last_major_note] | ||
for j = | for j = 1,(#last_major_names) do | ||
name = string.rep("v", num_downs) .. last_major_names[j] .. string.rep("b", num_flats) | name = string.rep("v", num_downs) .. last_major_names[j] .. string.rep("b", num_flats) | ||
table.insert(note_names[i], name) | table.insert(note_names[i], name) | ||