Module:MOS mode degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
m Comments
Ganaram inukshuk (talk | contribs)
Forced mos abbrev to be "m" for udp+alterations
Line 51: Line 51:
-- If a step pattern is provided, it's assumed to be that of a modmos
-- If a step pattern is provided, it's assumed to be that of a modmos
function p._mos_mode_degrees(input_mos, mos_prefix, mode_names, use_default_mode_names, step_pattern)
function p._mos_mode_degrees(input_mos, mos_prefix, mode_names, use_default_mode_names, step_pattern)
local step_pattern = "LsLLsAs"
local is_true_mos = step_pattern == nil
local is_true_mos = step_pattern == nil
Line 76: Line 77:
cpos = tamnams.mos_mode_cpos(input_mos)
cpos = tamnams.mos_mode_cpos(input_mos)
else
else
udps = tamnams.mode_rotation_udps(step_pattern, input_mos)
-- Modmos udps require a mosabbrev; this is forced to be "m" since some
-- abbrevs are tooo long.
udps = tamnams.mode_rotation_udps(step_pattern, input_mos, "m")
for i = 1, #udps do
for i = 1, #udps do
table.insert(cpos, i)
table.insert(cpos, i)
Line 140: Line 143:
-- Add scale degrees with cell coloring
-- Add scale degrees with cell coloring
-- Use "m" for the mos abbrev since some mos abbrevs are too long.
for j = 1, #step_matrices[i] do
for j = 1, #step_matrices[i] do
local current_interval = step_matrices[i][j]
local current_interval = step_matrices[i][j]
local degree_quality = tamnams.decode_quality(current_interval, input_mos, "shortened", "m")
local degree_quality = tamnams.decode_quality(current_interval, input_mos, "shortened")
local cell_color = p.cell_color(current_interval, input_mos)
local cell_color = p.cell_color(current_interval, input_mos)