piem@69: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ piem@69: piem@69: /* piem@69: Vamp feature extraction plugins using Paul Brossier's Aubio library. piem@69: piem@69: Copyright (C) 2006-2015 Paul Brossier piem@69: piem@110: This file is part of vamp-aubio-plugins. piem@69: piem@69: vamp-aubio is free software: you can redistribute it and/or modify piem@69: it under the terms of the GNU General Public License as published by piem@69: the Free Software Foundation, either version 3 of the License, or piem@69: (at your option) any later version. piem@69: piem@69: vamp-aubio is distributed in the hope that it will be useful, piem@69: but WITHOUT ANY WARRANTY; without even the implied warranty of piem@69: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the piem@69: GNU General Public License for more details. piem@69: piem@69: You should have received a copy of the GNU General Public License piem@69: along with aubio. If not, see . piem@69: piem@69: */ piem@69: piem@69: #ifndef _MFCC_PLUGIN_H_ piem@69: #define _MFCC_PLUGIN_H_ piem@69: piem@69: #include piem@69: #include piem@69: piem@69: #include "Types.h" piem@69: piem@69: class Mfcc : public Vamp::Plugin piem@69: { piem@69: public: piem@69: Mfcc(float inputSampleRate); piem@69: virtual ~Mfcc(); piem@69: piem@69: bool initialise(size_t channels, size_t stepSize, size_t blockSize); piem@69: void reset(); piem@69: piem@69: InputDomain getInputDomain() const { return TimeDomain; } piem@69: piem@69: std::string getIdentifier() const; piem@69: std::string getName() const; piem@69: std::string getDescription() const; piem@69: std::string getMaker() const; piem@69: int getPluginVersion() const; piem@69: std::string getCopyright() const; piem@69: piem@69: ParameterList getParameterDescriptors() const; piem@69: float getParameter(std::string) const; piem@69: void setParameter(std::string, float); piem@69: piem@69: size_t getPreferredStepSize() const; piem@69: size_t getPreferredBlockSize() const; piem@69: piem@69: OutputList getOutputDescriptors() const; piem@69: piem@69: FeatureSet process(const float *const *inputBuffers, piem@69: Vamp::RealTime timestamp); piem@69: piem@69: FeatureSet getRemainingFeatures(); piem@69: piem@69: protected: piem@69: fvec_t *m_ibuf; piem@69: aubio_pvoc_t *m_pvoc; piem@69: cvec_t *m_ispec; piem@69: aubio_mfcc_t *m_mfcc; piem@69: fvec_t *m_ovec; piem@69: piem@69: size_t m_nfilters; piem@69: size_t m_ncoeffs; piem@69: piem@69: size_t m_stepSize; piem@69: size_t m_blockSize; piem@69: }; piem@69: piem@69: piem@69: #endif