Revision 36:937432fc2898 BeatRootVampPlugin.cpp
| BeatRootVampPlugin.cpp | ||
|---|---|---|
| 239 | 239 |
d.hasDuration = false; |
| 240 | 240 |
list.push_back(d); |
| 241 | 241 |
|
| 242 |
d.identifier = "unfilled"; |
|
| 243 |
d.name = "Un-interpolated beats"; |
|
| 244 |
d.description = "Locations of detected beats, before agent interpolation occurs"; |
|
| 245 |
list.push_back(d); |
|
| 246 |
|
|
| 242 | 247 |
return list; |
| 243 | 248 |
} |
| 244 | 249 |
|
| ... | ... | |
| 300 | 305 |
BeatRootVampPlugin::FeatureSet |
| 301 | 306 |
BeatRootVampPlugin::getRemainingFeatures() |
| 302 | 307 |
{
|
| 303 |
EventList el = m_processor->beatTrack(); |
|
| 308 |
EventList unfilled; |
|
| 309 |
EventList el = m_processor->beatTrack(&unfilled); |
|
| 304 | 310 |
|
| 305 | 311 |
Feature f; |
| 306 | 312 |
f.hasTimestamp = true; |
| ... | ... | |
| 315 | 321 |
fs[0].push_back(f); |
| 316 | 322 |
} |
| 317 | 323 |
|
| 324 |
for (EventList::const_iterator i = unfilled.begin(); |
|
| 325 |
i != unfilled.end(); ++i) {
|
|
| 326 |
f.timestamp = m_origin + Vamp::RealTime::fromSeconds(i->time); |
|
| 327 |
fs[1].push_back(f); |
|
| 328 |
} |
|
| 329 |
|
|
| 318 | 330 |
return fs; |
| 319 | 331 |
} |
| 320 | 332 |
|
Also available in: Unified diff