c@178: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ c@178: c@178: /* c@178: QM Vamp Plugin Set c@178: c@178: Centre for Digital Music, Queen Mary, University of London. c@178: This file copyright 2009 Thomas Wilmering. c@135: c@135: This program is free software; you can redistribute it and/or c@135: modify it under the terms of the GNU General Public License as c@135: published by the Free Software Foundation; either version 2 of the c@135: License, or (at your option) any later version. See the file c@178: COPYING included with this distribution for more information. c@178: */ c@178: c@178: #ifndef _DWT_PLUGIN_H_ c@178: #define _DWT_PLUGIN_H_ c@178: c@178: #include c@178: c@178: #include c@178: c@178: using std::vector; c@178: c@178: class DWT : public Vamp::Plugin c@178: { c@178: public: c@178: DWT(float inputSampleRate); c@178: virtual ~DWT(); c@178: c@178: bool initialise(size_t channels, size_t stepSize, size_t blockSize); c@178: void reset(); c@178: c@178: InputDomain getInputDomain() const { return TimeDomain; } c@178: c@178: std::string getIdentifier() const; c@178: std::string getName() const; c@178: std::string getDescription() const; c@178: std::string getMaker() const; c@178: int getPluginVersion() const; c@178: std::string getCopyright() const; c@178: size_t getPreferredBlockSize() const; c@178: size_t getPreferredStepSize() const; c@178: c@178: OutputList getOutputDescriptors() const; c@178: c@178: ParameterList getParameterDescriptors() const; c@178: float getParameter(std::string paramid) const; c@178: void setParameter(std::string paramid, float newval); c@178: c@178: FeatureSet process(const float *const *inputBuffers, c@178: Vamp::RealTime timestamp); c@178: c@178: FeatureSet getRemainingFeatures(); c@178: c@178: protected: c@178: size_t m_stepSize; c@178: size_t m_blockSize; c@178: c@178: int m_scales; c@178: int m_flength; c@178: Wavelet::Type m_wavelet; c@178: float m_threshold; c@178: float m_absolute; c@178: c@190: vector m_lpd; c@190: vector m_hpd; c@178: c@178: vector< vector > m_samplePass; c@178: }; c@178: c@178: c@178: #endif