From 499912b07d5f05bc3afa4051c74ab908f1bc230b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 23 Oct 2023 17:45:41 -0600 Subject: [PATCH] get Launchpad X port names in the right order Unlike the LP Pro, the "DAW" port comes first, not last --- libs/surfaces/launchpad_x/lpx.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/surfaces/launchpad_x/lpx.cc b/libs/surfaces/launchpad_x/lpx.cc index bd303cb5dd..e25432208d 100644 --- a/libs/surfaces/launchpad_x/lpx.cc +++ b/libs/surfaces/launchpad_x/lpx.cc @@ -338,13 +338,13 @@ LaunchPadX::set_state (const XMLNode & node, int version) std::string LaunchPadX::input_port_name () const { - return X_(":Launchpad X MK3.*MIDI (In|1)"); + return X_(":Launchpad X MK3.*MIDI (In|2)"); } std::string LaunchPadX::output_port_name () const { - return X_(":Launchpad X MK3.*MIDI (Out|1)"); + return X_(":Launchpad X MK3.*MIDI (Out|2)"); } void @@ -849,7 +849,7 @@ LaunchPadX::connect_daw_ports () * newer ALSA and other platforms. */ - std::regex rx (X_("Launchpad X.*(DAW|MIDI 2)"), std::regex::extended); + std::regex rx (X_("Launchpad X.*(DAW|MIDI 1)"), std::regex::extended); auto is_dawport = [&rx](string const &s) { std::string pn = AudioEngine::instance()->get_hardware_port_name_by_name(s);