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