Ignore MIDNAM NRPN Controls for the time being
This fixes an issue with Novation_BassStationII.midnam duplicate assignments CC + NRPN.
This commit is contained in:
parent
757c29ae68
commit
0f24316c3c
|
@ -250,6 +250,9 @@ Control::set_state (const XMLTree& tree, const XMLNode& node)
|
||||||
} else {
|
} else {
|
||||||
_type = "7bit";
|
_type = "7bit";
|
||||||
}
|
}
|
||||||
|
if (_type == "NRPN") {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
_number = string_to_int(tree, node.property("Number")->value());
|
_number = string_to_int(tree, node.property("Number")->value());
|
||||||
_name = node.property("Name")->value();
|
_name = node.property("Name")->value();
|
||||||
|
|
||||||
|
@ -292,7 +295,9 @@ ControlNameList::set_state (const XMLTree& tree, const XMLNode& node)
|
||||||
i != node.children().end(); ++i) {
|
i != node.children().end(); ++i) {
|
||||||
if ((*i)->name() == "Control") {
|
if ((*i)->name() == "Control") {
|
||||||
boost::shared_ptr<Control> control(new Control());
|
boost::shared_ptr<Control> control(new Control());
|
||||||
control->set_state (tree, *(*i));
|
if (control->set_state (tree, *(*i))) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (_controls.find(control->number()) == _controls.end()) {
|
if (_controls.find(control->number()) == _controls.end()) {
|
||||||
_controls.insert(make_pair(control->number(), control));
|
_controls.insert(make_pair(control->number(), control));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user