1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
6 Centre for Digital Music, Queen Mary, University of London.
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version. See the file
12 COPYING included with this distribution for more information.
15 #ifndef _BAR_BEAT_TRACK_PLUGIN_H_
16 #define _BAR_BEAT_TRACK_PLUGIN_H_
18 #include <vamp-sdk/Plugin.h>
20 class BarBeatTrackerData;
22 class BarBeatTracker : public Vamp::Plugin
25 BarBeatTracker(float inputSampleRate);
26 virtual ~BarBeatTracker();
28 bool initialise(size_t channels, size_t stepSize, size_t blockSize);
31 InputDomain getInputDomain() const { return TimeDomain; }
33 std::string getIdentifier() const;
34 std::string getName() const;
35 std::string getDescription() const;
36 std::string getMaker() const;
37 int getPluginVersion() const;
38 std::string getCopyright() const;
40 ParameterList getParameterDescriptors() const;
41 float getParameter(std::string) const;
42 void setParameter(std::string, float);
44 size_t getPreferredStepSize() const;
45 size_t getPreferredBlockSize() const;
47 OutputList getOutputDescriptors() const;
49 FeatureSet process(const float *const *inputBuffers,
50 Vamp::RealTime timestamp);
52 FeatureSet getRemainingFeatures();
55 BarBeatTrackerData *m_d;
56 static float m_stepSecs;
58 FeatureSet barBeatTrack();
60 // MEPD new protected parameters to allow the user to control these advanced parameters of the beat tracker
61 // changes are as per the BeatTrack.h
65 bool m_constraintempo;