• 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: Code example for MIDI->AudioUnit->Audio back to program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code example for MIDI->AudioUnit->Audio back to program


  • Subject: Re: Code example for MIDI->AudioUnit->Audio back to program
  • From: Brian Willoughby <email@hidden>
  • Date: Fri, 25 Jan 2008 12:29:44 -0800

Hi Peter,

If there is an existing AudioUnit that you are eying, then you would need to write an AU host application to gain program access to it. There is some sample code showing how to do this in AudioUnitHosting, I believe. I can't remember at the moment exactly how you send MIDI data to the AU, probably a callback. But you pull the audio data from the AU as an AU host, so then you'll have it available to render to AIFF (maybe with AudioFile, if you like) and/or connect to an output audio unit to be heard.

However, if you're going to write both the plugin and the host, then you don't really need to learn all about AU just yet. You could simply write a program that uses CoreMIDI and renders audio data directly to an output unit and/or file. I only point this out because you mentioned "what plugins you need to make" - so I'm not sure whether you're writing your own plugins. The AudioUnit API exists to allow us to mix code from more than one developer, conveniently. But if you're writing almost everything yourself then you don't necessarily need to jump through all the hoops unless you want to plug your synth into another host, or plug another synth into your engine.

Brian Willoughby
Sound Consulting


On Jan 25, 2008, at 12:17, PETER GANNON wrote:

Hi,
I'm looking for some code examples for the following.

My program would send out MIDI data to an AudioUnit (like SimpleSynth).
It would get back audio data.
My program would have access to the audio data (so my program could render the data to AIFF file merged with some other audio data for example) , and be responsible for sending the data out to be heard.


I'm not sure how this is supposed to be done, so maybe someone could describe the overall process of what connections/ plugins I need to make, also to any code examples that might be available.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40sounds.wa.com


This email sent to email@hidden

_______________________________________________
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


References: 
 >Code example for MIDI->AudioUnit->Audio back to program (From: PETER GANNON <email@hidden>)

  • Prev by Date: Re: missing the first IOAudioSelectorControl notification?
  • Next by Date: Re: missing the first IOAudioSelectorControl notification?
  • Previous by thread: Code example for MIDI->AudioUnit->Audio back to program
  • Next by thread: AUEventListenerNotify and property changes in Leopard
  • Index(es):
    • Date
    • Thread