comparison examples/PercussionOnsetDetector.cpp @ 37:e8ecff3a9001

* fix typo
author cannam
date Wed, 20 Sep 2006 14:57:52 +0000
parents 6891b25dca1a
children 3bbe244611bb
comparison
equal deleted inserted replaced
36:6891b25dca1a 37:e8ecff3a9001
248 detectionFunction.values.push_back(count); 248 detectionFunction.values.push_back(count);
249 returnFeatures[1].push_back(detectionFunction); 249 returnFeatures[1].push_back(detectionFunction);
250 250
251 if (m_dfMinus2 < m_dfMinus1 && 251 if (m_dfMinus2 < m_dfMinus1 &&
252 m_dfMinus1 >= count && 252 m_dfMinus1 >= count &&
253 m_dfMinus1 > (m_sensitivity * m_blockSize) / 200) { 253 m_dfMinus1 > ((100 - m_sensitivity) * m_blockSize) / 200) {
254 254
255 Feature onset; 255 Feature onset;
256 onset.hasTimestamp = true; 256 onset.hasTimestamp = true;
257 onset.timestamp = ts - Vamp::RealTime::frame2RealTime 257 onset.timestamp = ts - Vamp::RealTime::frame2RealTime
258 (m_stepSize, lrintf(m_inputSampleRate)); 258 (m_stepSize, lrintf(m_inputSampleRate));