could teach trials their own base rates now
handle better midi metadata, inc global rate
fix various horrible invalidating bugs