diff src/Silvet.cpp @ 145:450f9987f041

Update CQ implementation following inverse-CQ merge
author Chris Cannam
date Tue, 13 May 2014 14:34:04 +0100
parents 230920148ee5
children d2bc51cc7f57
line wrap: on
line diff
--- a/src/Silvet.cpp	Thu May 08 18:12:14 2014 +0100
+++ b/src/Silvet.cpp	Tue May 13 14:34:04 2014 +0100
@@ -20,7 +20,7 @@
 #include "maths/MathUtilities.h"
 #include "dsp/rateconversion/Resampler.h"
 
-#include "constant-q-cpp/cpp-qm-dsp/CQInterpolated.h"
+#include "constant-q-cpp/cpp-qm-dsp/CQSpectrogram.h"
 
 #include <vector>
 
@@ -326,9 +326,9 @@
 	m_resampler = 0;
     }
 
-    m_cq = new CQInterpolated
+    m_cq = new CQSpectrogram
 	(processingSampleRate, 27.5, processingSampleRate / 3, processingBPO,
-         CQInterpolated::Linear);
+         CQSpectrogram::InterpolateLinear);
 
     for (int i = 0; i < (int)m_postFilter.size(); ++i) {
         delete m_postFilter[i];
@@ -376,7 +376,7 @@
 Silvet::FeatureSet
 Silvet::getRemainingFeatures()
 {
-    Grid cqout = m_cq->getRemainingBlocks();
+    Grid cqout = m_cq->getRemainingOutput();
     FeatureSet fs = transcribe(cqout);
 
     for (int i = 0; i < (int)cqout.size(); ++i) {