13
0

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
This commit is contained in:
Jan Lentfer 2018-08-15 22:22:36 +02:00 committed by Robin Gareus
parent 4789147482
commit 5e67630b23

View File

@ -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]);