comparison rdf/RDFExporter.cpp @ 1644:513192aa9b03 single-point

Further API updates
author Chris Cannam
date Wed, 13 Mar 2019 16:00:13 +0000
parents 7a23dfe65d66
children 1cc9a0d4b1b6
comparison
equal deleted inserted replaced
1643:7a23dfe65d66 1644:513192aa9b03
101 { 101 {
102 NoteModel *m = dynamic_cast<NoteModel *>(m_model); 102 NoteModel *m = dynamic_cast<NoteModel *>(m_model);
103 if (m) { 103 if (m) {
104 f.hasTimestamp = true; 104 f.hasTimestamp = true;
105 f.hasDuration = true; 105 f.hasDuration = true;
106 EventVector ee(m->getPoints()); 106 EventVector ee(m->getAllEvents());
107 for (auto e: ee) { 107 for (auto e: ee) {
108 f.timestamp = RealTime::frame2RealTime(e.getFrame(), sr).toVampRealTime(); 108 f.timestamp = RealTime::frame2RealTime(e.getFrame(), sr).toVampRealTime();
109 f.duration = RealTime::frame2RealTime(e.getDuration(), sr).toVampRealTime(); 109 f.duration = RealTime::frame2RealTime(e.getDuration(), sr).toVampRealTime();
110 f.values.clear(); 110 f.values.clear();
111 f.values.push_back(e.getValue()); 111 f.values.push_back(e.getValue());