c@25: // c@25: // AutocorrelationProcessor.h c@25: // Tempogram c@25: // c@25: // Created by Carl Bussey on 20/08/2014. c@25: // Copyright (c) 2014 Carl Bussey. All rights reserved. c@25: // c@25: c@25: #ifndef __Tempogram__Autocorrelation__ c@25: #define __Tempogram__Autocorrelation__ c@25: c@25: #include c@25: #include c@25: c@25: typedef std::vector< std::vector > AutoCorrelation; c@25: c@25: class AutocorrelationProcessor{ c@25: public: c@25: AutocorrelationProcessor(const size_t &windowLength, const unsigned int &hopSize, const unsigned int &lagIncrement); c@25: AutoCorrelation process(float * input, const size_t &inputLength) const; c@25: std::vector processBlock(float * input, const size_t &inputLength) const; c@25: private: c@25: size_t m_windowLength; c@25: unsigned int m_hopSize; c@25: unsigned int m_lagIncrement; c@25: c@25: }; c@25: c@25: #endif /* defined(__Tempogram__Autocorrelation__) */