forked from M-Labs/artiq
1
0
Fork 0

wavesynth/compute_samples: fix list mutation bug

This commit is contained in:
Sebastien Bourdeauducq 2015-04-05 18:41:06 +08:00
parent 9fd4594c53
commit 0bab73eece
1 changed files with 3 additions and 2 deletions

View File

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