summaryrefslogtreecommitdiff
path: root/libs/surfaces/us2400
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2017-10-15 18:13:28 -0500
committerBen Loftis <ben@harrisonconsoles.com>2017-10-19 11:53:55 -0500
commit23c2b751aa1f80d5129d13d4bda39ecc05ac2aac (patch)
treecff23f9bc43953349decfa709f622c1b51e134da /libs/surfaces/us2400
parent618020424e7be8e73d7003124dee6f5b3e61221a (diff)
US2400: map knobs for mixbus strips, when selected.
Diffstat (limited to 'libs/surfaces/us2400')
-rw-r--r--libs/surfaces/us2400/strip.cc92
1 files changed, 57 insertions, 35 deletions
diff --git a/libs/surfaces/us2400/strip.cc b/libs/surfaces/us2400/strip.cc
index aa186c0b38..f8229d9369 100644
--- a/libs/surfaces/us2400/strip.cc
+++ b/libs/surfaces/us2400/strip.cc
@@ -776,8 +776,64 @@ Strip::setup_trackview_vpot (boost::shared_ptr<Stripable> r)
_vpot->set_mode(Pot::wrap);
#ifdef MIXBUS
+
+ //Trim & dynamics
+ switch (global_pos) {
+ case 0:
+ pc = r->trim_control ();
+ _vpot->set_mode(Pot::boost_cut);
+ break;
+
+ case 1:
+ pc = r->pan_azimuth_control ();
+ _vpot->set_mode(Pot::dot);
+ break;
+
+ case 2:
+ pc = r->comp_threshold_controllable();
+ break;
+
+ case 3:
+ pc = r->comp_speed_controllable();
+ break;
+
+ case 4:
+ pc = r->comp_mode_controllable();
+ _vpot->set_mode(Pot::wrap);
+ break;
+
+ case 5:
+ pc = r->comp_makeup_controllable();
+ break;
+
+
+ } //trim & dynamics
+
+
+ //EQ
int eq_band = -1;
- if (r->is_input_strip ()) {
+ if (r->mixbus ()) {
+
+ switch (global_pos) {
+
+ case 6:
+ pc = r->pan_width_control();
+ break;
+
+ case 7:
+ pc = r->tape_drive_controllable();
+ break;
+
+ case 8:
+ case 9:
+ case 10:
+ eq_band = (global_pos-8);
+ pc = r->eq_gain_controllable (eq_band);
+ _vpot->set_mode(Pot::boost_cut);
+ break;
+ }
+
+ } else if (r->is_input_strip ()) {
#ifdef MIXBUS32C
switch (global_pos) {
@@ -828,39 +884,6 @@ Strip::setup_trackview_vpot (boost::shared_ptr<Stripable> r)
#endif
- //trim & dynamics
-
- switch (global_pos) {
- case 0:
- pc = r->trim_control ();
- _vpot->set_mode(Pot::boost_cut);
- break;
-
- case 1:
- pc = r->pan_azimuth_control ();
- _vpot->set_mode(Pot::dot);
- break;
-
- case 2:
- pc = r->comp_threshold_controllable();
- break;
-
- case 3:
- pc = r->comp_speed_controllable();
- break;
-
- case 4:
- pc = r->comp_mode_controllable();
- _vpot->set_mode(Pot::wrap);
- break;
-
- case 5:
- pc = r->comp_makeup_controllable();
- break;
-
-
- } //trim & dynamics
-
//mixbus sends
switch (global_pos) {
case 16:
@@ -873,7 +896,6 @@ Strip::setup_trackview_vpot (boost::shared_ptr<Stripable> r)
case 23:
pc = r->send_level_controllable ( global_pos - 16 );
break;
-
} //global_pos switch
} //if input_strip