From 6d9c47c920f8cfaf08b2010bb25974fbc2219a8e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 5 Sep 2023 13:16:02 -0600 Subject: [PATCH] launchpad pro: only light Sends button if the selected stripable has 1+ sends --- libs/surfaces/launchpad_pro/lppro.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libs/surfaces/launchpad_pro/lppro.cc b/libs/surfaces/launchpad_pro/lppro.cc index 2014ad034e..00a9b3616d 100644 --- a/libs/surfaces/launchpad_pro/lppro.cc +++ b/libs/surfaces/launchpad_pro/lppro.cc @@ -1017,6 +1017,18 @@ LaunchPadPro::stripable_selection_changed () light_pad (PadID (Lower1 + selected_pad), find_closest_palette_color (first_selected->presentation_info().color()), 1); } + if (first_selected) { + MIDI::byte msg[3]; + msg[0] = 0x90; + msg[1] = Sends; + if (first_selected->send_name (0).empty()) { + msg[2] = 0x0; + } else { + msg[2] = 0x2; + } + daw_write (msg, 3); + } + /* Make all other selection buttons static */ for (int n = 0; n < 8; ++n) {