# HG changeset patch # User Chris Cannam # Date 1255622953 0 # Node ID 77687f235dc7cde5e0214b3c27247aa35c277d89 # Parent 702ff8c08137fe3ba1c8735c44d89e7a9a2da670 * Fix idiotic bug that causes onset detector not to work as well as it did diff -r 702ff8c08137 -r 77687f235dc7 dsp/signalconditioning/DFProcess.cpp --- a/dsp/signalconditioning/DFProcess.cpp Mon Sep 14 13:01:44 2009 +0000 +++ b/dsp/signalconditioning/DFProcess.cpp Thu Oct 15 16:09:13 2009 +0000 @@ -92,7 +92,7 @@ double* scratch = new double[ m_length ]; - for( i = 0; i < m_winPre && index; i++) + for( i = 0; i < m_winPre; i++) { if (index >= m_length) break;