initial pass at MIDI input for scripting