Module:MOS notation: Difference between revisions
m Accidental counts in existing templates are displaying incorrect values, accidentals_to_add code calculation code corrected (hopefully), with comments clarifying the code |
m Fixed issue with hyphens appearing in abbreviated mosdegree names |
||
| Line 243: | Line 243: | ||
else | else | ||
if notation == "mosstep" then | if notation == "mosstep" then | ||
degree_name = mossteps | degree_name = mossteps .. prefix .. "s" | ||
elseif notation == "mosdegree" then | elseif notation == "mosdegree" then | ||
degree_name = mossteps | degree_name = mossteps .. prefix .. "d" | ||
elseif notation == "ordinal" then | elseif notation == "ordinal" then | ||
-- Add a dash between the prefix and ordinal, if a prefix is given | -- Add a dash between the prefix and ordinal, if a prefix is given | ||