• 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
Re: au midi/control output in panther
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: au midi/control output in panther
      • From: William Stewart <email@hidden>
References: 
 >au midi/control output in panther (From: Matthew Johnson <email@hidden>)
 >Re: au midi/control output in panther (From: Chris Reed <email@hidden>)
 >Re: au midi/control output in panther (From: William Stewart <email@hidden>)

  • Prev by Date: Re: HAL Device question
  • Next by Date: Re: [coreaudio] Re: Setting buffer size?
  • Previous by thread: Re: au midi/control output in panther
  • Next by thread: Re: au midi/control output in panther
  • Index(es):
    • Date
    • Thread