summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Glover <j@johnglover.net>2012-08-11 17:19:24 +0100
committerJohn Glover <j@johnglover.net>2012-08-11 17:19:24 +0100
commita22435336757898acff9cd4be1e473bf3bb6c032 (patch)
tree20dfa83edf5a51997510032143e1359f1161e5b0
parent40ff10a2dbf11df0b3a5380b8993119dbb92d0cc (diff)
downloadsimpl-a22435336757898acff9cd4be1e473bf3bb6c032.tar.gz
simpl-a22435336757898acff9cd4be1e473bf3bb6c032.tar.bz2
simpl-a22435336757898acff9cd4be1e473bf3bb6c032.zip
[mq] Bug fix: write audio to new output array instead of frame.synth.
-rw-r--r--simpl/mq.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpl/mq.py b/simpl/mq.py
index cc37eef..adb326a 100644
--- a/simpl/mq.py
+++ b/simpl/mq.py
@@ -401,7 +401,7 @@ class MQSynthesis(simpl.Synthesis):
inst_amp += amp_inc
inst_phase = prev_phase + (prev_freq * i) + \
(alpha * (i ** 2)) + (beta * (i ** 3))
- frame.synth[i] += (2.0 * inst_amp) * np.cos(inst_phase)
+ output[i] += (2.0 * inst_amp) * np.cos(inst_phase)
# update previous partials list
self._previous_partials[n] = p