Module:Ups and downs sharpness: Difference between revisions
Tristanbay (talk | contribs) fixed bold and fractional numbering of steps/semitones |
Tristanbay (talk | contribs) Fix whole-number semitone value displays for SZ option Tags: Mobile edit Mobile web edit |
||
| Line 81: | Line 81: | ||
if use_sz then | if use_sz then | ||
for i = 1, sharp * 4 + 1 do | 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)) | tab = tab .. (i % (sharp * 2) == 0 and string.format(" || '''%s'''", math.floor(i / sharp / 2)) or string.format(" || {{Simplified fraction|%s|%s|true}}", i, sharp * 2)) | ||
end | end | ||
else | else | ||