Module:MOS: Difference between revisions
import gcd from utils |
use raw gcd instead |
||
| Line 135: | Line 135: | ||
local nL = mos.nL | local nL = mos.nL | ||
local ns = mos.ns | local ns = mos.ns | ||
local d = utils. | local d = utils._gcd(nL, ns) | ||
if d > 1 then -- use single period mos, with period as new equave | if d > 1 then -- use single period mos, with period as new equave | ||
nL = round(nL/d) | nL = round(nL/d) | ||
| Line 163: | Line 163: | ||
local nL = mos.nL | local nL = mos.nL | ||
local ns = mos.ns | local ns = mos.ns | ||
local d = utils. | local d = utils._gcd(nL, ns) | ||
if d > 1 then -- use single period mos, with period as new equave | if d > 1 then -- use single period mos, with period as new equave | ||
nL = round(nL/d) | nL = round(nL/d) | ||