00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MARSYAS_BEATPHASE_H
00020 #define MARSYAS_BEATPHASE_H
00021
00022 #include "MarSystem.h"
00023
00024 namespace Marsyas
00025 {
00034 class BeatPhase: public MarSystem
00035 {
00036 private:
00037
00038 void addControls();
00039 MarControlPtr ctrl_tempos_;
00040 MarControlPtr ctrl_tempo_candidates_;
00041
00042 MarControlPtr ctrl_temposcores_;
00043
00044 MarControlPtr ctrl_phase_tempo_;
00045 MarControlPtr ctrl_ground_truth_tempo_;
00046
00047 MarControlPtr ctrl_beats_;
00048 MarControlPtr ctrl_bhopSize_;
00049 MarControlPtr ctrl_bwinSize_;
00050 MarControlPtr ctrl_timeDomain_;
00051 MarControlPtr ctrl_beatOutput_;
00052 MarControlPtr ctrl_nCandidates_;
00053
00054
00055 mrs_natural pinSamples_;
00056 mrs_real current_beat_location_;
00057
00058
00059 void myUpdate(MarControlPtr sender);
00060 mrs_natural sampleCount_;
00061
00062 public:
00063 BeatPhase(std::string name);
00064 BeatPhase(const BeatPhase& a);
00065 ~BeatPhase();
00066 MarSystem* clone() const;
00067
00068 void myProcess(realvec& in, realvec& out);
00069 };
00070
00071 }
00072
00073 #endif