RtMidi input working (experimental); misc fixes