Adafruit Circuit Playground Projects
##Midi Converter How to converter MIDIs so they are playable on the Adafruit Circuit Playground
- Use a Midi-to-Arduino converter such as https://extramaster.net/tools/midiToArduino/ to get a raw tones file (select Raw device option on https://extramaster.net/tools/midiToArduino/)
- Save the raw tones output to a file named rawoutput.txt
- Use the bash one-liner
cat rawoutput.txt | sed '/D/d' | cut -d" " -f2,3 | cut -d, -f 1,2 | sed -e 's/^/CircuitPlayground.playTone(/' | sed 's/$/);/'
to convert the newly-created rawoutput.txt to Adafruit Circuit Playground library compatible tone list. - Insert the Adafruit Circuit Playground library compatible tone list into your project where appropriate.
- Enjoy!