Chris@10: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@10: Chris@10: /* Chris@10: Rubber Band Library Chris@10: An audio time-stretching and pitch-shifting library. Chris@10: Copyright 2007-2012 Particular Programs Ltd. Chris@10: Chris@10: This program is free software; you can redistribute it and/or Chris@10: modify it under the terms of the GNU General Public License as Chris@10: published by the Free Software Foundation; either version 2 of the Chris@10: License, or (at your option) any later version. See the file Chris@10: COPYING included with this distribution for more information. Chris@10: Chris@10: Alternatively, if you have a valid commercial licence for the Chris@10: Rubber Band Library obtained by agreement with the copyright Chris@10: holders, you may redistribute and/or modify it under the terms Chris@10: described in that licence. Chris@10: Chris@10: If you wish to distribute code using the Rubber Band Library Chris@10: under terms other than those of the GNU General Public License, Chris@10: you must obtain a valid commercial licence before doing so. Chris@10: */ Chris@10: Chris@10: #ifndef _RUBBERBAND_VAMP_PLUGIN_H_ Chris@10: #define _RUBBERBAND_VAMP_PLUGIN_H_ Chris@10: Chris@10: #include Chris@10: Chris@10: #include "RubberBandStretcher.h" Chris@10: Chris@10: class RubberBandVampPlugin : public Vamp::Plugin Chris@10: { Chris@10: public: Chris@10: RubberBandVampPlugin(float inputSampleRate); Chris@10: virtual ~RubberBandVampPlugin(); Chris@10: Chris@10: bool initialise(size_t channels, size_t stepSize, size_t blockSize); Chris@10: void reset(); Chris@10: Chris@10: InputDomain getInputDomain() const { return TimeDomain; } Chris@10: Chris@10: std::string getIdentifier() const; Chris@10: std::string getName() const; Chris@10: std::string getDescription() const; Chris@10: std::string getMaker() const; Chris@10: int getPluginVersion() const; Chris@10: std::string getCopyright() const; Chris@10: Chris@10: ParameterList getParameterDescriptors() const; Chris@10: float getParameter(std::string id) const; Chris@10: void setParameter(std::string id, float value); Chris@10: Chris@10: OutputList getOutputDescriptors() const; Chris@10: Chris@10: FeatureSet process(const float *const *inputBuffers, Chris@10: Vamp::RealTime timestamp); Chris@10: Chris@10: FeatureSet getRemainingFeatures(); Chris@10: Chris@10: protected: Chris@10: class Impl; Chris@10: Impl *m_d; Chris@10: }; Chris@10: Chris@10: #endif