Mercurial > hg > svcore
diff rdf/RDFImporter.cpp @ 1643:7a23dfe65d66 single-point
Update NoteModel to use EventSeries. This is incomplete and won't provide enough to update svgui for it yet; must also refactor to avoid duplication of nasty APIs when updating the rest of the models
author | Chris Cannam |
---|---|
date | Wed, 13 Mar 2019 14:50:10 +0000 |
parents | 70e172e6cc59 |
children | 513192aa9b03 |
line wrap: on
line diff
--- a/rdf/RDFImporter.cpp Wed Mar 13 14:46:54 2019 +0000 +++ b/rdf/RDFImporter.cpp Wed Mar 13 14:50:10 2019 +0000 @@ -745,7 +745,7 @@ level = values[1]; } } - NoteModel::Point point(ftime, value, fduration, level, label); + Event point(ftime, value, fduration, level, label); nm->addPoint(point); } else { float value = 0.f, duration = 1.f, level = 1.f; @@ -758,8 +758,8 @@ } } } - NoteModel::Point point(ftime, value, sv_frame_t(lrintf(duration)), - level, label); + Event point(ftime, value, sv_frame_t(lrintf(duration)), + level, label); nm->addPoint(point); } return;