comparison examples/PercussionOnsetDetector.cpp @ 210:a5187dad96cd

* Add example plugins VC project -- though it doesn't produce a working library yet
author cannam
date Fri, 17 Oct 2008 21:59:35 +0000
parents c8b48bc6db3d
children
comparison
equal deleted inserted replaced
209:0f6616ef0e18 210:a5187dad96cd
265 m_dfMinus1 > ((100 - m_sensitivity) * m_blockSize) / 200) { 265 m_dfMinus1 > ((100 - m_sensitivity) * m_blockSize) / 200) {
266 266
267 Feature onset; 267 Feature onset;
268 onset.hasTimestamp = true; 268 onset.hasTimestamp = true;
269 onset.timestamp = ts - Vamp::RealTime::frame2RealTime 269 onset.timestamp = ts - Vamp::RealTime::frame2RealTime
270 (m_stepSize, lrintf(m_inputSampleRate)); 270 (m_stepSize, int(m_inputSampleRate + 0.5));
271 returnFeatures[0].push_back(onset); 271 returnFeatures[0].push_back(onset);
272 } 272 }
273 273
274 m_dfMinus2 = m_dfMinus1; 274 m_dfMinus2 = m_dfMinus1;
275 m_dfMinus1 = count; 275 m_dfMinus1 = count;