# HG changeset patch # User Chris Cannam # Date 1348757537 -3600 # Node ID b32290646213e0cef3d85bc6cad9c9f0f5e61826 # Parent 751b43d119cfddc8306e86ae14eb3b370270744c Beginnings of switch to feeder diff -r 751b43d119cf -r b32290646213 CepstralPitchTracker.h --- a/CepstralPitchTracker.h Thu Sep 27 15:20:47 2012 +0100 +++ b/CepstralPitchTracker.h Thu Sep 27 15:52:17 2012 +0100 @@ -29,6 +29,8 @@ #include "NoteHypothesis.h" +class AgentFeeder; + class CepstralPitchTracker : public Vamp::Plugin { public: @@ -78,15 +80,8 @@ int m_binTo; int m_bins; // count of "interesting" bins, those returned in m_cepOutput - typedef std::vector Hypotheses; - Hypotheses m_possible; - NoteHypothesis m_good; - + AgentFeeder *m_feeder; void addFeaturesFrom(NoteHypothesis h, FeatureSet &fs); - - void filter(const double *in, double *out); - double cubicInterpolate(const double[4], double); - double findInterpolatedPeak(const double *in, int maxbin); }; #endif