diff plugin/DSSIPluginInstance.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
line wrap: on
line diff
--- a/plugin/DSSIPluginInstance.cpp	Fri Mar 24 18:15:50 2006 +0000
+++ b/plugin/DSSIPluginInstance.cpp	Mon Mar 27 15:03:02 2006 +0000
@@ -773,6 +773,13 @@
 }
 
 float
+DSSIPluginInstance::getControlOutputValue(unsigned int output) const
+{
+    if (output > m_controlPortsOut.size()) return 0.0;
+    return (*m_controlPortsOut[output].second);
+}
+
+float
 DSSIPluginInstance::getParameterValue(unsigned int parameter) const
 {
 #ifdef DEBUG_DSSI