Add AuGenerator, fix a few things in midifile