Mercurial > hg > nnls-chroma
diff NNLSBase.cpp @ 150:c40de221b5df
Merge
author | Chris Cannam |
---|---|
date | Thu, 05 Sep 2013 17:30:38 +0100 |
parents | a85e745c0721 |
children | d95c4cdef8af |
line wrap: on
line diff
--- a/NNLSBase.cpp Thu Sep 05 17:29:53 2013 +0100 +++ b/NNLSBase.cpp Thu Sep 05 17:30:38 2013 +0100 @@ -465,7 +465,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;