Module:Ups and downs notation: Difference between revisions
CompactStar (talk | contribs) No edit summary |
CompactStar (talk | contribs) No edit summary |
||
| Line 47: | Line 47: | ||
chroma = et.size - chroma | chroma = et.size - chroma | ||
end | end | ||
local sharp_flat_swap = is_mavila and (sharp_lowers == nil or sharp_lowers == "") | -- local sharp_flat_swap = is_mavila and (sharp_lowers == nil or sharp_lowers == "") | ||
| Line 86: | Line 86: | ||
local last_major_names = note_names[last_major_note] | local last_major_names = note_names[last_major_note] | ||
for j = 1,(#last_major_names) do | for j = 1,(#last_major_names) do | ||
if | if sharp_lowers then | ||
table.insert(note_names[i], string.rep("^", num_ups) .. last_major_names[j] .. string.rep("b", num_sharps)) | table.insert(note_names[i], string.rep("^", num_ups) .. last_major_names[j] .. string.rep("b", num_sharps)) | ||
else | else | ||
| Line 110: | Line 110: | ||
last_major_names = note_names[last_major_note] | last_major_names = note_names[last_major_note] | ||
for j = 1,(#last_major_names) do | for j = 1,(#last_major_names) do | ||
if | if sharp_lowers then | ||
table.insert(note_names[i], string.rep("v", num_downs) .. last_major_names[j] .. string.rep("#", num_flats)) | table.insert(note_names[i], string.rep("v", num_downs) .. last_major_names[j] .. string.rep("#", num_flats)) | ||
else | else | ||