mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
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):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user