if (s) {
if (s->pan_azimuth_control()) {
- s->pan_azimuth_control()->set_value (position, PBD::Controllable::NoGroup);
- endposition = s->pan_azimuth_control()->get_value ();
+ s->pan_azimuth_control()->set_value (s->pan_azimuth_control()->interface_to_internal (position), PBD::Controllable::NoGroup);
+ endposition = s->pan_azimuth_control()->internal_to_interface (s->pan_azimuth_control()->get_value ());
}
}
OSCSurface *sur = get_surface(lo_message_get_source (msg));
}
if (s) {
if(s->pan_azimuth_control()) {
- s->pan_azimuth_control()->set_value (val, PBD::Controllable::NoGroup);
+ s->pan_azimuth_control()->set_value (s->pan_azimuth_control()->interface_to_internal (val), PBD::Controllable::NoGroup);
+ return sel_fail ("pan_stereo_position", s->pan_azimuth_control()->internal_to_interface (s->pan_azimuth_control()->get_value ()), lo_message_get_source (msg));
return 0;
}
}
if (s) {
if(s->pan_azimuth_control()) {
- s->pan_azimuth_control()->set_value (pos, PBD::Controllable::NoGroup);
- return route_send_fail ("pan_stereo_position", ssid, s->pan_azimuth_control()->get_value (), lo_message_get_source (msg));
+ s->pan_azimuth_control()->set_value (s->pan_azimuth_control()->interface_to_internal (pos), PBD::Controllable::NoGroup);
+ return route_send_fail ("pan_stereo_position", ssid, s->pan_azimuth_control()->internal_to_interface (s->pan_azimuth_control()->get_value ()), lo_message_get_source (msg));
}
}
return 0;
}
}
- return sel_fail ("pan_elevation_position", 0.5, lo_message_get_source (msg));
+ return sel_fail ("pan_elevation_position", 0, lo_message_get_source (msg));
}
int
} else {
lo_message_add_int32 (msg, ssid);
}
- lo_message_add_float (msg, (float) controllable->get_value());
+ float val = controllable->get_value();
+ lo_message_add_float (msg, (float) controllable->internal_to_interface (val));
lo_send_message (addr, path.c_str(), msg);
lo_message_free (msg);
clear_strip ("/select/meter", 0);
}
if (feedback[13]) { // Well known controls
- clear_strip ("/select/pan_elevation_position", .5);
+ clear_strip ("/select/pan_elevation_position", 0);
clear_strip ("/select/pan_frontback_position", .5);
clear_strip ("/select/pan_lfe_control", 0);
clear_strip ("/select/comp_enable", 0);