Turn an Arduino into a USB MIDI instrument. Full polyphony is supported, and latency is imperceptible.
- Get the Arduino IDE.
- Get the MIDIUSB Library for Arduino
- Get an Arduino that is compatible with the MIDIUSB Library. I like to use the Arduino Due. For users in South Africa, I recommend these clones from DIY Electronics.
- Upload the sketch to the Arduino.
- Somehow cause your instrument to connect GPIO pins to ground.
For each GPIO pin that is connected to ground, a note will play.
Each GPIO pin corresponds to a MIDI note number.
Each MIDI note number corresponds to a pitch.
These can be modified by editing the
setup()
function in the sketch.