MIDI: Musical Instrument Digital Interface
Basic info on the Arduino MIDI project I'm experimenting with
- SparkFun MIDI Shield
- Sample Output from MIDI Out; Note: Encoded format
- Sample Hex dump of above
Resources
- Note: MIDI messages require 320 microseconds per byte to be transmitted
- Snippet of MIDI code to send repeated noteon/noteoff sequence for testing: (noteon, noteoff every 1/4 second)
-
#include
- MIDI_CREATE_DEFAULT_INSTANCE();
- MIDI.begin(MIDI_CHANNEL_OMNI);
- MIDI.sendNoteOn(142, 127, 2); // Send a Note (pitch 42, velo 127 on channel 1)
- delay(250); // Wait for a 1/4 second
- MIDI.sendNoteOff(142, 0, 2); // Stop the note
-
Snippet of sketch where noteon/noteoff note value increases by one for each note:
As hexidecimal format:
7f37 3780 9000
7f38 3880 9000
7f39 3980 9000Middle "C" is note value of 60 (C4)
Annotated hexidecimal format
noteon 7f37 noteoff 3780 9000
noteon 7f38 noteoff 3880 9000
noteon 7f39 noteoff 3980 9000
- Oscilloscope of single MIDI NoteOn
Video of Oscilloscope output (MIDI OUT) running the the above snippet
Note: Specfications show Pin 4 (White) is +5 v, Pin 5 (Red) is single pin output
Reference documents