LCXL: track select: change from 1 strip at a time to whole bank
This commit is contained in:
parent
266c5fbc16
commit
3f77c1245c
@ -526,13 +526,13 @@ LaunchControlXL::button_track_mode(TrackMode state)
|
||||
void
|
||||
LaunchControlXL::button_select_left()
|
||||
{
|
||||
switch_bank (max (0, bank_start - 1));
|
||||
switch_bank (max (0, bank_start - (7 + (LaunchControlXL::use_fader8master))));
|
||||
}
|
||||
|
||||
void
|
||||
LaunchControlXL::button_select_right()
|
||||
{
|
||||
switch_bank (max (0, bank_start + 1));
|
||||
switch_bank (max (0, bank_start + 7 + (LaunchControlXL::use_fader8master)));
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -852,7 +852,7 @@ LaunchControlXL::switch_bank (uint32_t base)
|
||||
|
||||
boost::shared_ptr<Stripable> s[8];
|
||||
uint32_t different = 0;
|
||||
int stripable_counter;
|
||||
uint8_t stripable_counter;
|
||||
|
||||
if (LaunchControlXL::use_fader8master) {
|
||||
stripable_counter = 7;
|
||||
@ -867,16 +867,17 @@ LaunchControlXL::switch_bank (uint32_t base)
|
||||
}
|
||||
}
|
||||
|
||||
if (sl && sr) {
|
||||
write(sl->state_msg((base)));
|
||||
write(sr->state_msg((s[1] != 0)));
|
||||
}
|
||||
|
||||
if (!s[0]) {
|
||||
/* not even the first stripable exists, do nothing */
|
||||
return;
|
||||
}
|
||||
|
||||
if (sl && sr) {
|
||||
boost::shared_ptr<Stripable> next_base = session->get_remote_nth_stripable (base+8, PresentationInfo::Flag (PresentationInfo::Route|PresentationInfo::VCA));
|
||||
write(sl->state_msg((base)));
|
||||
write(sr->state_msg((next_base != 0)));
|
||||
}
|
||||
|
||||
stripable_connections.drop_connections ();
|
||||
|
||||
for (int n = 0; n < stripable_counter; ++n) {
|
||||
|
Loading…
Reference in New Issue
Block a user