1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
4 Vamp feature extraction plugins using Paul Brossier's Aubio library.
6 Centre for Digital Music, Queen Mary, University of London.
7 This file copyright 2006 Chris Cannam.
9 This file is part of vamp-aubio-plugins.
11 vamp-aubio is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 vamp-aubio is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with aubio. If not, see <http://www.gnu.org/licenses/>.
26 #ifndef _SILENCE_PLUGIN_H_
27 #define _SILENCE_PLUGIN_H_
29 #include <vamp-sdk/Plugin.h>
30 #include <aubio/aubio.h>
32 class Silence : public Vamp::Plugin
35 Silence(float inputSampleRate);
38 bool initialise(size_t channels, size_t stepSize, size_t blockSize);
41 InputDomain getInputDomain() const { return TimeDomain; }
43 std::string getIdentifier() const;
44 std::string getName() const;
45 std::string getDescription() const;
46 std::string getMaker() const;
47 int getPluginVersion() const;
48 std::string getCopyright() const;
50 ParameterList getParameterDescriptors() const;
51 float getParameter(std::string) const;
52 void setParameter(std::string, float);
54 size_t getPreferredStepSize() const;
55 size_t getPreferredBlockSize() const;
57 OutputList getOutputDescriptors() const;
59 FeatureSet process(const float *const *inputBuffers,
60 Vamp::RealTime timestamp);
62 FeatureSet getRemainingFeatures();
72 Vamp::RealTime m_lastChange;
73 Vamp::RealTime m_lastTimestamp;