forked from M-Labs/artiq
wavesynth/compute_samples/SplinePhase: fix reduction
This commit is contained in:
parent
1d0fde7f13
commit
40bd101de0
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue