Copyright (C) 2006-2015 Paul Brossier <piem@aubio.org>
- This file is part of vamp-aubio.
+ This file is part of vamp-aubio-plugins.
vamp-aubio is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
ParameterDescriptor desc;
desc.identifier = "nfilters";
desc.name = "Number of filters";
- desc.description = "Size of filterbank used to compute MFCCs";
- desc.minValue = 10;
- desc.maxValue = 100;
+ desc.description = "Size of mel filterbank used to compute MFCCs (fixed to 40 for now)";
+ desc.minValue = 40;
+ desc.maxValue = 40;
desc.defaultValue = 40;
desc.isQuantized = true;
desc.quantizeStep = 1;
d.binCount = m_ncoeffs;
d.isQuantized = true;
d.sampleType = OutputDescriptor::FixedSampleRate;
- d.sampleRate = m_inputSampleRate / m_stepSize;
+ d.sampleRate = OutputDescriptor::OneSamplePerStep;
list.push_back(d);
return list;
aubio_mfcc_do(m_mfcc, m_ispec, m_ovec);
Feature feature;
- //feature.hasTimestamp = false;
- feature.timestamp = timestamp;
for (uint_t i = 0; i < m_ovec->length; i++) {
float value = m_ovec->data[i];
feature.values.push_back(value);