From 5e67630b23ae2570e8a27069f4d39f5c81981879 Mon Sep 17 00:00:00 2001 From: Jan Lentfer Date: Wed, 15 Aug 2018 22:22:36 +0200 Subject: [PATCH] LCXL: add isolate solo as secondary function Holding the Device button and press one of the Track Focus button will toggle solo isolation on the correspongind track --- libs/surfaces/launch_control_xl/controllers.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/surfaces/launch_control_xl/controllers.cc b/libs/surfaces/launch_control_xl/controllers.cc index 987d84981a..17761cba9d 100644 --- a/libs/surfaces/launch_control_xl/controllers.cc +++ b/libs/surfaces/launch_control_xl/controllers.cc @@ -305,6 +305,12 @@ LaunchControlXL::update_track_focus_led(uint8_t n) void LaunchControlXL::button_track_focus(uint8_t n) { + if (buttons_down.find(Device) != buttons_down.end()) { + DEBUG_TRACE (DEBUG::LaunchControlXL, "DEVICE BUTTON HOLD\n"); + stripable[n]->solo_isolate_control()->set_value (!stripable[n]->solo_isolate_control()->get_value(), PBD::Controllable::UseGroup); + return; + } + if (stripable[n]) { if ( stripable[n]->is_selected() ) { ControlProtocol::RemoveStripableFromSelection (stripable[n]);