Mercurial > hg > svcore
diff plugin/transform/FeatureExtractionModelTransformer.cpp @ 333:1afaf98dbf11
* Factor out uses of "Sonic Visualiser" in "common" code to applicationName()
* Add ability to show work title + artist in top-left of pane (thinking of Vect
but may be useful in SV in future)
* A few other generalisations useful for Vect
author | Chris Cannam |
---|---|
date | Fri, 09 Nov 2007 17:46:58 +0000 |
parents | f620ce48c950 |
children | aa8dbac62024 |
line wrap: on
line diff
--- a/plugin/transform/FeatureExtractionModelTransformer.cpp Wed Nov 07 14:53:12 2007 +0000 +++ b/plugin/transform/FeatureExtractionModelTransformer.cpp Fri Nov 09 17:46:58 2007 +0000 @@ -216,6 +216,8 @@ m_output = model; } + + if (m_output) m_output->setSourceModel(m_input); } FeatureExtractionModelTransformer::~FeatureExtractionModelTransformer() @@ -527,27 +529,27 @@ SparseOneDimensionalModel *model = getOutput<SparseOneDimensionalModel>(); if (!model) return; - model->setCompletion(completion); + model->setCompletion(completion, m_context.updates); } else if (binCount == 1) { SparseTimeValueModel *model = getOutput<SparseTimeValueModel>(); if (!model) return; - model->setCompletion(completion); + model->setCompletion(completion, m_context.updates); } else if (m_descriptor->sampleType == Vamp::Plugin::OutputDescriptor::VariableSampleRate) { NoteModel *model = getOutput<NoteModel>(); if (!model) return; - model->setCompletion(completion); + model->setCompletion(completion, m_context.updates); } else { EditableDenseThreeDimensionalModel *model = getOutput<EditableDenseThreeDimensionalModel>(); if (!model) return; - model->setCompletion(completion); + model->setCompletion(completion, m_context.updates); } }