diff Chordino.cpp @ 76:d398e73b46e0 matthiasm-plugin

it's broken at the moment, work in progress (makeing bins per semitone variable, ie not necessarily 3)
author Matthias Mauch <mail@matthiasmauch.net>
date Wed, 10 Nov 2010 22:52:46 +0900
parents 9a1f83057e84
children ba930176df5b
line wrap: on
line diff
--- a/Chordino.cpp	Tue Nov 02 10:05:48 2010 +0000
+++ b/Chordino.cpp	Wed Nov 10 22:52:46 2010 +0900
@@ -29,8 +29,6 @@
 
 const bool debug_on = false;
 
-const vector<float> hw(hammingwind, hammingwind+19);
-
 Chordino::Chordino(float inputSampleRate) :
     NNLSBase(inputSampleRate)
 {
@@ -99,10 +97,10 @@
     d0.description = "Consider the cumulative energy spectrum (from low to high frequencies). All bins below the first bin whose cumulative energy exceeds the quantile [spectral roll on] x [total energy] will be set to 0. A value of 0 means that no bins will be changed.";
     d0.unit = "%";
     d0.minValue = 0;
-    d0.maxValue = 0.05;
+    d0.maxValue = 5;
     d0.defaultValue = 0;
     d0.isQuantized = true;
-	d0.quantizeStep = 0.005;
+	d0.quantizeStep = 0.5;
     list.push_back(d0);
 
     ParameterDescriptor d1;
@@ -210,7 +208,7 @@
     if (debug_on) {
         cerr << "--> initialise";
     }
-
+    
     if (!NNLSBase::initialise(channels, stepSize, blockSize)) {
         return false;
     }
@@ -238,6 +236,7 @@
 Chordino::FeatureSet
 Chordino::getRemainingFeatures()
 {
+    cerr << hw[0] << hw[1] << endl;
     if (debug_on) cerr << "--> getRemainingFeatures" << endl;
     FeatureSet fsOut;
     if (m_logSpectrum.size() == 0) return fsOut;