Skip to content

Commit

Permalink
stop last note instead of first
Browse files Browse the repository at this point in the history
  • Loading branch information
spessasus committed Sep 21, 2023
1 parent a61eba5 commit 80b04c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80b04c9

Please sign in to comment.