Module:MOS degrees: Difference between revisions
No edit summary |
Fixed cent value and step count for the equave |
||
| Line 162: | Line 162: | ||
local cent_value = utils._round_dec(et.cents(et_for_mos, estep_count), round) | local cent_value = utils._round_dec(et.cents(et_for_mos, estep_count), round) | ||
-- If the cent value is 0, | -- If the cent value is 0, replace it with the cents for the equave | ||
-- If the step count is 0, replace it with the steps for the equave | |||
-- If any one is true, the other will be true, so one condition | |||
-- needs to be checked | |||
if cent_value == 0 then | if cent_value == 0 then | ||
cent_value = utils._round_dec(rat.cents(input_mos.equave), round) | cent_value = utils._round_dec(rat.cents(input_mos.equave), round) | ||
estep_count = esteps_per_period | |||
end | end | ||