Midi input is now more threadsafe than before.