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 Copyright (C) 2006-2015 Paul Brossier <piem@aubio.org>
8 This file is part of vamp-aubio-plugins.
10 vamp-aubio is free software: you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
15 vamp-aubio is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with aubio. If not, see <http://www.gnu.org/licenses/>.
25 #ifndef _MFCC_PLUGIN_H_
26 #define _MFCC_PLUGIN_H_
28 #include <vamp-sdk/Plugin.h>
29 #include <aubio/aubio.h>
33 class Mfcc : public Vamp::Plugin
36 Mfcc(float inputSampleRate);
39 bool initialise(size_t channels, size_t stepSize, size_t blockSize);
42 InputDomain getInputDomain() const { return TimeDomain; }
44 std::string getIdentifier() const;
45 std::string getName() const;
46 std::string getDescription() const;
47 std::string getMaker() const;
48 int getPluginVersion() const;
49 std::string getCopyright() const;
51 ParameterList getParameterDescriptors() const;
52 float getParameter(std::string) const;
53 void setParameter(std::string, float);
55 size_t getPreferredStepSize() const;
56 size_t getPreferredBlockSize() const;
58 OutputList getOutputDescriptors() const;
60 FeatureSet process(const float *const *inputBuffers,
61 Vamp::RealTime timestamp);
63 FeatureSet getRemainingFeatures();