LCXL: some final fixes
authorJan Lentfer <jan.lentfer@web.de>
Thu, 8 Nov 2018 17:01:08 +0000 (18:01 +0100)
committerRobin Gareus <robin@gareus.org>
Sun, 11 Nov 2018 18:52:37 +0000 (19:52 +0100)
libs/surfaces/launch_control_xl/controllers.cc
libs/surfaces/launch_control_xl/launch_control_xl.cc

index 94021fa48127b82a3e23efe432148d3bc512afa8..039084a99ee77bcf7dae039d66deee4cd869db33 100644 (file)
@@ -866,7 +866,7 @@ LaunchControlXL::knob_pan(uint8_t n)
 
        if (buttons_down.find(Device) != buttons_down.end()) { // Device button hold
 #ifdef MIXBUS
-               ac = stripable[n]->comp_threshold_controllable();
+               ac = stripable[n]->filter_freq_controllable(true);
 #else
                ac = stripable[n]->pan_width_control();
 #endif
@@ -1096,6 +1096,10 @@ LaunchControlXL::dm_check_dummy (DeviceStatus ds)
 void
 LaunchControlXL::dm_fader (FaderID id) {
 
+       if (!first_selected_stripable()) {
+               return;
+       }
+
        boost::shared_ptr<AutomationControl> ac;
        boost::shared_ptr<Fader> fader;
 
index ac9a784d15fb9def2616adbb16c6578a7fae8d82..4e094c21f09363b93c74605e11c49934f6bd90d0 100644 (file)
@@ -895,6 +895,7 @@ LaunchControlXL::stripable_selection_changed ()
 #endif
                init_knobs_and_buttons();
                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);
-
        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]);