Module:Ups and downs sharpness: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 12: | Line 12: | ||
local cell_width -- forced cell width in ems | local cell_width -- forced cell width in ems | ||
local arrow_marg = -12.5 | local arrow_marg = -12.5 | ||
local sharp_marg = - | local sharp_marg = -25 | ||
local double_sharp_marg = -20 | local double_sharp_marg = -20 | ||
local flat_marg = -12.5 | local flat_marg = -12.5 | ||
| Line 67: | Line 67: | ||
end | end | ||
else | else | ||
tab = "<div style=\"overflow-x:auto\">\n{| class=\"wikitable center-all\"\n" | tab = "<div style=\"overflow-x: auto;\">\n{| class=\"wikitable center-all\"\n" | ||
.. "|-\n" | .. "|-\n" | ||
.. "! Semitones\n" | .. "! Semitones\n" | ||
| Line 76: | Line 76: | ||
end | end | ||
tab = tab .. "\n|-\n! Sharp symbol\n" | tab = tab .. "\n|-\n! Sharp symbol\n" | ||
.. "| rowspan=\"2\" style=\"white-space:nowrap; width:3em\" | " .. natural_t .. "\n" | .. "| rowspan=\"2\" style=\"white-space: nowrap; width: 3em;\" | " .. natural_t .. "\n" | ||
for i = 1, sharp * 2 do | for i = 1, sharp * 2 do | ||
local cs = math.ceil((i / sharp) - 0.5) -- sharpness of note | local cs = math.ceil((i / sharp) - 0.5) -- sharpness of note | ||