diff Chordino.cpp @ 42:d01f94d58ef0 matthiasm-plugin

* added new parameter that toggles NNLS
author matthiasm
date Sun, 24 Oct 2010 20:43:11 +0900
parents d6bb9b43ac1c
children 131801714118
line wrap: on
line diff
--- a/Chordino.cpp	Fri Oct 22 21:43:57 2010 +0900
+++ b/Chordino.cpp	Sun Oct 24 20:43:11 2010 +0900
@@ -223,7 +223,7 @@
         Three different kinds of chromagram are calculated, "treble", "bass", and "both" (which means 
         bass and treble stacked onto each other).
     **/
-    if (m_dictID == 1) {
+    if (m_useNNLS == 0) {
         cerr << "[Chordino Plugin] Mapping to semitone spectrum and chroma ... ";
     } else {
         cerr << "[Chordino Plugin] Performing NNLS and mapping to chroma ... ";
@@ -265,7 +265,7 @@
         unsigned iSemitone = 0;
 			
         if (some_b_greater_zero) {
-            if (m_dictID == 1) {
+            if (m_useNNLS == 0) {
                 for (unsigned iNote = 2; iNote < nNote - 2; iNote += 3) {
                     currval = 0;
                     currval += b[iNote + 1 + -1] * 0.5;