2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 19:28:26 +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):
r = self.c[0] + self.c0
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