comparison 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
comparison
equal deleted inserted replaced
25:fe23998968b4 26:ff6110f1144b
14 14
15 typedef std::vector< std::vector<float> > AutoCorrelation; 15 typedef std::vector< std::vector<float> > AutoCorrelation;
16 16
17 class AutocorrelationProcessor{ 17 class AutocorrelationProcessor{
18 public: 18 public:
19 AutocorrelationProcessor(const size_t &windowLength, const unsigned int &hopSize, const unsigned int &lagIncrement); 19 AutocorrelationProcessor(const size_t &windowLength, const unsigned int &hopSize);
20 ~AutocorrelationProcessor();
20 AutoCorrelation process(float * input, const size_t &inputLength) const; 21 AutoCorrelation process(float * input, const size_t &inputLength) const;
21 std::vector<float> processBlock(float * input, const size_t &inputLength) const;
22 private: 22 private:
23 size_t m_windowLength; 23 size_t m_windowLength;
24 unsigned int m_hopSize; 24 unsigned int m_hopSize;
25 unsigned int m_lagIncrement; 25 unsigned int m_lagIncrement;
26 float * m_blockInput;
26 27
28 std::vector<float> processBlock() const;
27 }; 29 };
28 30
29 #endif /* defined(__Tempogram__Autocorrelation__) */ 31 #endif /* defined(__Tempogram__Autocorrelation__) */