Module:MOS mode degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
m a variable name
Ganaram inukshuk (talk | contribs)
m Added skeleton code for simplified cell color function
Line 549: Line 549:
return row_colors
return row_colors
end
-- A simplified version of calculate_row_colors
-- Finds the row color for a single cell
function p.cell_color(interval, input_mos)
end
end


Line 560: Line 566:
-- Get the modes as strings
-- Get the modes as strings
local step_patterns = mos.modes_by_brightness(input_mos)
local step_patterns = mos.modes_by_brightness(input_mos)
-- Get the number of mossteps per period and equave, and periods per equave
local mossteps_per_equave = (input_mos.nL + input_mos.ns)
local periods_per_equave = utils._gcd(input_mos.nL, input_mos.ns)
local mossteps_per_period = mossteps_per_equave / periods_per_equave
-- Get the scale sig
-- Get the scale sig
local scale_sig = mos.as_string(input_mos)
local scale_sig = mos.as_string(input_mos)
-- Get the brightness and rotational orderings
-- Get the brightness (UDP) and rotational orderings
-- UDP and rotational order
local brightness_order = p.calculate_mos_mode_brightness_order(input_mos)
local brightness_order = p.calculate_mos_mode_brightness_order(input_mos)
local rotational_order = p.calculate_mos_mode_rotational_order(input_mos)
local rotational_order = p.calculate_mos_mode_rotational_order(input_mos)