comparison data/fileio/CSVFileReader.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
452 452
453 } else if (modelType == CSVFormat::TwoDimensionalModelWithDurationAndPitch) { 453 } else if (modelType == CSVFormat::TwoDimensionalModelWithDurationAndPitch) {
454 454
455 float level = ((value >= 0.f && value <= 1.f) ? value : 1.f); 455 float level = ((value >= 0.f && value <= 1.f) ? value : 1.f);
456 Event note(frameNo, pitch, duration, level, label); 456 Event note(frameNo, pitch, duration, level, label);
457 model2b->addPoint(note); 457 model2b->add(note);
458 458
459 } else if (modelType == CSVFormat::ThreeDimensionalModel) { 459 } else if (modelType == CSVFormat::ThreeDimensionalModel) {
460 460
461 DenseThreeDimensionalModel::Column values; 461 DenseThreeDimensionalModel::Column values;
462 462