Module:MOS gamut: Difference between revisions
No edit summary |
Updated to use parse_notation function from mos notation module |
||
| Line 32: | Line 32: | ||
local generators_up = udp[1] | local generators_up = udp[1] | ||
local generators_down = udp[2] | local generators_down = udp[2] | ||
-- | -- 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 chroma_plus_symbol = | local notation = mosnot.parse_notation(frame.args['Notation']) or notation_default | ||
local chroma_minus_symbol = | local note_symbols = notation['Naturals'] | ||
local chroma_plus_symbol = notation['Sharp'] | |||
local chroma_minus_symbol = notation['Flat'] | |||
-- How long is the inital genchain for notes without accidentals? | -- How long is the inital genchain for notes without accidentals? | ||