Mercurial > hg > sonic-visualiser
diff transform/FeatureExtractionPluginTransform.cpp @ 33:544ab25d2372
* Add support for plugin classification using category files.
Add separate menus listing plugins by category, maker, and plugin name.
author | Chris Cannam |
---|---|
date | Thu, 21 Sep 2006 16:43:50 +0000 |
parents | 660a973c157a |
children | 209cf46e2413 |
line wrap: on
line diff
--- a/transform/FeatureExtractionPluginTransform.cpp Thu Sep 21 11:17:19 2006 +0000 +++ b/transform/FeatureExtractionPluginTransform.cpp Thu Sep 21 16:43:50 2006 +0000 @@ -269,8 +269,8 @@ if (blockFrame >= endFrame) break; } - std::cerr << "FeatureExtractionPluginTransform::run: blockFrame " - << blockFrame << std::endl; +// std::cerr << "FeatureExtractionPluginTransform::run: blockFrame " +// << blockFrame << std::endl; long completion = (((blockFrame - startFrame) / m_context.stepSize) * 99) / @@ -463,16 +463,21 @@ binCount = m_descriptor->binCount; } + std::cerr << "FeatureExtractionPluginTransform::setCompletion(" + << completion << ")" << std::endl; + if (binCount == 0) { SparseOneDimensionalModel *model = getOutput<SparseOneDimensionalModel>(); if (!model) return; + std::cerr << "setting on SparseOneDimensionalModel" << std::endl; model->setCompletion(completion); } else if (binCount == 1) { SparseTimeValueModel *model = getOutput<SparseTimeValueModel>(); if (!model) return; + std::cerr << "setting on SparseTimeValueModel" << std::endl; model->setCompletion(completion); } else if (m_descriptor->sampleType == @@ -480,6 +485,7 @@ NoteModel *model = getOutput<NoteModel>(); if (!model) return; + std::cerr << "setting on NoteModel" << std::endl; model->setCompletion(completion); } else { @@ -487,6 +493,7 @@ EditableDenseThreeDimensionalModel *model = getOutput<EditableDenseThreeDimensionalModel>(); if (!model) return; + std::cerr << "setting on EditableDenseThreeDimensionalModel" << std::endl; model->setCompletion(completion); } }