Random fixes to MIDI recording, more coming...
Fixes to the simulated recording test...