comparison examples/PercussionOnsetDetector.cpp @ 47:be8fdfe25693

* Change input buffers arg to process from float ** to const float *const * to avoid plugins modifying their input data * Some improvements to comments * Fix stupidity in frequency-domain input passing (there are n/2+1 values, not n/2)
author cannam
date Fri, 08 Dec 2006 17:39:32 +0000
parents 3bbe244611bb
children aa64a46320d4
comparison
equal deleted inserted replaced
46:2858c897d90f 47:be8fdfe25693
211 211
212 return list; 212 return list;
213 } 213 }
214 214
215 PercussionOnsetDetector::FeatureSet 215 PercussionOnsetDetector::FeatureSet
216 PercussionOnsetDetector::process(float **inputBuffers, Vamp::RealTime ts) 216 PercussionOnsetDetector::process(const float *const *inputBuffers,
217 Vamp::RealTime ts)
217 { 218 {
218 if (m_stepSize == 0) { 219 if (m_stepSize == 0) {
219 cerr << "ERROR: PercussionOnsetDetector::process: " 220 cerr << "ERROR: PercussionOnsetDetector::process: "
220 << "PercussionOnsetDetector has not been initialised" 221 << "PercussionOnsetDetector has not been initialised"
221 << endl; 222 << endl;