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 Mel Bands (40)";
+ desc.description = "Size of filterbank used to compute mel bands (fixed to 40 for now)";
desc.minValue = 40;
desc.maxValue = 40;
desc.defaultValue = 40;
d.binCount = m_nfilters;
d.isQuantized = true;
d.sampleType = OutputDescriptor::FixedSampleRate;
- d.sampleRate = m_inputSampleRate / m_stepSize;
+ d.sampleRate = OutputDescriptor::OneSamplePerStep;
list.push_back(d);
return list;
MelEnergy::FeatureSet
MelEnergy::process(const float *const *inputBuffers,
- Vamp::RealTime timestamp)
+ UNUSED Vamp::RealTime timestamp)
{
FeatureSet returnFeatures;
aubio_filterbank_do(m_melbank, 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);