Skip to content

Commit

Permalink
Fix wrong track order in respect to MIDI channels
Browse files Browse the repository at this point in the history
  • Loading branch information
trig-ger committed May 2, 2015
1 parent 0012dcb commit 548aed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion midi/midifile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ void MidiFile::separateChannel()
for (int ii = 1; ii < nn; ++ii) {
MidiTrack t;
t.setOutChannel(channel[ii]);
_tracks.insert(i + 1, t);
_tracks.insert(i + ii, t);
}
// extract all different channel events from current track to inserted tracks
for (auto ie = mt.events().begin(); ie != mt.events().end(); ) {
Expand Down

0 comments on commit 548aed1

Please sign in to comment.