clean disabled code in midiseq
tiny fix
cast away constness in authorized audio-thread-code: doUndo etc