From 0d05cd231b5b5065b0a2798905b14054163da202 Mon Sep 17 00:00:00 2001 From: Caleb Potter Date: Wed, 20 Apr 2022 11:58:48 -0500 Subject: [PATCH] US2400: maps track parameters and sends to vpots Pots 0-4 now display the 5 parameters from the Mackie track subview when a track is selected and pots 8-23 will display up to the first 16 sends. --- libs/surfaces/us2400/strip.cc | 45 ++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/libs/surfaces/us2400/strip.cc b/libs/surfaces/us2400/strip.cc index 4b181ccfc1..787cd82b9b 100644 --- a/libs/surfaces/us2400/strip.cc +++ b/libs/surfaces/us2400/strip.cc @@ -799,9 +799,10 @@ Strip::setup_trackview_vpot (boost::shared_ptr r) _vpot->set_mode(Pot::wrap); -#ifdef MIXBUS const uint32_t global_pos = _surface->mcp().global_index (*this); +#ifdef MIXBUS + //Trim & dynamics switch (global_pos) { case 0: @@ -924,6 +925,48 @@ Strip::setup_trackview_vpot (boost::shared_ptr r) } //global_pos switch } //if input_strip + +#else + + switch (global_pos) { + // Track view equivalent + case 0: + pc = r->trim_control (); + _vpot->set_mode(Pot::boost_cut); + break; + case 1: + pc = r->monitoring_control (); + break; + case 2: + pc = r->solo_isolate_control (); + break; + case 3: + pc = r->solo_safe_control (); + break; + case 4: + pc = r->phase_control (); + break; + + // Sends + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + pc = r->send_level_controllable (global_pos - 8); + break; + } #endif //ifdef MIXBUS if (pc) { //control found; set our knob to watch for changes in it