Module:Ups and downs sharpness: Difference between revisions
Tristanbay (talk | contribs) No edit summary |
Tristanbay (talk | contribs) fixed bold and fractional numbering of steps/semitones |
||
| Line 79: | Line 79: | ||
.. "! Semitones\n" | .. "! Semitones\n" | ||
.. "| '''0'''" | .. "| '''0'''" | ||
for i = 1, ( | if use_sz then | ||
for i = 1, sharp * 4 + 1 do | |||
tab = tab .. (i % (sharp * 2) == 0 and string.format(" || '''%s'''", math.floor(i / sharp)) or string.format(" || {{Simplified fraction|%s|%s|true}}", i, sharp * 2)) | |||
end | |||
else | |||
for i = 1, 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)) | |||
end | |||
end | end | ||
else | else | ||
| Line 87: | Line 93: | ||
.. "! Step offset\n" | .. "! Step offset\n" | ||
.. "| '''0'''" | .. "| '''0'''" | ||
for i = 1, ( | if use_sz then | ||
for i = 1, sharp * 4 + 1 do | |||
tab = tab .. string.format((i % (sharp * 2) == 0 and " || '''%s'''" or " || %s"), i) | |||
end | |||
else | |||
for i = 1, sharp * 2 + 1 do | |||
tab = tab .. string.format((i % sharp == 0 and " || '''%s'''" or " || %s"), i) | |||
end | |||
end | end | ||
end | end | ||