Hi everyone,
I have a AU (aumf) that sends Midi from within the render() method (depending on the incoming audio). I'm using MidiSend() to let my AU send Midi to a MIDIEndpoint (IAC Bus) to route it back in Logic again.
I try to figure out how to give the Midi events the right timing information to synchronize them with the audio stream. I understand that each Midi-Packet has a MIDITimeStamp to determine when the event should happen. MIDITimeStamp is an absolut time value (not relative to lets say the host play time or the like)
My Midi events should happen in sync with a specific frame of the current process buffer. To sync Midi and audio I have to find the corresponding absolute time of the process buffer, the absolute time when the audio frames (that I process) will *happen*.
Is there a way to find this out ?
In VST I can give each event a *tick* information, that lets it happen on the right frame relative to the beginning of the actual process buffer. Is there something similar in AU ?
Thanks
Peter |