Mercurial > hg > vamp-tempogram
diff AutocorrelationProcessor.h @ 26:ff6110f1144b
* Added an additional buffer in AutocorrelationProcessor::process() - possibly a little bit slower, but much easier to debug!
author | Carl Bussey <c.bussey@se10.qmul.ac.uk> |
---|---|
date | Wed, 20 Aug 2014 16:32:52 +0100 |
parents | fe23998968b4 |
children | a3a37c8dcee7 |
line wrap: on
line diff
--- a/AutocorrelationProcessor.h Wed Aug 20 16:00:37 2014 +0100 +++ b/AutocorrelationProcessor.h Wed Aug 20 16:32:52 2014 +0100 @@ -16,14 +16,16 @@ class AutocorrelationProcessor{ public: - AutocorrelationProcessor(const size_t &windowLength, const unsigned int &hopSize, const unsigned int &lagIncrement); + AutocorrelationProcessor(const size_t &windowLength, const unsigned int &hopSize); + ~AutocorrelationProcessor(); AutoCorrelation process(float * input, const size_t &inputLength) const; - std::vector<float> processBlock(float * input, const size_t &inputLength) const; private: size_t m_windowLength; unsigned int m_hopSize; unsigned int m_lagIncrement; + float * m_blockInput; + std::vector<float> processBlock() const; }; #endif /* defined(__Tempogram__Autocorrelation__) */