Module:MOS mode degrees: Difference between revisions
mNo edit summary |
Fixed bug with default name logic |
||
| Line 766: | Line 766: | ||
-- Get the mode names | -- Get the mode names | ||
local mode_names = nil | local mode_names = nil | ||
-- Default names for 5L 2s modes | -- Default names for 5L 2s modes | ||
if scale_sig == "5L 2s" and step_pattern == "LsLLsAs" then | if scale_sig == "5L 2s" and step_pattern == "LsLLsAs" then | ||
| Line 772: | Line 771: | ||
elseif scale_sig == "5L 2s" and #step_pattern == 0 then | elseif scale_sig == "5L 2s" and #step_pattern == 0 then | ||
mode_names = { "Lydian", "Ionian (major)", "Mixolydian", "Dorian", "Aeolian (minor)", "Phrygian", "Locrian" } | mode_names = { "Lydian", "Ionian (major)", "Mixolydian", "Dorian", "Aeolian (minor)", "Phrygian", "Locrian" } | ||
end | end | ||
-- If mode names are given, use those instead | -- If mode names are given, use those instead | ||
-- If using default mode names (scalesig+udp), use that instead | |||
local use_default_names = 0 | |||
if #frame.args['Mode Names'] ~= 0 then | if #frame.args['Mode Names'] ~= 0 then | ||
mode_names = p.parse_entries(frame.args['Mode Names']) | mode_names = p.parse_entries(frame.args['Mode Names']) | ||
elseif frame.args['Mode Names'] == "Default" then | |||
use_default_names = 1 | |||
end | end | ||