summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lentfer <jan.lentfer@web.de>2018-08-20 20:41:02 +0200
committerRobin Gareus <robin@gareus.org>2018-08-22 19:56:10 +0200
commitfa7c8f60137b08969e5162065104ee7c1b5ef44c (patch)
treef4fed08e557c06e047005f14dabb5d81fde11bfd
parentd17b6c5eead08d74d6fd6a631d0688d5bb2349ea (diff)
LCXL: Add some Mixbus functionality
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
-rw-r--r--libs/surfaces/launch_control_xl/launch_control_xl.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/surfaces/launch_control_xl/launch_control_xl.cc b/libs/surfaces/launch_control_xl/launch_control_xl.cc
index b542efe2fa..f92d6125aa 100644
--- a/libs/surfaces/launch_control_xl/launch_control_xl.cc
+++ b/libs/surfaces/launch_control_xl/launch_control_xl.cc
@@ -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();
}