diff NNLSBase.cpp @ 50:b6cddb109482 matthiasm-plugin

added chord change value, some other tweaks
author matthiasm
date Mon, 25 Oct 2010 18:34:44 +0900
parents 6e76c7710fa1
children 01bc078f5f61
line wrap: on
line diff
--- a/NNLSBase.cpp	Mon Oct 25 16:58:32 2010 +0900
+++ b/NNLSBase.cpp	Mon Oct 25 18:34:44 2010 +0900
@@ -55,7 +55,8 @@
     m_doNormalizeChroma(0),
     m_rollon(0.0),
 	m_s(0.7),
-	m_useNNLS(1)
+	m_useNNLS(1),
+	m_useHMM(1)
 {
     if (debug_on) cerr << "--> NNLSBase" << endl;
 
@@ -259,6 +260,11 @@
     if (identifier == "chromanormalize") {
         return m_doNormalizeChroma;
     }
+    
+    if (identifier == "useHMM") {
+        return m_useHMM;
+    }
+    
     return 0;
     
 }
@@ -279,6 +285,10 @@
         m_s = value;
     }
 
+    if (identifier == "useHMM") {
+        m_useHMM = value;
+    }
+    
     if (identifier == "tuningmode") {
         m_tuneLocal = (value > 0) ? true : false;
         // cerr << "m_tuneLocal :" << m_tuneLocal << endl;