Module:Ups and downs sharpness: Difference between revisions

Tristanbay (talk | contribs)
replaced spans with pure Wiki markup
Tristanbay (talk | contribs)
removed last column for now to see if that helps with overflow on narrow mobile screens
Line 42: Line 42:
.. "! Step offset\n"
.. "! Step offset\n"
.. "| '''0'''"
.. "| '''0'''"
for i = 1, sharp * 2 + 1 do
for i = 1, sharp * 2 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
Line 95: Line 95:
tab = tab .. "|-\n! Flat symbol\n"
tab = tab .. "|-\n! Flat symbol\n"
for i = 1, sharp * 2 + 1 do
for i = 1, sharp * 2 do
local cs = math.ceil((i / sharp) - 0.5) -- flatness of note
local cs = math.ceil((i / sharp) - 0.5) -- flatness of note
local marg -- margin value for formatting
local marg -- margin value for formatting