about summary refs log tree commit diff
path: root/MIDI.ino
diff options
context:
space:
mode:
authorJared DeCook <jared@shapingthesilence.com>2022-11-19 17:51:34 -0500
committerZach DeCook <zachdecook@librem.one>2022-11-19 17:51:34 -0500
commit37cb602acfc6e28dbd163071ecc77d1d362ab1f8 (patch)
tree11b110182340fe2097b1a5eb888ed17a7f452354 /MIDI.ino
parent51cd1b7953145134b387ecf6b3606b4257c2b9a7 (diff)
downloadHexBoard-37cb602acfc6e28dbd163071ecc77d1d362ab1f8.tar.gz
v1.1 WIP
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