Mercurial > hg > vamp-plugin-sdk
diff examples/ZeroCrossing.cpp @ 255:88ef5ffdbe8d
* docs
author | cannam |
---|---|
date | Wed, 12 Nov 2008 14:11:01 +0000 |
parents | 6b30e064cab7 |
children | 1ed95908a397 |
line wrap: on
line diff
--- a/examples/ZeroCrossing.cpp Wed Nov 12 10:39:05 2008 +0000 +++ b/examples/ZeroCrossing.cpp Wed Nov 12 14:11:01 2008 +0000 @@ -138,8 +138,6 @@ return list; } -//static int scount = 0; - ZeroCrossing::FeatureSet ZeroCrossing::process(const float *const *inputBuffers, Vamp::RealTime timestamp) @@ -151,15 +149,11 @@ return FeatureSet(); } -// std::cerr << "ZeroCrossing::process: count = " << scount++ << ", timestamp = " << timestamp << ", rms = "; - float prev = m_previousSample; size_t count = 0; FeatureSet returnFeatures; -// double acc = 0.0; - for (size_t i = 0; i < m_stepSize; ++i) { float sample = inputBuffers[0][i]; @@ -180,14 +174,9 @@ returnFeatures[1].push_back(feature); } -// acc += sample * sample; - prev = sample; } -// acc /= m_stepSize; -// std::cerr << sqrt(acc) << std::endl; - m_previousSample = prev; Feature feature;