diff --git a/src/components/VirtualKeyboardKey.vue b/src/components/VirtualKeyboardKey.vue index 64334001..dac9aed4 100644 --- a/src/components/VirtualKeyboardKey.vue +++ b/src/components/VirtualKeyboardKey.vue @@ -19,6 +19,9 @@ let noteOff: NoteOff | null = null; function start() { active.value = true; + if (noteOff !== null) { + noteOff(); + } noteOff = props.noteOn(); }