Mercurial > hg > lowfreq
comparison LowFreq.h @ 2:a84bae4ee627
Fill in most of the implementation
author | Chris Cannam |
---|---|
date | Fri, 07 Mar 2014 08:23:48 +0000 |
parents | b26975f6a1f1 |
children | 9867e53a2592 |
comparison
equal
deleted
inserted
replaced
1:411c5c28fc43 | 2:a84bae4ee627 |
---|---|
3 | 3 |
4 #include <vamp-sdk/Plugin.h> | 4 #include <vamp-sdk/Plugin.h> |
5 | 5 |
6 using std::string; | 6 using std::string; |
7 | 7 |
8 class Resampler; | |
9 class FFT; | |
8 | 10 |
9 class LowFreq : public Vamp::Plugin | 11 class LowFreq : public Vamp::Plugin |
10 { | 12 { |
11 public: | 13 public: |
12 LowFreq(float inputSampleRate); | 14 LowFreq(float inputSampleRate); |
42 Vamp::RealTime timestamp); | 44 Vamp::RealTime timestamp); |
43 | 45 |
44 FeatureSet getRemainingFeatures(); | 46 FeatureSet getRemainingFeatures(); |
45 | 47 |
46 protected: | 48 protected: |
47 float m_pShort; | 49 Feature processColumn(); |
48 float m_pLong; | 50 |
51 float m_p; | |
52 int m_n; | |
53 | |
54 int m_blockSize; | |
55 | |
56 Resampler *m_resampler; | |
57 FFT *m_fft; | |
58 std::vector<double> m_buffer; | |
49 }; | 59 }; |
50 | 60 |
51 | 61 |
52 | 62 |
53 #endif | 63 #endif |