Module:Ups and downs sharpness: Difference between revisions
Tristanbay (talk | contribs) Added Stein-Zimmerman accidental functionality |
Tristanbay (talk | contribs) fixed for loops |
||
| Line 79: | Line 79: | ||
.. "! Semitones\n" | .. "! Semitones\n" | ||
.. "| '''0'''" | .. "| '''0'''" | ||
for i = 1, | for i = 1, (use_sz and sharp * 4 or sharp * 2) + 1 do | ||
tab = tab .. (i % sharp == 0 and string.format(" || '''%s'''", math.floor(i / sharp)) or string.format(" || {{Simplified fraction|%s|%s|true}}", i, sharp)) | tab = tab .. (i % sharp == 0 and string.format(" || '''%s'''", math.floor(i / sharp)) or string.format(" || {{Simplified fraction|%s|%s|true}}", i, sharp)) | ||
end | end | ||
| Line 87: | Line 87: | ||
.. "! Step offset\n" | .. "! Step offset\n" | ||
.. "| '''0'''" | .. "| '''0'''" | ||
for i = 1, | for i = 1, (use_sz and sharp * 4 or sharp * 2) + 1 do | ||
tab = tab .. string.format((i % sharp == 0 and " || '''%s'''" or " || %s"), i) | tab = tab .. string.format((i % sharp == 0 and " || '''%s'''" or " || %s"), i) | ||
end | end | ||