2
0
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:
Sebastien Bourdeauducq 2015-03-15 18:13:09 +01:00
parent 1d0fde7f13
commit 40bd101de0

View File

@ -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