Module:TAMNAMS: Difference between revisions
Updated interval/degree quality functions to recognize new format |
m bugfix |
||
| Line 505: | Line 505: | ||
quality = string.format("%d× %s", chroma_abs, quality) | quality = string.format("%d× %s", chroma_abs, quality) | ||
end | end | ||
elseif abbrev_format == "sentence-case" or "SENTENCE-CASE" then | elseif abbrev_format == "sentence-case" or abbrev_format == "SENTENCE-CASE" then | ||
if chroma_count < 0 then | if chroma_count < 0 then | ||
quality = "Diminished" | quality = "Diminished" | ||
| Line 563: | Line 563: | ||
quality = string.format("%d× %s", chroma_abs, quality) | quality = string.format("%d× %s", chroma_abs, quality) | ||
end | end | ||
elseif abbrev_format == "sentence-case" or "SENTENCE-CASE" then | elseif abbrev_format == "sentence-case" or abbrev_format == "SENTENCE-CASE" then | ||
if chroma_abs > 0 and is_positive then | if chroma_abs > 0 and is_positive then | ||
quality = "Augmented" | quality = "Augmented" | ||