mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
LCXL: Mixbus secondary function for Ctrl buttons
In Mixbus holding Device and pressing
one (or many) of the Track Control buttons
will toggle the Master Assignment for the
corresponding track
This commit is contained in:
parent
fa7c8f6013
commit
266c5fbc16
1 changed files with 14 additions and 0 deletions
|
|
@ -485,6 +485,20 @@ LaunchControlXL::button_track_control(uint8_t n) {
|
|||
if (!stripable[n]) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (buttons_down.find(Device) != buttons_down.end()) {
|
||||
DEBUG_TRACE (DEBUG::LaunchControlXL, "DEVICE BUTTON HOLD\n");
|
||||
#ifdef MIXBUS
|
||||
if (stripable[n] != master) {
|
||||
DEBUG_TRACE (DEBUG::LaunchControlXL, "MIXBUS Master Assign\n");
|
||||
stripable[n]->master_send_enable_controllable()->set_value (!stripable[n]->master_send_enable_controllable()->get_value(), PBD::Controllable::UseGroup);
|
||||
}
|
||||
#else
|
||||
/* something useful for Ardour */
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
boost::shared_ptr<AutomationControl> ac = get_ac_by_state(n);
|
||||
|
||||
if (ac) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue