mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
LCXL: split track focus button and led code
This commit is contained in:
parent
ed32a00afa
commit
4789147482
3 changed files with 29 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue