mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
MCP: hopefully fix ardour->controller for faders
git-svn-id: svn://localhost/ardour2/branches/3.0@11922 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c8ea24d2f4
commit
d96edb4dcb
1 changed files with 5 additions and 3 deletions
|
|
@ -259,6 +259,8 @@ Strip::notify_route_deleted ()
|
||||||
void
|
void
|
||||||
Strip::notify_gain_changed (bool force_update)
|
Strip::notify_gain_changed (bool force_update)
|
||||||
{
|
{
|
||||||
|
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("gain changed for strip %1\n", _index));
|
||||||
|
|
||||||
if (_route && _fader) {
|
if (_route && _fader) {
|
||||||
|
|
||||||
if (!_fader->in_use()) {
|
if (!_fader->in_use()) {
|
||||||
|
|
@ -266,11 +268,11 @@ Strip::notify_gain_changed (bool force_update)
|
||||||
double pos;
|
double pos;
|
||||||
|
|
||||||
switch (_surface->mcp().flip_mode()) {
|
switch (_surface->mcp().flip_mode()) {
|
||||||
case MackieControlProtocol::Swap:
|
case MackieControlProtocol::Normal:
|
||||||
pos = _route->gain_control()->get_value();
|
pos = _route->gain_control()->get_value();
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case MackieControlProtocol::Normal:
|
case MackieControlProtocol::Swap:
|
||||||
case MackieControlProtocol::Zero:
|
case MackieControlProtocol::Zero:
|
||||||
case MackieControlProtocol::Mirror:
|
case MackieControlProtocol::Mirror:
|
||||||
/* fader is used for something else and/or
|
/* fader is used for something else and/or
|
||||||
|
|
@ -284,7 +286,7 @@ Strip::notify_gain_changed (bool force_update)
|
||||||
_surface->write (_fader->set_position (pos));
|
_surface->write (_fader->set_position (pos));
|
||||||
_last_fader_position_written = pos;
|
_last_fader_position_written = pos;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue