This commit is contained in:
2024-06-29 20:01:16 +02:00
parent f22a800c93
commit 194857d687
4 changed files with 17 additions and 15 deletions

View File

@@ -149,7 +149,7 @@ class VstChipProcessor : AudioWorkletProcessor() {
console.log("playMidi", bytes)
if (bytes.length > 0) {
var cmdByte = bytes[0]
val channelCmd = ((cmdByte shr 4) and 0xf) in 0x8 .. 0xe
val channelCmd = ((cmdByte shr 4) and 0xf) != 0xf0
val channel = cmdByte and 0xf
println("Channel cmd: $channelCmd")
if (channelCmd && channel != midiChannel) {