Mercurial > hg > qm-vamp-plugins
view plugins/BeatDetect.h @ 6:d00c1bad7332
* Make BeatDetect ask for its input in the frequency domain -- it can be
a bit faster if the host does FFT using e.g. FFTW instead of our rather
slower implementation, and also this means we don't have to worry about
handling non-power-of-two FFT sizes.
* Updates to copyright notes &c
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 15 May 2006 12:07:44 +0000 |
parents | 991d0fe8bb27 |
children | 99dadc93042e |
line wrap: on
line source
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* QM Vamp Plugin Set Centre for Digital Music, Queen Mary, University of London. All rights reserved. */ #ifndef _BEAT_DETECT_PLUGIN_H_ #define _BEAT_DETECT_PLUGIN_H_ #include <vamp-sdk/Plugin.h> class BeatDetectorData; class BeatDetector : public Vamp::Plugin { public: BeatDetector(float inputSampleRate); virtual ~BeatDetector(); bool initialise(size_t channels, size_t stepSize, size_t blockSize); void reset(); InputDomain getInputDomain() const { return FrequencyDomain; } std::string getName() const; std::string getDescription() const; std::string getMaker() const; int getPluginVersion() const; std::string getCopyright() const; ParameterList getParameterDescriptors() const; float getParameter(std::string) const; void setParameter(std::string, float); size_t getPreferredStepSize() const; size_t getPreferredBlockSize() const; OutputList getOutputDescriptors() const; FeatureSet process(float **inputBuffers, Vamp::RealTime timestamp); FeatureSet getRemainingFeatures(); protected: BeatDetectorData *m_d; int m_dfType; static float m_stepSecs; }; #endif