wscript: first waf draft
[vamp-aubio-plugins.git] / plugins / Mfcc.cpp
index b65af4d..fa632e7 100644 (file)
@@ -5,7 +5,7 @@
 
     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
@@ -142,9 +142,9 @@ Mfcc::getParameterDescriptors() const
     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;
@@ -200,7 +200,7 @@ Mfcc::getOutputDescriptors() const
     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;
@@ -208,7 +208,7 @@ Mfcc::getOutputDescriptors() const
 
 Mfcc::FeatureSet
 Mfcc::process(const float *const *inputBuffers,
-               Vamp::RealTime timestamp)
+               __attribute__((unused)) Vamp::RealTime timestamp)
 {
     FeatureSet returnFeatures;
 
@@ -229,8 +229,6 @@ Mfcc::process(const float *const *inputBuffers,
     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);