mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
mackie: restore access to trim and pan width control
Change from Evoral::Parameter to AutomationType caused this glitch
This commit is contained in:
parent
cfff528ae9
commit
bff1fcbe48
1 changed files with 8 additions and 4 deletions
|
|
@ -1410,13 +1410,16 @@ Strip::next_pot_mode ()
|
|||
if (!ac) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (_surface->mcp().pot_mode() == MackieControlProtocol::Pan) {
|
||||
if (possible_pot_parameters.empty() || (possible_pot_parameters.size() == 1 && possible_pot_parameters.front() == ac->parameter())) {
|
||||
|
||||
if (possible_pot_parameters.empty() || (possible_pot_parameters.size() == 1 && possible_pot_parameters.front() == ac->parameter().type())) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = possible_pot_parameters.begin(); i != possible_pot_parameters.end(); ++i) {
|
||||
if ((*i) == ac->parameter()) {
|
||||
if ((*i) == ac->parameter().type()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -1432,14 +1435,15 @@ Strip::next_pot_mode ()
|
|||
if (i == possible_pot_parameters.end()) {
|
||||
i = possible_pot_parameters.begin();
|
||||
}
|
||||
|
||||
set_vpot_parameter (*i);
|
||||
} else if (_surface->mcp().pot_mode() == MackieControlProtocol::Trim) {
|
||||
if (possible_trim_parameters.empty() || (possible_trim_parameters.size() == 1 && possible_trim_parameters.front() == ac->parameter())) {
|
||||
if (possible_trim_parameters.empty() || (possible_trim_parameters.size() == 1 && possible_trim_parameters.front() == ac->parameter().type())) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = possible_trim_parameters.begin(); i != possible_trim_parameters.end(); ++i) {
|
||||
if ((*i) == ac->parameter()) {
|
||||
if ((*i) == ac->parameter().type()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue