Module:Sharpness documentation: Difference between revisions

Fix a copying error
ArrowHead294 (talk | contribs)
mNo edit summary
Line 35: Line 35:
out_str = out_str
out_str = out_str
.. "for [[edo]]s where a sharp "
.. "for [[edo]]s where a sharp "
.. ((s < 0) and {"lowers"} or {"raises"})[1] .. " by " .. math.abs(s) .. " step"
.. ((s < 0) and "lowers" or "raises") .. " by " .. math.abs(s) .. " step"
if math.abs(s) ~= 1 then
if math.abs(s) ~= 1 then
Line 80: Line 80:
.. "</code> will change '''Step offset''' to '''Semitones''' in the case of [["
.. "</code> will change '''Step offset''' to '''Semitones''' in the case of [["
.. sc .. "edo]]"
.. sc .. "edo]]"
.. ((s >= 2) and {", since " .. sc .. "edo is a superset of [[12edo]]."} or {"."})[1]
if (s >= 2) then
out_str = out_str .. ", since " .. sc .. "edo is a superset of [[12edo]]"
end
out_str = out_str .. "."
end
end