Record and quantize Midi notes

That’s fine Martin. I did do a bit more on it and added some crude quantisation. I then tried processing a longer midi file with it and it fell over eventually through lack of resources. Couldn’t generate enough threads. I also set it up to record the input into a json file which could be replayed, using existing code from my record/player project which was not so dissimilar.