Module:MOS degrees: Difference between revisions
m Fixed an error, made param naming consistent |
m Notation and prefix was passed to the wrong function; fixed |
||
| Line 70: | Line 70: | ||
-- Find the note name | -- Find the note name | ||
local note_symbol = string.sub(note_symbols, mossteps + 1, mossteps + 1) | local note_symbol = string.sub(note_symbols, mossteps + 1, mossteps + 1) | ||
local note_name = mosnot.mosstep_and_chroma_to_note_name(mossteps, chromas, note_symbol, sharp_symbol | local note_name = mosnot.mosstep_and_chroma_to_note_name(mossteps, chromas, note_symbol, sharp_symbol) | ||
-- Find the degree name | -- Find the degree name | ||
-- If the degree is the perfect 0-mosdegree, append "unison" | -- If the degree is the perfect 0-mosdegree, append "unison" | ||
local degree_name = mosnot.mosstep_and_quality_to_degree(mossteps, quality) | local degree_name = mosnot.mosstep_and_quality_to_degree(mossteps, quality, prefix, notation) | ||
if mossteps == 0 and quality == 0 then | if mossteps == 0 and quality == 0 then | ||
degree_name = degree_name .. " (unison)" | degree_name = degree_name .. " (unison)" | ||