Module:MOS degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
m Clarified comments
Line 273: Line 273:


-- Calculate the chain lengths
-- Calculate the chain lengths
-- Ascending and descending chain lengths are hardcoded to be both the same
-- Chain lengths should be such that every nominal is shown with +1 and -1
-- and to be 2x + y generators per period (for a mos nxL nys)
-- chroma (EG, C, C#, and Cb), requiring a chain length of 2x+y per period
local asc_chain_length = (input_mos.nL * 2 + input_mos.ns) / periods_per_equave
local asc_chain_length = (input_mos.nL * 2 + input_mos.ns) / periods_per_equave
local des_chain_length = (input_mos.nL * 2 + input_mos.ns) / periods_per_equave
local des_chain_length = (input_mos.nL * 2 + input_mos.ns) / periods_per_equave