comparison dsp/signalconditioning/DFProcess.cpp @ 80:a5eae96a357c

* Fix idiotic bug that causes onset detector not to work as well as it did
author cannam
date Thu, 15 Oct 2009 16:09:13 +0000
parents 769da847732b
children e5907ae6de17
comparison
equal deleted inserted replaced
79:054c384d860d 80:a5eae96a357c
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