Reorganized transformer instances, separating Midi and XML export

See #52