From 40bd101de057d966b236281a08d756b91bb1331b Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 15 Mar 2015 18:13:09 +0100 Subject: [PATCH] wavesynth/compute_samples/SplinePhase: fix reduction --- artiq/wavesynth/compute_samples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/wavesynth/compute_samples.py b/artiq/wavesynth/compute_samples.py index 5b91053fb..7ba485bfe 100644 --- a/artiq/wavesynth/compute_samples.py +++ b/artiq/wavesynth/compute_samples.py @@ -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