13
0

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.
This commit is contained in:
Caleb Potter 2022-04-20 11:58:48 -05:00 committed by Paul Davis
parent b5487415ec
commit 0d05cd231b

View File

@ -799,9 +799,10 @@ Strip::setup_trackview_vpot (boost::shared_ptr<Stripable> r)
_vpot->set_mode(Pot::wrap); _vpot->set_mode(Pot::wrap);
#ifdef MIXBUS
const uint32_t global_pos = _surface->mcp().global_index (*this); const uint32_t global_pos = _surface->mcp().global_index (*this);
#ifdef MIXBUS
//Trim & dynamics //Trim & dynamics
switch (global_pos) { switch (global_pos) {
case 0: case 0:
@ -924,6 +925,48 @@ Strip::setup_trackview_vpot (boost::shared_ptr<Stripable> r)
} //global_pos switch } //global_pos switch
} //if input_strip } //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 #endif //ifdef MIXBUS
if (pc) { //control found; set our knob to watch for changes in it if (pc) { //control found; set our knob to watch for changes in it