LCXL: Add some Mixbus functionality
authorJan Lentfer <jan.lentfer@web.de>
Mon, 20 Aug 2018 18:41:02 +0000 (20:41 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 22 Aug 2018 17:56:10 +0000 (19:56 +0200)
    in the mixer mode secondary functions
    (Device/Hold) of knobs per track
    will map as follows:

    Send A - trim (same as for Ardour)
    Send B - HPF Freq
    PAN    - Compressor threshold

libs/surfaces/launch_control_xl/launch_control_xl.cc

index b542efe2fa9b990808bf46e02bd881830b99108a..f92d6125aae9a99ee3fe8dfb5937252cbfa2e1de 100644 (file)
@@ -467,13 +467,21 @@ LaunchControlXL::handle_knob_message (Knob* knob)
                }
        } else if (knob->id() >= 8 && knob->id() < 16) { // sendB knob
                if (buttons_down.find(Device) != buttons_down.end()) { // Device button hold
+#ifdef MIXBUS
+                       ac = stripable[chan]->filter_freq_controllable (true);
+#else
                        /* something */
+#endif
                } else {
                        ac = stripable[chan]->send_level_controllable (1);
                }
        } else if (knob->id() >= 16 && knob->id() < 24) { // pan knob
                if (buttons_down.find(Device) != buttons_down.end()) { // Device button hold
+#ifdef MIXBUS
+                       ac = stripable[chan]->comp_threshold_controllable();
+#else
                        ac = stripable[chan]->pan_width_control();
+#endif
                } else {
                        ac = stripable[chan]->pan_azimuth_control();
                }