comparison dsp/onsets/PeakPicking.cpp @ 58:d72fcd34d9a7

* Fixes to problems shown up by vamp-plugin-tester. Still not all plugins pass all tests, though
author cannam
date Mon, 23 Mar 2009 16:28:53 +0000
parents 38bf09927942
children e5907ae6de17
comparison
equal deleted inserted replaced
57:d241e7701c0c 58:d72fcd34d9a7
59 m_workBuffer = NULL; 59 m_workBuffer = NULL;
60 } 60 }
61 61
62 void PeakPicking::process( double* src, unsigned int len, vector<int> &onsets ) 62 void PeakPicking::process( double* src, unsigned int len, vector<int> &onsets )
63 { 63 {
64 if (len < 4) return;
65
64 vector <double> m_maxima; 66 vector <double> m_maxima;
65 67
66 // Signal conditioning 68 // Signal conditioning
67 m_DFSmoothing->process( src, m_workBuffer ); 69 m_DFSmoothing->process( src, m_workBuffer );
68 70