Added R. Luke DuBois' test MIDI code into library

Hope to test this code and integrate it into project adapting as
necessary.