Module:MOS degrees: Difference between revisions
No edit summary |
No edit summary |
||
| Line 187: | Line 187: | ||
-- Step ratio | -- Step ratio | ||
local | local step_ratio = p.parse_step_ratio(frame.args['Step Ratio']) or { 2, 1 } | ||
-- Get the number of mossteps per period and equave | -- Get the number of mossteps per period and equave | ||
| Line 209: | Line 206: | ||
udp = { 5, 1 } | udp = { 5, 1 } | ||
end | end | ||
udp = p.parse_udp(frame.args['UDP']) or udp | |||
-- Get note symbols | -- Get note symbols | ||
| Line 223: | Line 218: | ||
end | end | ||
-- If a value was entered, override the default value | -- If a value was entered, override the default value | ||
note_symbols = frame.args['Note Symbols'] or note_symbols | |||
-- Get accidental symbols | -- Get accidental symbols | ||
| Line 295: | Line 288: | ||
-- raising any other root by one period. Repeat for all other periods. | -- raising any other root by one period. Repeat for all other periods. | ||
-- For the last period, add the perfect root as the perfect equave. | -- For the last period, add the perfect root as the perfect equave. | ||
--[[ | |||
for i = 1, periods_per_equave do | for i = 1, periods_per_equave do | ||
-- Add degrees from ascending chain | -- Add degrees from ascending chain | ||
| Line 360: | Line 354: | ||
end | end | ||
end | end | ||
]]-- | |||
result = result .. "|}" | result = result .. "|}" | ||