Mercurial > hg > beatroot-vamp
comparison BeatRootVampPlugin.cpp @ 13:0d4048bfadbb
Fixes to beat insertion in Agent. We get plausible results now, but there's probably quite a lot still to do.
author | Chris Cannam |
---|---|
date | Thu, 06 Oct 2011 18:37:50 +0100 |
parents | 1c1e98cd1b2e |
children | f66ed426a14f |
comparison
equal
deleted
inserted
replaced
12:59520cd6abac | 13:0d4048bfadbb |
---|---|
215 f.label = ""; | 215 f.label = ""; |
216 f.values.clear(); | 216 f.values.clear(); |
217 | 217 |
218 FeatureSet fs; | 218 FeatureSet fs; |
219 | 219 |
220 for (int i = 0; i < el.size(); ++i) { | 220 for (EventList::const_iterator i = el.begin(); i != el.end(); ++i) { |
221 f.timestamp = Vamp::RealTime::frame2RealTime(el[i].time, m_inputSampleRate); | 221 f.timestamp = Vamp::RealTime::fromSeconds(i->time); |
222 fs[0].push_back(f); | 222 fs[0].push_back(f); |
223 } | 223 } |
224 | 224 |
225 return fs; | 225 return fs; |
226 } | 226 } |