comparison framework/SVFileReader.cpp @ 649:284cb118368e single-point

Further updates for new API - but we still need some more support in the API itself
author Chris Cannam
date Tue, 19 Mar 2019 13:06:58 +0000
parents eec0c50bb44f
children b63dfd7e2780
comparison
equal deleted inserted replaced
648:eec0c50bb44f 649:284cb118368e
1096 if (stvm) { 1096 if (stvm) {
1097 // SVCERR << "Current dataset is a sparse time-value model" << endl; 1097 // SVCERR << "Current dataset is a sparse time-value model" << endl;
1098 float value = 0.0; 1098 float value = 0.0;
1099 value = attributes.value("value").trimmed().toFloat(&ok); 1099 value = attributes.value("value").trimmed().toFloat(&ok);
1100 QString label = attributes.value("label"); 1100 QString label = attributes.value("label");
1101 stvm->addPoint(SparseTimeValueModel::Point(frame, value, label)); 1101 stvm->add(Event(frame, value, label));
1102 return ok; 1102 return ok;
1103 } 1103 }
1104 1104
1105 NoteModel *nm = dynamic_cast<NoteModel *>(m_currentDataset); 1105 NoteModel *nm = dynamic_cast<NoteModel *>(m_currentDataset);
1106 1106