For for Bug [775654] DOTT: Hanging notes

Corrected active notes tracking when switching
between Type 2 SMF tracks. Although Note Off
events from the previous track are properly
simulated, those sustaining notes are cleared
from the active notes list so that jumps
within the new track will not attempt to
sustain them again.

svn-id: r9194
This commit is contained in:
Jamieson Christian 2003-07-26 19:37:54 +00:00
parent 8b358b1208
commit be898b414f

View File

@ -263,6 +263,7 @@ bool MidiParser::setTrack (int track) {
allNotesOff();
resetTracking();
memset (_active_notes, 0, sizeof(_active_notes));
_active_track = track;
_position._play_pos = _tracks[track];
parseNextEvent (_next_event);