Mercurial > hg > vamp-tempogram
view AutocorrelationProcessor.h @ 27:a3a37c8dcee7
* Fixed bug causing ACT not to work
author | Carl Bussey <c.bussey@se10.qmul.ac.uk> |
---|---|
date | Wed, 20 Aug 2014 16:48:54 +0100 |
parents | ff6110f1144b |
children | 723af5b3303a |
line wrap: on
line source
// // AutocorrelationProcessor.h // Tempogram // // Created by Carl Bussey on 20/08/2014. // Copyright (c) 2014 Carl Bussey. All rights reserved. // #ifndef __Tempogram__Autocorrelation__ #define __Tempogram__Autocorrelation__ #include <iostream> #include <vector> typedef std::vector< std::vector<float> > AutoCorrelation; class AutocorrelationProcessor{ public: AutocorrelationProcessor(const size_t &windowLength, const unsigned int &hopSize); ~AutocorrelationProcessor(); AutoCorrelation process(float * input, const size_t &inputLength) const; private: size_t m_windowLength; unsigned int m_hopSize; float * m_blockInput; std::vector<float> processBlock() const; }; #endif /* defined(__Tempogram__Autocorrelation__) */