Mercurial > hg > qm-dsp
comparison dsp/signalconditioning/DFProcess.cpp @ 305:77687f235dc7
* Fix idiotic bug that causes onset detector not to work as well as it did
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 15 Oct 2009 16:09:13 +0000 |
parents | 5f2c9119a94a |
children | e5907ae6de17 |
comparison
equal
deleted
inserted
replaced
304:702ff8c08137 | 305:77687f235dc7 |
---|---|
90 double* y = new double[ m_winPost + m_winPre + 1]; | 90 double* y = new double[ m_winPost + m_winPre + 1]; |
91 memset( y, 0, sizeof( double ) * ( m_winPost + m_winPre + 1) ); | 91 memset( y, 0, sizeof( double ) * ( m_winPost + m_winPre + 1) ); |
92 | 92 |
93 double* scratch = new double[ m_length ]; | 93 double* scratch = new double[ m_length ]; |
94 | 94 |
95 for( i = 0; i < m_winPre && index; i++) | 95 for( i = 0; i < m_winPre; i++) |
96 { | 96 { |
97 if (index >= m_length) break; | 97 if (index >= m_length) break; |
98 | 98 |
99 k = i + m_winPost + 1; | 99 k = i + m_winPost + 1; |
100 | 100 |