Mercurial > hg > vamp-aubio-plugins
comparison plugins/MelEnergy.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 |
---|---|
187 d.unit = ""; | 187 d.unit = ""; |
188 d.hasFixedBinCount = true; | 188 d.hasFixedBinCount = true; |
189 d.binCount = m_nfilters; | 189 d.binCount = m_nfilters; |
190 d.isQuantized = true; | 190 d.isQuantized = true; |
191 d.sampleType = OutputDescriptor::FixedSampleRate; | 191 d.sampleType = OutputDescriptor::FixedSampleRate; |
192 d.sampleRate = m_inputSampleRate / m_stepSize; | 192 d.sampleRate = OutputDescriptor::OneSamplePerStep; |
193 list.push_back(d); | 193 list.push_back(d); |
194 | 194 |
195 return list; | 195 return list; |
196 } | 196 } |
197 | 197 |
216 | 216 |
217 aubio_pvoc_do(m_pvoc, m_ibuf, m_ispec); | 217 aubio_pvoc_do(m_pvoc, m_ibuf, m_ispec); |
218 aubio_filterbank_do(m_melbank, m_ispec, m_ovec); | 218 aubio_filterbank_do(m_melbank, m_ispec, m_ovec); |
219 | 219 |
220 Feature feature; | 220 Feature feature; |
221 //feature.hasTimestamp = false; | |
222 feature.timestamp = timestamp; | |
223 for (uint_t i = 0; i < m_ovec->length; i++) { | 221 for (uint_t i = 0; i < m_ovec->length; i++) { |
224 float value = m_ovec->data[i]; | 222 float value = m_ovec->data[i]; |
225 feature.values.push_back(value); | 223 feature.values.push_back(value); |
226 } | 224 } |
227 | 225 |