summaryrefslogtreecommitdiff
path: root/mq.py
diff options
context:
space:
mode:
Diffstat (limited to 'mq.py')
-rw-r--r--mq.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mq.py b/mq.py
index 537b383..8640eab 100644
--- a/mq.py
+++ b/mq.py
@@ -144,7 +144,7 @@ class MQPeakDetection(simpl.PeakDetection):
self._max_peaks peaks."""
self._current_peaks = []
# fft of frame
- f = np.fft.rfft(frame * self._window)
+ f = np.fft.rfft(frame.audio * self._window)
spectrum = abs(f)
# find all peaks in the spectrum
prev_mag = np.abs(spectrum[0])