Mercurial > hg > qm-vamp-plugins
view plugins/DWT.h @ 190:af6a5ba00a8f
Some fixes for MSVC
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 01 Feb 2018 16:36:55 +0000 |
parents | f96ea0e4b475 |
children |
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. This file copyright 2009 Thomas Wilmering. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See the file COPYING included with this distribution for more information. */ #ifndef _DWT_PLUGIN_H_ #define _DWT_PLUGIN_H_ #include <vamp-sdk/Plugin.h> #include <dsp/wavelet/Wavelet.h> using std::vector; class DWT : public Vamp::Plugin { public: DWT(float inputSampleRate); virtual ~DWT(); bool initialise(size_t channels, size_t stepSize, size_t blockSize); void reset(); InputDomain getInputDomain() const { return TimeDomain; } std::string getIdentifier() const; std::string getName() const; std::string getDescription() const; std::string getMaker() const; int getPluginVersion() const; std::string getCopyright() const; size_t getPreferredBlockSize() const; size_t getPreferredStepSize() const; OutputList getOutputDescriptors() const; ParameterList getParameterDescriptors() const; float getParameter(std::string paramid) const; void setParameter(std::string paramid, float newval); FeatureSet process(const float *const *inputBuffers, Vamp::RealTime timestamp); FeatureSet getRemainingFeatures(); protected: size_t m_stepSize; size_t m_blockSize; int m_scales; int m_flength; Wavelet::Type m_wavelet; float m_threshold; float m_absolute; vector<double> m_lpd; vector<double> m_hpd; vector< vector<float> > m_samplePass; }; #endif