Mercurial > hg > qm-dsp
diff dsp/onsets/DetectionFunction.cpp @ 106:f976d7609700 mirex2013
Restore the accidentally-removed line in which all the work happens! Fixes onset detector
author | Chris Cannam |
---|---|
date | Thu, 05 Sep 2013 12:33:35 +0100 |
parents | 37449f085a4c |
children | f3c69325cca2 |
line wrap: on
line diff
--- a/dsp/onsets/DetectionFunction.cpp Mon Sep 02 09:47:05 2013 +0100 +++ b/dsp/onsets/DetectionFunction.cpp Thu Sep 05 12:33:35 2013 +0100 @@ -100,7 +100,7 @@ // data directly), we will have to use the next smallest power of // two from the block size. Results may vary accordingly! - int actualLength = MathUtilities::previousPowerOfTwo(m_dataLength); + int actualLength = MathUtilities::previousPowerOfTwo((int)m_dataLength); if (actualLength != (int)m_dataLength) { // Pre-fill mag and phase vectors with zero, as the FFT output