From 86d6069c6d735325463fda20d938bc19cf4da41b Mon Sep 17 00:00:00 2001 From: John Glover Date: Fri, 21 Jun 2013 16:39:33 +0200 Subject: [mq] Peak detection bug fix: return peaks sorted by frequency --- src/mq/mq.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mq') diff --git a/src/mq/mq.cpp b/src/mq/mq.cpp index 6c25a88..42617f9 100644 --- a/src/mq/mq.cpp +++ b/src/mq/mq.cpp @@ -178,8 +178,7 @@ MQPeakList* simpl::mq_find_peaks(int signal_size, sample* signal, num_peaks = params->max_peaks; } - // return simpl::mq_sort_peaks_by_frequency(peak_list, num_peaks); - return peak_list; + return simpl::mq_sort_peaks_by_frequency(peak_list, num_peaks); } // ---------------------------------------------------------------------------- -- cgit v1.2.3