Module:MOS tunings: Difference between revisions

Ganaram inukshuk (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
mNo edit summary
Line 115: Line 115:
-- 30% of the small step size, and maxes out at 30 cents.
-- 30% of the small step size, and maxes out at 30 cents.
local steps_in_et = input_mos.nL * avg_step_ratio[1] + input_mos.ns * avg_step_ratio[2]
local steps_in_et = input_mos.nL * avg_step_ratio[1] + input_mos.ns * avg_step_ratio[2]
local tolerance = math.min((mos.equave_to_cents(input_mos) / steps_in_et) * 0.30, 30)
local tolerance = math.min((mos.equave_to_cents(input_mos) / steps_in_et) * 0.25, 25)
-- Calculate the cent values for each interval in the modal union
-- Calculate the cent values for each interval in the modal union