mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 03:38:25 +08:00
wavesynth/compute_samples/SplinePhase: fix reduction
This commit is contained in:
parent
1d0fde7f13
commit
40bd101de0
@ -33,7 +33,7 @@ class SplinePhase:
|
|||||||
def next(self):
|
def next(self):
|
||||||
r = self.c[0] + self.c0
|
r = self.c[0] + self.c0
|
||||||
for i in range(len(self.c)-1):
|
for i in range(len(self.c)-1):
|
||||||
self.c[i] += self.c[i+1] % 1.0
|
self.c[i] = (self.c[i] + self.c[i+1]) % 1.0
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user