Mercurial > hg > vamp-aubio-plugins
comparison plugins/Pitch.cpp @ 12:62414aaaaa7e
* Update to new Vamp process()
* Add hack for getting raw tempo out of hacked Aubio
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 12 Dec 2006 10:42:21 +0000 |
parents | 76c1a7bd0416 |
children | 1169d00391d8 |
comparison
equal
deleted
inserted
replaced
11:dcc20cd836d7 | 12:62414aaaaa7e |
---|---|
168 | 168 |
169 return list; | 169 return list; |
170 } | 170 } |
171 | 171 |
172 Pitch::FeatureSet | 172 Pitch::FeatureSet |
173 Pitch::process(float **inputBuffers, Vamp::RealTime /* timestamp */) | 173 Pitch::process(const float *const *inputBuffers, |
174 Vamp::RealTime /* timestamp */) | |
174 { | 175 { |
175 for (size_t i = 0; i < m_stepSize; ++i) { | 176 for (size_t i = 0; i < m_stepSize; ++i) { |
176 for (size_t j = 0; j < m_channelCount; ++j) { | 177 for (size_t j = 0; j < m_channelCount; ++j) { |
177 fvec_write_sample(m_ibuf, inputBuffers[j][i], j, i); | 178 fvec_write_sample(m_ibuf, inputBuffers[j][i], j, i); |
178 } | 179 } |