Skip to content

Commit

Permalink
fix #64961: Different MIDI ports for drum parts
Browse files Browse the repository at this point in the history
  • Loading branch information
Igevorse authored and lasconic committed Jun 13, 2015
1 parent ea3fe82 commit e975879
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libmscore/score.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ void Score::rebuildMidiMapping()
{
_midiMapping.clear();
int port = 0;
int drumPort = 0;
int midiChannel = 0;
int idx = 0;
int maxport = 0;
Expand All @@ -907,9 +908,12 @@ void Score::rebuildMidiMapping()
MidiMapping mm;
if (port > maxport)
maxport = port;
if (drumPort > maxport)
maxport = drumPort;
if (drum) {
mm.port = port;
mm.port = drumPort;
mm.channel = 9;
drumPort++;
}
else {
mm.port = port;
Expand Down

0 comments on commit e975879

Please sign in to comment.