Mercurial > hg > svcore
diff rdf/RDFExporter.cpp @ 1658:5b7b01da430a single-point
Start updating SparseOneDimensionalModel
author | Chris Cannam |
---|---|
date | Wed, 20 Mar 2019 16:22:13 +0000 |
parents | 7a56bb85030f |
children | 353a2d15f213 |
line wrap: on
line diff
--- a/rdf/RDFExporter.cpp Wed Mar 20 15:45:52 2019 +0000 +++ b/rdf/RDFExporter.cpp Wed Mar 20 16:22:13 2019 +0000 @@ -120,12 +120,11 @@ if (m) { f.hasTimestamp = true; f.hasDuration = false; - const SparseOneDimensionalModel::PointList &pl(m->getPoints()); - for (SparseOneDimensionalModel::PointList::const_iterator i = pl.begin(); - i != pl.end(); ++i) { - f.timestamp = RealTime::frame2RealTime(i->frame, sr).toVampRealTime(); + EventVector ee(m->getAllEvents()); + for (auto e: ee) { + f.timestamp = RealTime::frame2RealTime(e.getFrame(), sr).toVampRealTime(); f.values.clear(); - f.label = i->label.toStdString(); + f.label = e.getLabel().toStdString(); m_fw->write(trackId, transform, output, features, summaryType); } return;