From 0aaf61396643d7884b792b6d1a053c7dae7390b2 Mon Sep 17 00:00:00 2001 From: John Glover Date: Fri, 24 Dec 2010 12:37:39 +0000 Subject: Updated MQ and SndObj peak detection and partial tracking to simpl 0.2 --- mq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mq.py') 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]) -- cgit v1.2.3