diff --git a/src/spessasynth_lib/synthetizer/buffer_voice/midi_channel.js b/src/spessasynth_lib/synthetizer/buffer_voice/midi_channel.js index 9d869a81..e3d668ed 100644 --- a/src/spessasynth_lib/synthetizer/buffer_voice/midi_channel.js +++ b/src/spessasynth_lib/synthetizer/buffer_voice/midi_channel.js @@ -507,7 +507,7 @@ export class MidiChannel { return; } - let note = this.playingNotes.find(n => n.midiNote === midiNote); + let note = this.playingNotes.findLast(n => n.midiNote === midiNote); if(!note) { return