From 5827fdc8e1c756a7a6d6f3f57432d341730560d7 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 21 Oct 2024 06:52:26 -0600 Subject: [PATCH] Maybe support N6ARA TinyMIDI: needs testing --- static/scripts/inputs.mjs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/static/scripts/inputs.mjs b/static/scripts/inputs.mjs index ec289d2..b96f873 100644 --- a/static/scripts/inputs.mjs +++ b/static/scripts/inputs.mjs @@ -194,19 +194,23 @@ export class MIDI extends Input{ return } - switch (data[1] % 12) { - case 0: // C + switch (data[1]) { + case 0: // Vail Adapter this.keyer.Straight(begin) break - case 1: // C# + case 1: // Vail Adapter + case 20: // N6ARA TinyMIDI this.keyer.Key(0, begin) break - case 2: // D + case 2: // Vail Adapter + case 21: // N6ARA TinyMIDI this.keyer.Key(1, begin) break default: return } + + } }