diff --git a/artiq/wavesynth/compute_samples.py b/artiq/wavesynth/compute_samples.py index debe393a6..76841c35e 100644 --- a/artiq/wavesynth/compute_samples.py +++ b/artiq/wavesynth/compute_samples.py @@ -26,8 +26,9 @@ class SplinePhase: def set_coefficients(self, c): self.c0 = c[0] - self.c[1:] = c[1:] - discrete_compensate(self.c[1:]) + c1p = c[1:] + discrete_compensate(c1p) + self.c[1:] = c1p def clear(self): self.c[0] = 0.0