diff options
author | Jan Lentfer <jan.lentfer@web.de> | 2018-08-15 22:22:36 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-08-18 18:12:18 +0200 |
commit | 5e67630b23ae2570e8a27069f4d39f5c81981879 (patch) | |
tree | 4ea9dbd4721651f28d0b905b6c344a81f624cb52 | |
parent | 4789147482821b9dfb3c9e32e64c3399ea9950e7 (diff) |
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
-rw-r--r-- | libs/surfaces/launch_control_xl/controllers.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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]); |