Player platform:
Windows, 64 bits continuous build of the Player.
Describe the issue in detail and how to reproduce it:
While using a custom soundfont (the default setting on Windows does not work for this issue), interrupt a MIDI track with the command Play BGM: (OFF), and then play another MIDI track (can be the same one). When the new MIDI track will play, some notes of the previous MIDI track will be heard while they should not.
You can test this with testgame: interact with the NPC on the left or right to play a MIDI, then the one at the center to stop it, and then the one on the left or right again to encounter the issue (make sure to have a custom soundfont to encounter the issue).
MIDIissue.zip
Reported by ajie on X, with the following footage as an example:
https://twitter.com/aj_108fn/status/1716463030903652845