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 May 2, 2023
1 parent c75afb2 commit aa35339
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 aa35339

Please sign in to comment.