I'd like to share a patch of mine. It is still WIP but here is the first working version which makes use of the new draw command in purr data.
It needs some abstractions like 'm_scale' from Rj-lib. I've packed everything in a zipped folder. Would be nice if someone could test it and tell me if it works.
There are also two demo Midi.files included.