forked from M-Labs/artiq
wavesynth/compute_samples: fix list mutation bug
This commit is contained in:
parent
9fd4594c53
commit
0bab73eece
|
@ -26,8 +26,9 @@ class SplinePhase:
|
||||||
|
|
||||||
def set_coefficients(self, c):
|
def set_coefficients(self, c):
|
||||||
self.c0 = c[0]
|
self.c0 = c[0]
|
||||||
self.c[1:] = c[1:]
|
c1p = c[1:]
|
||||||
discrete_compensate(self.c[1:])
|
discrete_compensate(c1p)
|
||||||
|
self.c[1:] = c1p
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
self.c[0] = 0.0
|
self.c[0] = 0.0
|
||||||
|
|
Loading…
Reference in New Issue