Rewriting MIDI

Open/close

See #85
Rewriting MIDI

Input

See #85