Skip to content

Commit

Permalink
Prevent multiple notes on a single virtual key
Browse files Browse the repository at this point in the history
ref #394
  • Loading branch information
frostburn committed Nov 26, 2023
1 parent b8e4a31 commit 1f283a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/VirtualKeyboardKey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ let noteOff: NoteOff | null = null;
function start() {
active.value = true;
if (noteOff !== null) {
noteOff();
}
noteOff = props.noteOn();
}
Expand Down

0 comments on commit 1f283a8

Please sign in to comment.