Module:MOS degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
Moved notation parsing to the function to be called by the template
Ganaram inukshuk (talk | contribs)
mNo edit summary
Line 460: Line 460:


-- Separate function for testing; the main "frame" function will call this
-- Separate function for testing; the main "frame" function will call this
function p.mos_degrees(input_mos, step_ratios, mos_prefix, show_abbreviations, number_of_alterations, ji_ratios, udp, notation, show_notation)
function p.mos_degrees(input_mos, step_ratios, mos_prefix, show_abbreviations, number_of_alterations, ji_ratios, udp, notation, show_notation_param)
-- Default params; all parameters are already parsed
-- Default params; all parameters are already parsed
local input_mos = input_mos or mos.new(5, 2)
local input_mos = input_mos or mos.new(5, 2)
Line 470: Line 470:
local udp = udp or {5,1}
local udp = udp or {5,1}
local notation = notation or {mosnot.parse_notation("CDEFGAB; #; b")}
local notation = notation or {mosnot.parse_notation("CDEFGAB; #; b")}
local show_notation = show_notation == 1
local show_notation = show_notation_param == 1
-- Get the scale sig
-- Get the scale sig