Module:MOS degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
m Fixed an error, made param naming consistent
Ganaram inukshuk (talk | contribs)
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, prefix, notation)
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)"