Mercurial > hg > vamp-aubio-plugins
comparison plugins/Mfcc.cpp @ 115:75b436b9cf2f
plugins/{Mfcc,MelEnergy}.cpp: set samplerate to OneSamplePerStep, remove feature.timestamp, thanks to Chris Cannam
author | Paul Brossier <piem@piem.org> |
---|---|
date | Tue, 03 Feb 2015 10:25:08 +0100 |
parents | b147d06397bc |
children | 97ffda1a7342 |
comparison
equal
deleted
inserted
replaced
114:e0db793df4a3 | 115:75b436b9cf2f |
---|---|
198 d.unit = ""; | 198 d.unit = ""; |
199 d.hasFixedBinCount = true; | 199 d.hasFixedBinCount = true; |
200 d.binCount = m_ncoeffs; | 200 d.binCount = m_ncoeffs; |
201 d.isQuantized = true; | 201 d.isQuantized = true; |
202 d.sampleType = OutputDescriptor::FixedSampleRate; | 202 d.sampleType = OutputDescriptor::FixedSampleRate; |
203 d.sampleRate = m_inputSampleRate / m_stepSize; | 203 d.sampleRate = OutputDescriptor::OneSamplePerStep; |
204 list.push_back(d); | 204 list.push_back(d); |
205 | 205 |
206 return list; | 206 return list; |
207 } | 207 } |
208 | 208 |
227 | 227 |
228 aubio_pvoc_do(m_pvoc, m_ibuf, m_ispec); | 228 aubio_pvoc_do(m_pvoc, m_ibuf, m_ispec); |
229 aubio_mfcc_do(m_mfcc, m_ispec, m_ovec); | 229 aubio_mfcc_do(m_mfcc, m_ispec, m_ovec); |
230 | 230 |
231 Feature feature; | 231 Feature feature; |
232 //feature.hasTimestamp = false; | |
233 feature.timestamp = timestamp; | |
234 for (uint_t i = 0; i < m_ovec->length; i++) { | 232 for (uint_t i = 0; i < m_ovec->length; i++) { |
235 float value = m_ovec->data[i]; | 233 float value = m_ovec->data[i]; |
236 feature.values.push_back(value); | 234 feature.values.push_back(value); |
237 } | 235 } |
238 | 236 |