summaryrefslogtreecommitdiff
path: root/libs/surfaces/osc/osc_select_observer.cc
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2016-06-09 11:11:48 -0700
committerLen Ovens <len@ovenwerks.net>2016-06-09 11:11:48 -0700
commit4905422a47c8068951bacb53b55884cf0dec5602 (patch)
tree765947885e125d7c6692f3d4c71173ab9eecb694 /libs/surfaces/osc/osc_select_observer.cc
parent199f20ff2c6f1437acca412b2eda994aa31f663c (diff)
OSC: Added pan width to selected
Diffstat (limited to 'libs/surfaces/osc/osc_select_observer.cc')
-rw-r--r--libs/surfaces/osc/osc_select_observer.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/surfaces/osc/osc_select_observer.cc b/libs/surfaces/osc/osc_select_observer.cc
index c6cbaaecbd..0b57bda728 100644
--- a/libs/surfaces/osc/osc_select_observer.cc
+++ b/libs/surfaces/osc/osc_select_observer.cc
@@ -92,6 +92,13 @@ OSCSelectObserver::OSCSelectObserver (boost::shared_ptr<Stripable> s, lo_address
pan_controllable->Changed.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::send_change_message, this, X_("/select/pan_stereo_position"), _strip->pan_azimuth_control()), OSC::instance());
send_change_message ("/select/pan_stereo_position", _strip->pan_azimuth_control());
}
+
+ boost::shared_ptr<Controllable> width_controllable = boost::dynamic_pointer_cast<Controllable>(_strip->pan_width_control());
+ if (width_controllable) {
+ width_controllable->Changed.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::send_change_message, this, X_("/select/pan_stereo_width"), _strip->pan_width_control()), OSC::instance());
+ send_change_message ("/select/pan_stereo_width", _strip->pan_width_control());
+ }
+
// detecting processor changes requires cast to route
boost::shared_ptr<Route> r = boost::dynamic_pointer_cast<Route>(_strip);
r->processors_changed.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::send_restart, this, -1), OSC::instance());
@@ -127,6 +134,7 @@ OSCSelectObserver::~OSCSelectObserver ()
}
clear_strip ("/select/trimdB", 0);
clear_strip ("/select/pan_stereo_position", 0.5);
+ clear_strip ("/select/pan_stereo_width", 1);
}
if (feedback[9]) {
clear_strip ("/select/signal", 0);