comparison examples/FixedTempoEstimator.h @ 200:a86e777bf9a6

* tweaks to fixed-tempo estimator
author cannam
date Thu, 09 Oct 2008 15:37:34 +0000
parents e3e61b7e9661
children 4275327f9c79
comparison
equal deleted inserted replaced
199:84c4bb209227 200:a86e777bf9a6
74 Vamp::RealTime timestamp); 74 Vamp::RealTime timestamp);
75 75
76 FeatureSet getRemainingFeatures(); 76 FeatureSet getRemainingFeatures();
77 77
78 protected: 78 protected:
79 class D;
80 D *m_d;
81
79 size_t m_stepSize; 82 size_t m_stepSize;
80 size_t m_blockSize; 83 size_t m_blockSize;
81 84
82 float *m_priorMagnitudes; 85 float *m_priorMagnitudes;
83 86
84 size_t m_dfsize; 87 size_t m_dfsize;
85 float *m_df; 88 float *m_df;
89 float *m_r;
90 float *m_fr;
86 size_t m_n; 91 size_t m_n;
87 92
88 Vamp::RealTime m_start; 93 Vamp::RealTime m_start;
89 Vamp::RealTime m_lasttime; 94 Vamp::RealTime m_lasttime;
90 95
91 FeatureSet calculateFeatures(); 96 void calculate();
97 FeatureSet assembleFeatures();
92 float lag2tempo(int); 98 float lag2tempo(int);
93 }; 99 };
94 100
95 101
96 #endif 102 #endif