Mercurial > hg > sonic-visualiser
diff transform/TransformFactory.cpp @ 10:582f4d6e82c7
* add window size/increment/shape settings to plugin parameter dialog, though
they aren't yet connected up
author | Chris Cannam |
---|---|
date | Mon, 11 Sep 2006 16:40:18 +0000 |
parents | 40116f709d3b |
children | d88d117e0c34 |
line wrap: on
line diff
--- a/transform/TransformFactory.cpp Mon Sep 11 15:32:49 2006 +0000 +++ b/transform/TransformFactory.cpp Mon Sep 11 16:40:18 2006 +0000 @@ -363,10 +363,17 @@ Vamp::PluginBase *plugin = 0; + bool frequency = false; + if (FeatureExtractionPluginFactory::instanceFor(id)) { - plugin = FeatureExtractionPluginFactory::instanceFor(id)->instantiatePlugin + Vamp::Plugin *vp = + FeatureExtractionPluginFactory::instanceFor(id)->instantiatePlugin (id, inputModel->getSampleRate()); + if (vp) { + plugin = vp; + frequency = (vp->getInputDomain() == Vamp::Plugin::FrequencyDomain); + } } else if (RealTimePluginFactory::instanceFor(id)) { @@ -398,7 +405,9 @@ sourceChannels, targetChannels, defaultChannel, - output); + output, + true, + frequency); if (dialog->exec() == QDialog::Accepted) { ok = true; }