From 37cb602acfc6e28dbd163071ecc77d1d362ab1f8 Mon Sep 17 00:00:00 2001 From: Jared DeCook Date: Sat, 19 Nov 2022 17:51:34 -0500 Subject: v1.1 WIP --- MIDI.ino | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 MIDI.ino (limited to 'MIDI.ino') diff --git a/MIDI.ino b/MIDI.ino new file mode 100644 index 0000000..77c786b --- /dev/null +++ b/MIDI.ino @@ -0,0 +1,15 @@ +// Send MIDI Note On +void noteOn(byte channel, byte pitch, byte velocity) { + MIDI.sendNoteOn(pitch, velocity, channel); + if (diagnostics == 3) { + Serial.print(pitch); + Serial.print(", "); + Serial.print(velocity); + Serial.print(", "); + Serial.println(channel); + } +} +// Send MIDI Note Off +void noteOff(byte channel, byte pitch, byte velocity) { + MIDI.sendNoteOff(pitch, velocity, channel); +} \ No newline at end of file -- cgit 1.4.1