• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Timing when AU sends Midi Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Timing when AU sends Midi Events


  • Subject: Timing when AU sends Midi Events
  • From: Peter Meier <email@hidden>
  • Date: Thu, 8 Apr 2010 18:35:35 +0200

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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Step Sequencer
  • Next by Date: Re: iPhone SW Decoding Performance of MP3 vs AAC
  • Previous by thread: Re: Step Sequencer
  • Next by thread: Audio Queue Help.
  • Index(es):
    • Date
    • Thread