From 812fad85672557103284f446422ec29e24367a84 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Thu, 9 Feb 2012 23:08:13 -0800 Subject: [PATCH] Mixer: Feedback control values to OSC senders. --- mixer/src/Module.C | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/mixer/src/Module.C b/mixer/src/Module.C index a47e98d..279ddd4 100644 --- a/mixer/src/Module.C +++ b/mixer/src/Module.C @@ -261,8 +261,6 @@ Module::Port::osc_control_change_exact ( const char *path, const char *types, lo OSC_DMSG(); -// const Port *p = c->control_output[0].connected_port(); - float f = argv[0]->f; if ( p->hints.ranged ) @@ -275,7 +273,8 @@ Module::Port::osc_control_change_exact ( const char *path, const char *types, lo p->control_value( f ); - mixer->osc_endpoint->send( lo_message_get_source( msg ), "/reply", path, "ok" ); +// mixer->osc_endpoint->send( lo_message_get_source( msg ), "/reply", path, "ok" ); + mixer->osc_endpoint->send( lo_message_get_source( msg ), path, argv[0]->f ); return 0; } @@ -285,8 +284,6 @@ Module::Port::osc_control_change_cv ( const char *path, const char *types, lo_ar { Module::Port *p = (Module::Port*)user_data; -// const Port *p = c->control_output[0].connected_port(); - float f = argv[0]->f; if (p->hints.ranged ) @@ -302,9 +299,8 @@ Module::Port::osc_control_change_cv ( const char *path, const char *types, lo_ar p->control_value( f ); -// c->control_value = f; - - mixer->osc_endpoint->send( lo_message_get_source( msg ), "/reply", path, "ok" ); +// mixer->osc_endpoint->send( lo_message_get_source( msg ), "/reply", path, "ok" ); + mixer->osc_endpoint->send( lo_message_get_source( msg ), path, argv[0]->f ); return 0; }