Module:MOS degrees: Difference between revisions

Ganaram inukshuk (talk | contribs)
Fixed cent value and step count for the equave
Ganaram inukshuk (talk | contribs)
Fixed a bug related to multi-period mosses (chain lengths should be per period, but the formula didn't divide by the number of periods)
Line 259: Line 259:
-- Ascending and descending chain lengths are hardcoded to be both the same
-- Ascending and descending chain lengths are hardcoded to be both the same
-- and to be 2nx + ny generators (for a mos nxL nys)
-- and to be 2nx + ny generators (for a mos nxL nys)
local asc_chain_length = input_mos.nL * 2 + input_mos.ns
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
local des_chain_length = (input_mos.nL * 2 + input_mos.ns) / periods_per_equave


-- Get the degrees and note names
-- Get the degrees and note names