Module:Ups and downs notation: Difference between revisions

CompactStar (talk | contribs)
No edit summary
CompactStar (talk | contribs)
No edit summary
Line 77: Line 77:
num_ups = (i - last_major_note)
num_ups = (i - last_major_note)
end
end
local names = note_names[last_major_note]
local last_major_names = note_names[last_major_note]
for name in names do
for j in 0,#last_major_names-1 do
name = string.rep("^", num_ups) .. name .. string.rep("#", num_sharps)
table.insert(note_names[i], string.rep("^", num_ups) .. last_major_names[j] .. string.rep("#", num_sharps))
end
end
note_names[i] = name
end
end
end
end