/piano-poe

Piano-playing robot for Principles of Engineering, Olin College, Fall 2014

Primary LanguageJavaScriptMIT LicenseMIT

piano-poe

Sending midi file contents to Arduino:

  • Upload playNotev4.ino to Arduino (see below); take note of the serial port to which the Arduino is connected
  • Ensure that you have python-midi installed (see below) OR set midiOutput to testMidiOutput instead of reading from midi in sendCommandv3.py -> sendMidiOutput
  • Start a Python/ipython process (you may need sudo permissions to access the serial port) then run sendCommandv3.py -> serialWrapper()

Installing python-midi:

Compiling playNotev2.ino:

QueueList library:

  • Download Queuelist Library from http://playground.arduino.cc/Code/QueueList
  • Save files in arduino/libraries/QueueList - that is, /usr/share/arduino/libraries
  • After restarting your Arduino environment, be sure you can #include <QueueList.h>

Note library:

  • Pull the Note folder from this git repo
  • Save files in the Note folder from this repo into arduino/libraries/Note (that is, /usr/share/arduino/libraries)
  • After restarting your Arduino environment, be sure you can #include <Note.h>

Installing OpenCV:

Installing Wand (for pdfPng):

  • sudo apt-get install python-wand