Mercurial > hg > svcore
comparison plugin/LADSPAPluginInstance.cpp @ 60:3086ff194ea0
* More structural work on feature extraction plugin C <-> C++ adapter
* Allow use of LADSPA/DSSI plugins with control outputs as feature extraction
plugins (DSSI with MIDI output still to come)
* Reorder labels on spectrogram status box
* Minor tweaks in doc etc.
author | Chris Cannam |
---|---|
date | Mon, 27 Mar 2006 15:03:02 +0000 |
parents | 7439f1696314 |
children | 33285f426852 |
comparison
equal
deleted
inserted
replaced
59:9705a1978ecc | 60:3086ff194ea0 |
---|---|
412 | 412 |
413 (*m_controlPortsIn[parameter].second) = value; | 413 (*m_controlPortsIn[parameter].second) = value; |
414 } | 414 } |
415 | 415 |
416 float | 416 float |
417 LADSPAPluginInstance::getControlOutputValue(unsigned int output) const | |
418 { | |
419 if (output > m_controlPortsOut.size()) return 0.0; | |
420 return (*m_controlPortsOut[output].second); | |
421 } | |
422 | |
423 float | |
417 LADSPAPluginInstance::getParameterValue(unsigned int parameter) const | 424 LADSPAPluginInstance::getParameterValue(unsigned int parameter) const |
418 { | 425 { |
419 if (parameter >= m_controlPortsIn.size()) return 0.0; | 426 if (parameter >= m_controlPortsIn.size()) return 0.0; |
420 return (*m_controlPortsIn[parameter].second); | 427 return (*m_controlPortsIn[parameter].second); |
421 } | 428 } |