summaryrefslogtreecommitdiff
path: root/muse2/muse
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2011-04-12 18:14:23 +0000
committerTim E. Real <termtech@rogers.com>2011-04-12 18:14:23 +0000
commit18af0454db620150bd409edd451b5dd1283880b0 (patch)
tree66347697a6323e1ddf92c87d8851f6a1df1000c7 /muse2/muse
parent0bda9316471dd2c96aee754a352fb32fba77edeb (diff)
Possible fix for FLAM GUI controls - send current control values in PluginI::oscUpdate()
Diffstat (limited to 'muse2/muse')
-rw-r--r--muse2/muse/plugin.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/muse2/muse/plugin.cpp b/muse2/muse/plugin.cpp
index e1abbb5e..0acb5f8b 100644
--- a/muse2/muse/plugin.cpp
+++ b/muse2/muse/plugin.cpp
@@ -2518,7 +2518,6 @@ int PluginI::oscUpdate()
#ifdef DSSI_SUPPORT
// Send project directory.
_oscif.oscSendConfigure(DSSI_PROJECT_DIRECTORY_KEY, museProject.toLatin1().constData()); // song->projectPath()
- #endif
/*
// Send current string configuration parameters.
@@ -2537,19 +2536,20 @@ int PluginI::oscUpdate()
unsigned long bank, prog;
synti->currentProg(&prog, &bank, 0);
_oscIF.oscSendProgram(prog, bank);
+ */
// Send current control values.
- unsigned long ports = synth->_controlInPorts;
- for(unsigned long i = 0; i < ports; ++i)
+ //unsigned long ports = controlPorts;
+ for(int i = 0; i < controlPorts; ++i)
{
- unsigned long k = synth->pIdx(i);
- _oscIF.oscSendControl(k, controls[i]);
+ //unsigned long k = synth->pIdx(i);
+ //_oscIF.oscSendControl(k, controls[i]);
+ _oscif.oscSendControl(controls[i].idx, controls[i].val);
// Avoid overloading the GUI if there are lots and lots of ports.
if((i+1) % 50 == 0)
usleep(300000);
}
-
- */
+ #endif // DSSI_SUPPORT
return 0;
}