diff NNLSBase.cpp @ 172:d95c4cdef8af

Merge
author Chris Cannam
date Mon, 02 Nov 2015 11:32:30 +0000
parents ba9310bcc3fc a85e745c0721
children
line wrap: on
line diff
--- a/NNLSBase.cpp	Fri Oct 23 09:36:08 2015 +0100
+++ b/NNLSBase.cpp	Mon Nov 02 11:32:30 2015 +0000
@@ -467,7 +467,7 @@
         }
     }
 	
-    if (maxmag < 2) {
+    if (maxmag < m_blockSize * 2.0 / 16384.0) { // this is not quite right, I think
         // cerr << "timestamp " << timestamp << ": very low magnitude, setting magnitude to all zeros" << endl;
         for (int iBin = 0; iBin < static_cast<int>(m_blockSize/2); iBin++) {
             magnitude[iBin] = 0;