Skip to content

Commit

Permalink
fix #273823: wrong bank for zerberus channel
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Jun 29, 2018
1 parent 68275c4 commit ce86617
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libmscore/instrtemplate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ void InstrumentTemplate::read(XmlReader& e)
channel.append(a);
}
if (useDrumset) {
if (channel[0].bank == 0 && channel[0].name != "Zerberus")
if (channel[0].bank == 0 && channel[0].synti.toLower() != "zerberus")
channel[0].bank = 128;
channel[0].updateInitList();
}
Expand Down
4 changes: 2 additions & 2 deletions libmscore/instrument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ void Instrument::read(XmlReader& e)
_channel.append(a);
}
if (_useDrumset) {
if (_channel[0]->bank == 0 && _channel[0]->name != "Zerberus")
if (_channel[0]->bank == 0 && _channel[0]->synti.toLower() != "zerberus")
_channel[0]->bank = 128;
_channel[0]->updateInitList();
}
Expand Down Expand Up @@ -552,7 +552,7 @@ void Channel::read(XmlReader& e)
else
e.unknown();
}
if (128 == bank && "Zerberus" == synti)
if (128 == bank && "zerberus" == synti.toLower())
bank = 0;

updateInitList();
Expand Down

0 comments on commit ce86617

Please sign in to comment.