summaryrefslogtreecommitdiff
path: root/libs/surfaces/launch_control_xl/controllers.cc
diff options
context:
space:
mode:
authorJan Lentfer <jan.lentfer@web.de>2018-08-15 22:19:13 +0200
committerRobin Gareus <robin@gareus.org>2018-08-18 18:12:18 +0200
commit4789147482821b9dfb3c9e32e64c3399ea9950e7 (patch)
tree6a629032ce580dff1c27fea9814865a4071bf507 /libs/surfaces/launch_control_xl/controllers.cc
parented32a00afa441e6a347128c728df1f7b7e2159b3 (diff)
LCXL: split track focus button and led code
Diffstat (limited to 'libs/surfaces/launch_control_xl/controllers.cc')
-rw-r--r--libs/surfaces/launch_control_xl/controllers.cc19
1 files changed, 18 insertions, 1 deletions
diff --git a/libs/surfaces/launch_control_xl/controllers.cc b/libs/surfaces/launch_control_xl/controllers.cc
index 95345a64e0..987d84981a 100644
--- a/libs/surfaces/launch_control_xl/controllers.cc
+++ b/libs/surfaces/launch_control_xl/controllers.cc
@@ -22,6 +22,7 @@
#include "ardour/mute_control.h"
#include "ardour/session.h"
#include "ardour/solo_control.h"
+#include "ardour/solo_isolate_control.h"
#include "launch_control_xl.h"
@@ -280,7 +281,7 @@ LaunchControlXL::track_button_by_range(uint8_t n, uint8_t first, uint8_t middle)
}
void
-LaunchControlXL::button_track_focus(uint8_t n)
+LaunchControlXL::update_track_focus_led(uint8_t n)
{
TrackButton* b = focus_button_by_collumn(n);
@@ -301,6 +302,22 @@ LaunchControlXL::button_track_focus(uint8_t n)
write (b->state_msg());
}
+void
+LaunchControlXL::button_track_focus(uint8_t n)
+{
+ if (stripable[n]) {
+ if ( stripable[n]->is_selected() ) {
+ ControlProtocol::RemoveStripableFromSelection (stripable[n]);
+ } else {
+ ControlProtocol::AddStripableToSelection (stripable[n]);
+ }
+ } else {
+ return;
+ }
+}
+
+
+
boost::shared_ptr<AutomationControl>
LaunchControlXL::get_ac_by_state(uint8_t n) {
boost::shared_ptr<AutomationControl> ac;