13
0

LCXL: some final fixes

This commit is contained in:
Jan Lentfer 2018-11-08 18:01:08 +01:00 committed by Robin Gareus
parent 8f216afa24
commit fb1fe5ce30
2 changed files with 6 additions and 3 deletions

View File

@ -866,7 +866,7 @@ LaunchControlXL::knob_pan(uint8_t n)
if (buttons_down.find(Device) != buttons_down.end()) { // Device button hold if (buttons_down.find(Device) != buttons_down.end()) { // Device button hold
#ifdef MIXBUS #ifdef MIXBUS
ac = stripable[n]->comp_threshold_controllable(); ac = stripable[n]->filter_freq_controllable(true);
#else #else
ac = stripable[n]->pan_width_control(); ac = stripable[n]->pan_width_control();
#endif #endif
@ -1096,6 +1096,10 @@ LaunchControlXL::dm_check_dummy (DeviceStatus ds)
void void
LaunchControlXL::dm_fader (FaderID id) { LaunchControlXL::dm_fader (FaderID id) {
if (!first_selected_stripable()) {
return;
}
boost::shared_ptr<AutomationControl> ac; boost::shared_ptr<AutomationControl> ac;
boost::shared_ptr<Fader> fader; boost::shared_ptr<Fader> fader;

View File

@ -895,6 +895,7 @@ LaunchControlXL::stripable_selection_changed ()
#endif #endif
init_knobs_and_buttons(); init_knobs_and_buttons();
init_dm_callbacks(); init_dm_callbacks();
set_send_bank(0);
} }
} }
@ -1058,8 +1059,6 @@ LaunchControlXL::switch_bank (uint32_t base)
set_send_bank(0); set_send_bank(0);
set_send_bank(0);
boost::shared_ptr<SelectButton> sl = boost::dynamic_pointer_cast<SelectButton>(id_controller_button_map[SelectLeft]); boost::shared_ptr<SelectButton> sl = boost::dynamic_pointer_cast<SelectButton>(id_controller_button_map[SelectLeft]);
boost::shared_ptr<SelectButton> sr = boost::dynamic_pointer_cast<SelectButton>(id_controller_button_map[SelectRight]); boost::shared_ptr<SelectButton> sr = boost::dynamic_pointer_cast<SelectButton>(id_controller_button_map[SelectRight]);