Firmware for HexBoard MIDI controller
Diffstat (limited to 'MIDI.ino')
-rw-r--r--MIDI.ino15
1 files changed, 15 insertions, 0 deletions
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