Mercurial > hg > svcore
comparison transform/FeatureExtractionModelTransformer.cpp @ 1651:7a56bb85030f single-point
Introduce deferred notifier, + start converting sparse time-value model (perhaps we should rename it too)
author | Chris Cannam |
---|---|
date | Mon, 18 Mar 2019 14:17:20 +0000 |
parents | 1cc9a0d4b1b6 |
children | 5b7b01da430a |
comparison
equal
deleted
inserted
replaced
1650:bbfb5a1e4b84 | 1651:7a56bb85030f |
---|---|
1002 if (!targetModel) targetModel = model; | 1002 if (!targetModel) targetModel = model; |
1003 // std::cerr << "adding point to model " << targetModel | 1003 // std::cerr << "adding point to model " << targetModel |
1004 // << " for output " << n << " bin " << i << std::endl; | 1004 // << " for output " << n << " bin " << i << std::endl; |
1005 } | 1005 } |
1006 | 1006 |
1007 targetModel->addPoint | 1007 targetModel->add(Event(frame, value, label)); |
1008 (SparseTimeValueModel::Point(frame, value, label)); | |
1009 } | 1008 } |
1010 | 1009 |
1011 } else if (isOutput<NoteModel>(n) || isOutput<RegionModel>(n)) { | 1010 } else if (isOutput<NoteModel>(n) || isOutput<RegionModel>(n)) { |
1012 | 1011 |
1013 int index = 0; | 1012 int index = 0; |