Skip to content

Commit

Permalink
Fix MIDI key off multichannel bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
frostburn committed Apr 18, 2024
1 parent efac5f6 commit 885d1ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -169,8 +171,6 @@ function midiNoteOn(index: number, rawAttack?: number, channel?: number) {
} else {
tuningTableKeyOff(info.whiteNumber)
}
} else {
tuningTableKeyOff(index)
}
noteOff(rawRelease)
}
Expand Down

0 comments on commit 885d1ac

Please sign in to comment.