Mercurial > hg > qm-dsp
diff 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 |
line wrap: on
line diff
--- a/dsp/onsets/PeakPicking.cpp Fri Feb 27 13:07:22 2009 +0000 +++ b/dsp/onsets/PeakPicking.cpp Mon Mar 23 16:28:53 2009 +0000 @@ -61,6 +61,8 @@ void PeakPicking::process( double* src, unsigned int len, vector<int> &onsets ) { + if (len < 4) return; + vector <double> m_maxima; // Signal conditioning