fix up parsing of send gain MIDI bindings so that they actually work
This commit is contained in:
parent
645e9caeee
commit
b5f36f5788
@ -104,11 +104,10 @@ ControllableDescriptor::set (const std::string& str)
|
|||||||
}
|
}
|
||||||
} else if (path[1] == "send") {
|
} else if (path[1] == "send") {
|
||||||
|
|
||||||
if (path.size() == 3 && rest.size() == 3) {
|
if (path.size() == 3 && rest.size() == 2) {
|
||||||
if (path[2] == "gain") {
|
if (path[2] == "gain") {
|
||||||
_subtype = SendGain;
|
_subtype = SendGain;
|
||||||
_target.push_back (atoi (rest[1]));
|
_target.push_back (atoi (rest[1]));
|
||||||
_target.push_back (atoi (rest[2]));
|
|
||||||
} else {
|
} else {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user