comparison transform/FeatureExtractionPluginTransform.cpp @ 179:dab257bd9d2d

...
author Chris Cannam
date Fri, 21 Sep 2007 09:13:11 +0000
parents 4c120dfffe1d
children 21a76c9ed5c3
comparison
equal deleted inserted replaced
178:3e5a32a2acf4 179:dab257bd9d2d
457 if (feature.values.size() > 0) value = feature.values[0]; 457 if (feature.values.size() > 0) value = feature.values[0];
458 458
459 SparseTimeValueModel *model = getOutput<SparseTimeValueModel>(); 459 SparseTimeValueModel *model = getOutput<SparseTimeValueModel>();
460 if (!model) return; 460 if (!model) return;
461 model->addPoint(SparseTimeValueModel::Point(frame, value, feature.label.c_str())); 461 model->addPoint(SparseTimeValueModel::Point(frame, value, feature.label.c_str()));
462 // std::cerr << "SparseTimeValueModel::addPoint(" << frame << ", " << value << "), " << feature.label.c_str() << std::endl;
462 463
463 } else if (m_descriptor->sampleType == 464 } else if (m_descriptor->sampleType ==
464 Vamp::Plugin::OutputDescriptor::VariableSampleRate) { 465 Vamp::Plugin::OutputDescriptor::VariableSampleRate) {
465 466
466 float pitch = 0.0; 467 float pitch = 0.0;