Module:Sharpness documentation: Difference between revisions
m Wording and style |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 16: | Line 16: | ||
if s == 0 then | if s == 0 then | ||
out_str = out_str | out_str = out_str | ||
.. "for {{EDOs| 7, 14, 21, 28, and 35 }} [[equal divisions of the octave]]. Since these tunings temper out the Pythagorean apotome ([[2187/2048]]), the traditional sharps and flats have no effect on the pitch." | .. "for {{EDOs| 7, 14, 21, 28, and 35 }} [[equal divisions of the octave]]. " | ||
.. "Since these tunings temper out the Pythagorean apotome ([[2187/2048]]), " | |||
.. "the traditional sharps and flats have no effect on the pitch." | |||
else | else | ||
out_str = out_str | out_str = out_str | ||
.. "where a sharp " .. ((s < 0) and {"lowers"} or {"raises"})[1] .. " by " .. math.abs(s) .. " step" | .. "for [[EDO]]s where a sharp " | ||
.. ((s < 0) and {"lowers"} or {"raises"})[1] .. " by " .. math.abs(s) .. " step" | |||
if math.abs(s) ~= 1 then | if math.abs(s) ~= 1 then | ||
| Line 29: | Line 32: | ||
if notation == "" then | if notation == "" then | ||
if s >= 3 then | if s >= 3 then | ||
out_str = out_str .. " It is based on [[ups and downs notation]] | out_str = out_str .. " It is based on [[ups and downs notation]] using " | ||
.. (s % 2 == 0 | |||
and "sharps, flats, and Stein–Zimmerman [[24edo#Notation|quarter tone]] accidentals " | |||
or "sharps and flats ") | |||
out_str = out_str .. "with arrows via [[Helmholtz–Ellis notation|Helmholtz–Ellis just intonation accidentals]]." | |||
end | end | ||
else | else | ||
| Line 62: | Line 64: | ||
end | end | ||
return frame:preprocess(out_str) | local debugg = frame.args["debug"] | ||
return frame:preprocess(debugg == "true" and "<pre>" .. out_str .. "</pre>" or out_str) | |||
end | end | ||
return p | return p | ||