Module:MOS degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
Dropped mos-ordinal support
Line 355: Line 355:
-- Get notational options
-- Get notational options
-- If the scale sig is 5L 2s, then use ordinal numbering and no mosprefix
-- Typing in "NONE" will have no prefix added
local degree_notation = "mosdegree"
local mos_prefix = "mos" -- TODO: add prefix lookup
local mos_prefix = "mos" -- TODO: add prefix lookup
if scale_sig == "5L 2s" then
degree_notation = "ordinal"
mos_prefix = ""
end
if string.len(frame.args['Degree Notation']) > 0 then
degree_notation = frame.args['Degree Notation']
end
if frame.args['MOS Prefix'] == "NONE" then
if frame.args['MOS Prefix'] == "NONE" then
mos_prefix = ""
mos_prefix = ""
Line 391: Line 381:


-- Get the degrees and note names
-- Get the degrees and note names
local degrees    = p.preprocess_degrees  (input_mos, asc_chain_length, des_chain_length, mos_prefix, degree_notation)
local degrees    = p.preprocess_degrees  (input_mos, asc_chain_length, des_chain_length, mos_prefix)
local note_names = p.preprocess_note_names(input_mos, udp, note_symbols, sharp_symbol, flat_symbol, asc_chain_length, des_chain_length)
local note_names = p.preprocess_note_names(input_mos, udp, note_symbols, sharp_symbol, flat_symbol, asc_chain_length, des_chain_length)