16/01/2013 - Midi functions.