Module:MOS degrees: Difference between revisions
Trying something with default params |
No edit summary |
||
| Line 37: | Line 37: | ||
local generators_up = udp[1] | local generators_up = udp[1] | ||
local generators_down = udp[2] | local generators_down = udp[2] | ||
-- Get note symbols | -- Get note symbols | ||
| Line 44: | Line 43: | ||
-- This order of operations allows for overriding standard notation for 5L 2s | -- This order of operations allows for overriding standard notation for 5L 2s | ||
local note_symbols_main = "JKLMNOPQRSTUVWXYZ" | local note_symbols_main = "JKLMNOPQRSTUVWXYZ" | ||
local | local note_symbols = string.sub(note_symbols_main, 1, mossteps_per_equave) | ||
if scale_sig == "5L 2s" then | if scale_sig == "5L 2s" then | ||
note_symbols = "CDEFGAB" | |||
end | |||
-- If a value was entered, override the default value | |||
if string.len(frame.args['Note Symbols']) > 0 then | |||
note_symbols = frame.args['Note Symbols'] | |||
end | end | ||
-- Get accidental symbols | -- Get accidental symbols | ||
| Line 54: | Line 56: | ||
-- unless the mos is 5L 2s, then it's sharp and flat # and b | -- unless the mos is 5L 2s, then it's sharp and flat # and b | ||
-- This order of operations allows for overriding standard notation for 5L 2s | -- This order of operations allows for overriding standard notation for 5L 2s | ||
local | local chroma_plus_symbol = "&" | ||
local | local chroma_minus_symbol = "@" | ||
if scale_sig == "5L 2s" then | if scale_sig == "5L 2s" then | ||
chroma_plus_symbol = "#" | |||
chroma_minus_symbol = "b" | |||
end | |||
-- If value(s) were entered, override the default values | |||
if string.len(frame.args['Sharp Symbol']) > 0 then | |||
chroma_plus_symbol = frame.args['Sharp Symbol'] | |||
end | |||
if string.len(frame.args['Flat Symbol']) > 0 then | |||
chroma_minus_symbol = frame.args['Flat Symbol'] | |||
end | end | ||
-- Override values for testing | -- Override values for testing | ||