comparison transform/FeatureExtractionPluginTransform.cpp @ 51:5f9fdca0c7d8

* Some dull work to continue unifying the fft model and editable dense 3d model interfaces
author Chris Cannam
date Mon, 09 Oct 2006 10:49:46 +0000
parents 209cf46e2413
children ca1e3f5657d5
comparison
equal deleted inserted replaced
50:209cf46e2413 51:5f9fdca0c7d8
443 443
444 model->addPoint(NoteModel::Point(frame, pitch, duration, feature.label.c_str())); 444 model->addPoint(NoteModel::Point(frame, pitch, duration, feature.label.c_str()));
445 445
446 } else { 446 } else {
447 447
448 DenseThreeDimensionalModel::BinValueSet values = feature.values; 448 DenseThreeDimensionalModel::Column values = feature.values;
449 449
450 EditableDenseThreeDimensionalModel *model = 450 EditableDenseThreeDimensionalModel *model =
451 getOutput<EditableDenseThreeDimensionalModel>(); 451 getOutput<EditableDenseThreeDimensionalModel>();
452 if (!model) return; 452 if (!model) return;
453 453
454 model->setBinValues(frame, values); 454 model->setColumn(frame / model->getResolution(), values);
455 } 455 }
456 } 456 }
457 457
458 void 458 void
459 FeatureExtractionPluginTransform::setCompletion(int completion) 459 FeatureExtractionPluginTransform::setCompletion(int completion)