offset automation by processor latency for bouncing/freezing

the same remains to be done for general route processing
offset automation by latency
optimize midi delayline.