From 885d1aca1451244c63eb6e7d7e165ca707a5cdd0 Mon Sep 17 00:00:00 2001 From: Lumi Pakkanen Date: Thu, 18 Apr 2024 16:37:34 +0300 Subject: [PATCH] Fix MIDI key off multichannel bypass --- src/App.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index e408f6a0..d31e9aea 100644 --- a/src/App.vue +++ b/src/App.vue @@ -158,7 +158,9 @@ function midiNoteOn(index: number, rawAttack?: number, channel?: number) { if (!midi.velocityOn) { rawRelease = 80 } - if (whiteMode === 'simple' || multichannel) { + if (whiteMode === 'off' || whiteMode === 'keyColors' || multichannel) { + tuningTableKeyOff(index) + } else if (whiteMode === 'simple') { if (info.whiteNumber !== undefined) { tuningTableKeyOff(info.whiteNumber) } @@ -169,8 +171,6 @@ function midiNoteOn(index: number, rawAttack?: number, channel?: number) { } else { tuningTableKeyOff(info.whiteNumber) } - } else { - tuningTableKeyOff(index) } noteOff(rawRelease) }