Module:MOS: Difference between revisions

Sintel (talk | contribs)
import gcd from utils
Sintel (talk | contribs)
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.gcd(nL, ns)
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.gcd(nL, ns)
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)