Module:Sharpness documentation: Difference between revisions
Missing sharpness-(-2) |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 48: | Line 48: | ||
if math.abs(s) == 1 then | if math.abs(s) == 1 then | ||
out_str = out_str .. "is identical to standard notation." | out_str = out_str .. "is identical to standard notation." | ||
else | else | ||
if extension == "" then | if extension == "" then | ||
out_str = out_str .. "[[ups and downs notation]] and comprises sharps, flats, " | if math.abs(s) == 2 then | ||
out_str = out_str .. "comprises sharps, flats, and Stein–Zimmerman [[24edo #Notation|quartertone]] accidentals." | |||
else | |||
out_str = out_str .. "[[ups and downs notation]] and comprises sharps, flats, " | |||
.. (s % 2 == 0 | |||
and "naturals, and Stein–Zimmerman [[24edo #Notation|quartertone]] accidentals " | |||
or "and naturals ") | |||
.. "with arrows from [[Helmholtz–Ellis notation]]." | |||
end | |||
elseif extension == "a" or extension == "A" then -- extension for modern-style ups and downs | elseif extension == "a" or extension == "A" then -- extension for modern-style ups and downs | ||
out_str = out_str .. "is based on [[ups and downs notation]] using separate arrows." | out_str = out_str .. "is based on [[ups and downs notation]] using separate arrows." | ||
| Line 83: | Line 84: | ||
-- display the see also section for sharpness-3 and above | -- display the see also section for sharpness-3 and above | ||
if s >= 3 then | if s >= 3 or (s == 2 and (extension == "a" or extension == "A")) then | ||
out_str = out_str | out_str = out_str | ||
.. "\n\n<h3>See also</h3>\n" | .. "\n\n<h3>See also</h3>\n" | ||