Midi code samples for chapter 12
need to get rid of the xcode stuff later