Module:MOS degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
No edit summary
Line 243: Line 243:
chroma_minus_symbol = frame.args['Flat Symbol']
chroma_minus_symbol = frame.args['Flat Symbol']
end
end
-- Override values for testing
-- Override values for testing
--[[
local input_mos = mos.new(5, 2, 2)
local input_mos = mos.new(5, 2, 2)
local step_ratio = { 2, 1 }
local step_ratio = { 2, 1 }
Line 256: Line 256:
local mossteps_per_period = mossteps_per_equave / periods_per_equave
local mossteps_per_period = mossteps_per_equave / periods_per_equave
local scale_sig = mos.as_string(input_mos)
local scale_sig = mos.as_string(input_mos)
]]--
-- How long are the initial genchain lengths? (These correspond to the UDP)
-- How long are the initial genchain lengths? (These correspond to the UDP)
Line 333: Line 334:
-- Add the row
-- Add the row
result = result .. "|- " .. degree_name .. " || " .. estep_count .. " || " .. cent_value .. " || " .. note_name .. "\n"
result = result .. "|-\n"
result = result .. "| " .. degree_name .. "\n"
result = result .. "| " .. estep_count .. "\n"
result = result .. "| " .. cent_value .. "\n"
result = result .. "| " .. note_name   .. "\n"
end
end
Line 370: Line 375:
-- Add the row
-- Add the row
result = result .. "|- " .. degree_name .. " || " .. estep_count .. " || " .. cent_value .. " || " .. note_name .. "\n"
result = result .. "|-\n"
result = result .. "| " .. degree_name .. "\n"
result = result .. "| " .. estep_count .. "\n"
result = result .. "| " .. cent_value .. "\n"
result = result .. "| " .. note_name   .. "\n"
end
end
end
end