Module:MOS degrees: Difference between revisions
No edit summary |
Notation is now passed in as one parameter, as a semicolon-delimited string (EG, "CDEFGAB; #; b") |
||
| Line 271: | Line 271: | ||
end | end | ||
local udp = mosnot.parse_udp(frame.args['UDP']) or udp_default | local udp = mosnot.parse_udp(frame.args['UDP']) or udp_default | ||
-- Get genchain extend value | -- Get genchain extend value | ||
| Line 295: | Line 281: | ||
local genchain_extend_dn = genchain_extend[2] or genchain_extend_default | local genchain_extend_dn = genchain_extend[2] or genchain_extend_default | ||
-- Get | -- Get notation: naturals (or nominals), sharp symbol, and flat symbol | ||
local notation_default = { ['Naturals'] = string.sub("JKLMNOPQRSTUVWXYZ", 1, mossteps_per_equave), ['Sharp'] = "&", ['Flat'] = "@" } | |||
local | |||
if scale_sig == "5L 2s" then | if scale_sig == "5L 2s" then | ||
notation_default['Naturals'] = "CDEFGAB" | |||
notation_default['Sharp'] = "#" | |||
notation_default['Flat'] = "b" | |||
end | end | ||
local notation = notation_default or mosnot.parse_notation(frame.args['Notation']) | |||
local note_symbols = notation['Naturals'] | |||
local sharp_symbol = notation['Sharp'] | |||
local flat_symbol = notation['Flat'] | |||
-- Get notational options | -- Get notational options | ||