NoOp: removed spaces, replaced with tabs.
This commit is contained in:
parent
82f31fe624
commit
07e4377d7b
|
@ -1538,79 +1538,79 @@ Strip::setup_dyn_vpot (boost::shared_ptr<Route> r)
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::shared_ptr<AutomationControl> tc = r->comp_threshold_controllable ();
|
boost::shared_ptr<AutomationControl> tc = r->comp_threshold_controllable ();
|
||||||
boost::shared_ptr<AutomationControl> sc = r->comp_speed_controllable ();
|
boost::shared_ptr<AutomationControl> sc = r->comp_speed_controllable ();
|
||||||
boost::shared_ptr<AutomationControl> mc = r->comp_mode_controllable ();
|
boost::shared_ptr<AutomationControl> mc = r->comp_mode_controllable ();
|
||||||
boost::shared_ptr<AutomationControl> kc = r->comp_makeup_controllable ();
|
boost::shared_ptr<AutomationControl> kc = r->comp_makeup_controllable ();
|
||||||
boost::shared_ptr<AutomationControl> rc = r->comp_redux_controllable ();
|
boost::shared_ptr<AutomationControl> rc = r->comp_redux_controllable ();
|
||||||
boost::shared_ptr<AutomationControl> ec = r->comp_enable_controllable ();
|
boost::shared_ptr<AutomationControl> ec = r->comp_enable_controllable ();
|
||||||
|
|
||||||
uint32_t pos = _surface->mcp().global_index (*this);
|
uint32_t pos = _surface->mcp().global_index (*this);
|
||||||
|
|
||||||
/* we will control the pos-th available parameter, from the list in the
|
/* we will control the pos-th available parameter, from the list in the
|
||||||
* order shown above.
|
* order shown above.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
vector<boost::shared_ptr<AutomationControl> > available;
|
vector<boost::shared_ptr<AutomationControl> > available;
|
||||||
vector<AutomationType> params;
|
vector<AutomationType> params;
|
||||||
|
|
||||||
if (tc) { available.push_back (tc); params.push_back (CompThreshold); }
|
if (tc) { available.push_back (tc); params.push_back (CompThreshold); }
|
||||||
if (sc) { available.push_back (sc); params.push_back (CompSpeed); }
|
if (sc) { available.push_back (sc); params.push_back (CompSpeed); }
|
||||||
if (mc) { available.push_back (mc); params.push_back (CompMode); }
|
if (mc) { available.push_back (mc); params.push_back (CompMode); }
|
||||||
if (kc) { available.push_back (kc); params.push_back (CompMakeup); }
|
if (kc) { available.push_back (kc); params.push_back (CompMakeup); }
|
||||||
if (rc) { available.push_back (rc); params.push_back (CompRedux); }
|
if (rc) { available.push_back (rc); params.push_back (CompRedux); }
|
||||||
if (ec) { available.push_back (ec); params.push_back (CompEnable); }
|
if (ec) { available.push_back (ec); params.push_back (CompEnable); }
|
||||||
|
|
||||||
if (pos >= available.size()) {
|
if (pos >= available.size()) {
|
||||||
/* this knob is not needed to control the available parameters */
|
/* this knob is not needed to control the available parameters */
|
||||||
_vpot->set_control (boost::shared_ptr<AutomationControl>());
|
_vpot->set_control (boost::shared_ptr<AutomationControl>());
|
||||||
_surface->write (display (0, string()));
|
_surface->write (display (0, string()));
|
||||||
_surface->write (display (1, string()));
|
_surface->write (display (1, string()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::shared_ptr<AutomationControl> pc;
|
boost::shared_ptr<AutomationControl> pc;
|
||||||
AutomationType param;
|
AutomationType param;
|
||||||
|
|
||||||
pc = available[pos];
|
pc = available[pos];
|
||||||
param = params[pos];
|
param = params[pos];
|
||||||
|
|
||||||
pc->Changed.connect (subview_connections, MISSING_INVALIDATOR, boost::bind (&Strip::notify_dyn_change, this, param, false, true), ui_context());
|
pc->Changed.connect (subview_connections, MISSING_INVALIDATOR, boost::bind (&Strip::notify_dyn_change, this, param, false, true), ui_context());
|
||||||
_vpot->set_control (pc);
|
_vpot->set_control (pc);
|
||||||
|
|
||||||
string pot_id;
|
string pot_id;
|
||||||
|
|
||||||
switch (param) {
|
switch (param) {
|
||||||
case CompThreshold:
|
case CompThreshold:
|
||||||
pot_id = "Thresh";
|
pot_id = "Thresh";
|
||||||
break;
|
break;
|
||||||
case CompSpeed:
|
case CompSpeed:
|
||||||
if (mc) {
|
if (mc) {
|
||||||
pot_id = r->comp_speed_name (mc->get_value());
|
pot_id = r->comp_speed_name (mc->get_value());
|
||||||
} else {
|
} else {
|
||||||
pot_id = "Speed";
|
pot_id = "Speed";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CompMode:
|
case CompMode:
|
||||||
pot_id = "Mode";
|
pot_id = "Mode";
|
||||||
break;
|
break;
|
||||||
case CompMakeup:
|
case CompMakeup:
|
||||||
pot_id = "Makeup";
|
pot_id = "Makeup";
|
||||||
break;
|
break;
|
||||||
case CompRedux:
|
case CompRedux:
|
||||||
pot_id = "Redux";
|
pot_id = "Redux";
|
||||||
break;
|
break;
|
||||||
case CompEnable:
|
case CompEnable:
|
||||||
pot_id = "on/off";
|
pot_id = "on/off";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pot_id.empty()) {
|
if (!pot_id.empty()) {
|
||||||
_surface->write (display (0, pot_id));
|
_surface->write (display (0, pot_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
notify_dyn_change (param, true, false);
|
notify_dyn_change (param, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue
Block a user