annotate plugins/Mfcc.h @ 198:3a76aa26b578 tip master

wscript: check for 64bit using sys.maxsize (closes #3)
author Paul Brossier <piem@piem.org>
date Mon, 04 Dec 2017 01:42:19 +0100
parents b147d06397bc
children
rev   line source
piem@69 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
piem@69 2
piem@69 3 /*
piem@69 4 Vamp feature extraction plugins using Paul Brossier's Aubio library.
piem@69 5
piem@69 6 Copyright (C) 2006-2015 Paul Brossier <piem@aubio.org>
piem@69 7
piem@110 8 This file is part of vamp-aubio-plugins.
piem@69 9
piem@69 10 vamp-aubio is free software: you can redistribute it and/or modify
piem@69 11 it under the terms of the GNU General Public License as published by
piem@69 12 the Free Software Foundation, either version 3 of the License, or
piem@69 13 (at your option) any later version.
piem@69 14
piem@69 15 vamp-aubio is distributed in the hope that it will be useful,
piem@69 16 but WITHOUT ANY WARRANTY; without even the implied warranty of
piem@69 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
piem@69 18 GNU General Public License for more details.
piem@69 19
piem@69 20 You should have received a copy of the GNU General Public License
piem@69 21 along with aubio. If not, see <http://www.gnu.org/licenses/>.
piem@69 22
piem@69 23 */
piem@69 24
piem@69 25 #ifndef _MFCC_PLUGIN_H_
piem@69 26 #define _MFCC_PLUGIN_H_
piem@69 27
piem@69 28 #include <vamp-sdk/Plugin.h>
piem@69 29 #include <aubio/aubio.h>
piem@69 30
piem@69 31 #include "Types.h"
piem@69 32
piem@69 33 class Mfcc : public Vamp::Plugin
piem@69 34 {
piem@69 35 public:
piem@69 36 Mfcc(float inputSampleRate);
piem@69 37 virtual ~Mfcc();
piem@69 38
piem@69 39 bool initialise(size_t channels, size_t stepSize, size_t blockSize);
piem@69 40 void reset();
piem@69 41
piem@69 42 InputDomain getInputDomain() const { return TimeDomain; }
piem@69 43
piem@69 44 std::string getIdentifier() const;
piem@69 45 std::string getName() const;
piem@69 46 std::string getDescription() const;
piem@69 47 std::string getMaker() const;
piem@69 48 int getPluginVersion() const;
piem@69 49 std::string getCopyright() const;
piem@69 50
piem@69 51 ParameterList getParameterDescriptors() const;
piem@69 52 float getParameter(std::string) const;
piem@69 53 void setParameter(std::string, float);
piem@69 54
piem@69 55 size_t getPreferredStepSize() const;
piem@69 56 size_t getPreferredBlockSize() const;
piem@69 57
piem@69 58 OutputList getOutputDescriptors() const;
piem@69 59
piem@69 60 FeatureSet process(const float *const *inputBuffers,
piem@69 61 Vamp::RealTime timestamp);
piem@69 62
piem@69 63 FeatureSet getRemainingFeatures();
piem@69 64
piem@69 65 protected:
piem@69 66 fvec_t *m_ibuf;
piem@69 67 aubio_pvoc_t *m_pvoc;
piem@69 68 cvec_t *m_ispec;
piem@69 69 aubio_mfcc_t *m_mfcc;
piem@69 70 fvec_t *m_ovec;
piem@69 71
piem@69 72 size_t m_nfilters;
piem@69 73 size_t m_ncoeffs;
piem@69 74
piem@69 75 size_t m_stepSize;
piem@69 76 size_t m_blockSize;
piem@69 77 };
piem@69 78
piem@69 79
piem@69 80 #endif