• 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
Audio Unit synth how-to
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Audio Unit synth how-to


  • Subject: Audio Unit synth how-to
  • From: h <email@hidden>
  • Date: Fri, 6 May 2005 15:18:47 -0700 (PDT)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys

I am writing an Audio Unit synth based on the MusicDeviceBase class in
the CoreAudio examples.

What I am finding is that HandleNoteOn() and Render() are being called
on the same thread (checked using pthread_self()). Obviously, this
causes note on/off events to be made only between calls to Render().
This allows accuracy of only +/- 1024 or 512 samples, depending on the
number of frames requested.

How do I make the calls to HandleNoteOn/HandleNoteOff come in on the
appropriate thread, and how do I make sure that the notes are turned
on/off in a sample-accurate matter (presumably I need to check before
processing each sample in Render())? Is it something to do with the
inStartFrame parameter to HandleNoteOn/Off?

Is there an example of a sample-accurate midi synth audio unit?

Thanks,
Hamish



__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs
 _______________________________________________
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

  • Follow-Ups:
    • Re: Audio Unit synth how-to
      • From: Chris Rogers <email@hidden>
  • Prev by Date: Re: kAudioUnitErr_TooManyFramesToProcess
  • Next by Date: Re: Audio Unit synth how-to
  • Previous by thread: Re: kAudioUnitErr_TooManyFramesToProcess
  • Next by thread: Re: Audio Unit synth how-to
  • Index(es):
    • Date
    • Thread