Mercurial > hg > svcore
diff transform/FeatureExtractionModelTransformer.cpp @ 1649:1cc9a0d4b1b6 single-point
Update RegionModel following NoteModel, er, model. They have quite a bit in common that we should now pull out some of
author | Chris Cannam |
---|---|
date | Fri, 15 Mar 2019 14:23:50 +0000 |
parents | 29a20719796e |
children | 7a56bb85030f |
line wrap: on
line diff
--- a/transform/FeatureExtractionModelTransformer.cpp Fri Mar 15 10:57:35 2019 +0000 +++ b/transform/FeatureExtractionModelTransformer.cpp Fri Mar 15 14:23:50 2019 +0000 @@ -1057,17 +1057,17 @@ label = QString("[%1] %2").arg(i+1).arg(label); } - model->addPoint(RegionModel::Point(frame, - value, - duration, - label)); + model->add(Event(frame, + value, + duration, + label)); } } else { - model->addPoint(RegionModel::Point(frame, - value, - duration, - feature.label.c_str())); + model->add(Event(frame, + value, + duration, + feature.label.c_str())); } }