Simple touch-to-USB-MIDI code for the Bare Conductive Touch Board. Touching an electrode sends a USB MIDI message with a note - the 12 electrodes are mapped to a scale with one semitone per electrode - 12 semitones = 1 octave!
-
Arduino 1.5.6 or later
-
Arduino's instructions for installing libraries are available here
-
Bare Conductive MPR121 library (zip file download here)
-
ARcore Arduino Hardware Plugin (zip file download here) - instructions on installing this hardware plugin folder are available here.
-
Close the Arduino IDE if you have it open.
-
Download the .zip or clone the repository to your local machine - if downloading the .zip, extract the contents somewhere that suits you.
-
Take the Midi_interface folder and move it to Arduino Sketchbook Folder. This will be different for each operating system:
Windows
Libraries\Documents\Arduino
or
My Documents\Arduino
Mac
Documents/Arduino
Linux (Ubuntu)
Home/Arduino
If this folder does not exist, create it first.
-
Reopen the Arduino IDE - you should now be able to open the sketch in the File -> Sketchbook menu.