Mercurial > hg > pyin
comparison PYinVamp.cpp @ 60:60eb8771d340 tony
slower, but timestamp-unbiased pyin
author | matthiasm |
---|---|
date | Fri, 07 Mar 2014 10:43:55 +0000 |
parents | b39d6745c596 |
children | 8180299e5087 16129c3b1cf5 |
comparison
equal
deleted
inserted
replaced
59:b13d82111c8f | 60:60eb8771d340 |
---|---|
352 } | 352 } |
353 | 353 |
354 PYinVamp::FeatureSet | 354 PYinVamp::FeatureSet |
355 PYinVamp::process(const float *const *inputBuffers, RealTime timestamp) | 355 PYinVamp::process(const float *const *inputBuffers, RealTime timestamp) |
356 { | 356 { |
357 timestamp = timestamp + Vamp::RealTime::frame2RealTime(m_blockSize/4, lrintf(m_inputSampleRate)); | 357 timestamp = timestamp + Vamp::RealTime::frame2RealTime(m_blockSize/2, lrintf(m_inputSampleRate)); |
358 FeatureSet fs; | 358 FeatureSet fs; |
359 | 359 |
360 float rms = 0; | 360 float rms = 0; |
361 | 361 |
362 double *dInputBuffers = new double[m_blockSize]; | 362 double *dInputBuffers = new double[m_blockSize]; |