Mixer: Feedback control values to OSC senders.
This commit is contained in:
parent
2d7279a931
commit
812fad8567
|
@ -261,8 +261,6 @@ Module::Port::osc_control_change_exact ( const char *path, const char *types, lo
|
||||||
|
|
||||||
OSC_DMSG();
|
OSC_DMSG();
|
||||||
|
|
||||||
// const Port *p = c->control_output[0].connected_port();
|
|
||||||
|
|
||||||
float f = argv[0]->f;
|
float f = argv[0]->f;
|
||||||
|
|
||||||
if ( p->hints.ranged )
|
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 );
|
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;
|
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;
|
Module::Port *p = (Module::Port*)user_data;
|
||||||
|
|
||||||
// const Port *p = c->control_output[0].connected_port();
|
|
||||||
|
|
||||||
float f = argv[0]->f;
|
float f = argv[0]->f;
|
||||||
|
|
||||||
if (p->hints.ranged )
|
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 );
|
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 ), path, argv[0]->f );
|
||||||
mixer->osc_endpoint->send( lo_message_get_source( msg ), "/reply", path, "ok" );
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue