mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
LCXL: Fix a problem in switch_bank
This commit is contained in:
parent
45f83beb17
commit
ff0ee75a56
2 changed files with 5 additions and 1 deletions
|
|
@ -674,6 +674,7 @@ LaunchControlXL::solo_mute_rec_changed(uint32_t n) {
|
||||||
if (!stripable[n]) {
|
if (!stripable[n]) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
DEBUG_TRACE (DEBUG::LaunchControlXL, "solo_mute_rec_changed - CALLING switch_bank(bank_start)\n");
|
||||||
switch_bank(bank_start);
|
switch_bank(bank_start);
|
||||||
//update_track_control_led(n);
|
//update_track_control_led(n);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -271,6 +271,7 @@ LaunchControlXL::init_buttons()
|
||||||
void
|
void
|
||||||
LaunchControlXL::init_buttons (ButtonID buttons[], uint8_t i)
|
LaunchControlXL::init_buttons (ButtonID buttons[], uint8_t i)
|
||||||
{
|
{
|
||||||
|
DEBUG_TRACE (DEBUG::LaunchControlXL, "init_buttons buttons[]\n");
|
||||||
for (uint8_t n = 0; n < i; ++n) {
|
for (uint8_t n = 0; n < i; ++n) {
|
||||||
boost::shared_ptr<TrackButton> button = boost::dynamic_pointer_cast<TrackButton> (id_note_button_map[buttons[n]]);
|
boost::shared_ptr<TrackButton> button = boost::dynamic_pointer_cast<TrackButton> (id_note_button_map[buttons[n]]);
|
||||||
if (button) {
|
if (button) {
|
||||||
|
|
@ -307,6 +308,7 @@ LaunchControlXL::init_buttons (ButtonID buttons[], uint8_t i)
|
||||||
void
|
void
|
||||||
LaunchControlXL::init_buttons (bool startup)
|
LaunchControlXL::init_buttons (bool startup)
|
||||||
{
|
{
|
||||||
|
DEBUG_TRACE (DEBUG::LaunchControlXL, "init_buttons (bool startup)\n");
|
||||||
if (startup && !device_mode()) {
|
if (startup && !device_mode()) {
|
||||||
switch_bank(bank_start);
|
switch_bank(bank_start);
|
||||||
return;
|
return;
|
||||||
|
|
@ -1090,7 +1092,6 @@ LaunchControlXL::switch_bank (uint32_t base)
|
||||||
if (n == stripable_counter) { /* last strip +1 -> another bank exists */
|
if (n == stripable_counter) { /* last strip +1 -> another bank exists */
|
||||||
DEBUG_TRACE (DEBUG::LaunchControlXL, string_compose ("StripableList iterator - n: %1. Filling next_base\n", n));
|
DEBUG_TRACE (DEBUG::LaunchControlXL, string_compose ("StripableList iterator - n: %1. Filling next_base\n", n));
|
||||||
next_base = *strip;
|
next_base = *strip;
|
||||||
bank_start = base;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1101,6 +1102,8 @@ LaunchControlXL::switch_bank (uint32_t base)
|
||||||
/* not even the first stripable exists, do nothing */
|
/* not even the first stripable exists, do nothing */
|
||||||
DEBUG_TRACE (DEBUG::LaunchControlXL, "not even first stripable exists.. returning\n");
|
DEBUG_TRACE (DEBUG::LaunchControlXL, "not even first stripable exists.. returning\n");
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
bank_start = base;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sl && sr) {
|
if (sl && sr) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue