Midi generation implemented