Skip to content

Commit

Permalink
wavesynth/compute_samples: fix list mutation bug
Browse files Browse the repository at this point in the history
sbourdeauducq committed Apr 5, 2015
1 parent 9fd4594 commit 0bab73e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions artiq/wavesynth/compute_samples.py
Original file line number Diff line number Diff line change
@@ -26,8 +26,9 @@ def __init__(self):

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

0 comments on commit 0bab73e

Please sign in to comment.