Mercurial > hg > sonic-visualiser
comparison 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 |
comparison
equal
deleted
inserted
replaced
9:8b34a6460545 | 10:582f4d6e82c7 |
---|---|
361 | 361 |
362 // std::cerr << "last configuration: " << configurationXml.toStdString() << std::endl; | 362 // std::cerr << "last configuration: " << configurationXml.toStdString() << std::endl; |
363 | 363 |
364 Vamp::PluginBase *plugin = 0; | 364 Vamp::PluginBase *plugin = 0; |
365 | 365 |
366 bool frequency = false; | |
367 | |
366 if (FeatureExtractionPluginFactory::instanceFor(id)) { | 368 if (FeatureExtractionPluginFactory::instanceFor(id)) { |
367 | 369 |
368 plugin = FeatureExtractionPluginFactory::instanceFor(id)->instantiatePlugin | 370 Vamp::Plugin *vp = |
371 FeatureExtractionPluginFactory::instanceFor(id)->instantiatePlugin | |
369 (id, inputModel->getSampleRate()); | 372 (id, inputModel->getSampleRate()); |
373 if (vp) { | |
374 plugin = vp; | |
375 frequency = (vp->getInputDomain() == Vamp::Plugin::FrequencyDomain); | |
376 } | |
370 | 377 |
371 } else if (RealTimePluginFactory::instanceFor(id)) { | 378 } else if (RealTimePluginFactory::instanceFor(id)) { |
372 | 379 |
373 plugin = RealTimePluginFactory::instanceFor(id)->instantiatePlugin | 380 plugin = RealTimePluginFactory::instanceFor(id)->instantiatePlugin |
374 (id, 0, 0, inputModel->getSampleRate(), 1024, 1); | 381 (id, 0, 0, inputModel->getSampleRate(), 1024, 1); |
396 | 403 |
397 PluginParameterDialog *dialog = new PluginParameterDialog(plugin, | 404 PluginParameterDialog *dialog = new PluginParameterDialog(plugin, |
398 sourceChannels, | 405 sourceChannels, |
399 targetChannels, | 406 targetChannels, |
400 defaultChannel, | 407 defaultChannel, |
401 output); | 408 output, |
409 true, | |
410 frequency); | |
402 if (dialog->exec() == QDialog::Accepted) { | 411 if (dialog->exec() == QDialog::Accepted) { |
403 ok = true; | 412 ok = true; |
404 } | 413 } |
405 configurationXml = PluginXml(plugin).toXmlString(); | 414 configurationXml = PluginXml(plugin).toXmlString(); |
406 channel = dialog->getChannel(); | 415 channel = dialog->getChannel(); |