Sorry to bother you again. I'm now trying to get my MIDI synced properly. Up to now I've just been send my MIDI without a timeStamp, and while this does work, it's little bit bizzare as I've not been able to properly time my note-off messages.
I played around with AudioGetCurrentHostTime(), but when I use that timestamp my MIDI ends up playing about 130 ms earlier than it should--I think I understand why this is happening and I think the solution is to work with the hostTime that contained in the AudioTimeStamp that AU host passes in the render callback instead.
My problem is that I don't really know how to acesss it from my processReplace method. Is it even accessible?
After doing an entire day's worth of research, I can't for the life of me figure out why on earth my MIDI is recording early. The timestamp I'm getting from AudioGetCurrentHostTime() should be correct. When I play in real time everything sounds great, but the recorded notes are all delayed.
Very disappointing. I guess here ends my foray in the world of AU. Thanks for all your help.