Re: au midi/control output in panther
Re: au midi/control output in panther
- Subject: Re: au midi/control output in panther
- From: Chris Reed <email@hidden>
- Date: Wed, 5 Nov 2003 14:48:38 -0600
On Nov 5, 2003, at 1:37 PM, William Stewart wrote:
We're looking at getting an example of this - but will need a bit of
time...
It isn't sufficient just to set the midi type ID. You'll also need to
set a sample rate so that (with the numFrames argument that is passed
in with AudioUnitRender), the AU can translate/interpret the sample
offset time stamps (which is how the time stamp in the MIDI Packets
are to be formatted) into some real time value if needed... The same
semantics as audio connections applies (ie. the format matches - in
this case 'midi' AND the sample rate)...
I know this is scant information, we'll get something available
soon=ish... Happy to answer questions if people are wanting to look at
this and explore it before we get too of course
Can you describe the relationship between the sample rate, the number
of frames, and the time stamps in more detail? (With an example,
please.) The header comments and your description above aren't entirely
clear.
Does this mean that, for instance, I can set the sample rate on a MIDI
stream to, say, 44.1 kHz. Now say the time stamp for the first MIDI
packet is 100 (are the time stamps offset from the beginning of the
buffer?). So does that mean the actual time is buffer start +
100/44100? How does the numFrames fit into this equation?
thanks
-chris
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.