Re: [NEWBIE] Starting...
Re: [NEWBIE] Starting...
- Subject: Re: [NEWBIE] Starting...
- From: Philippe Wicker <email@hidden>
- Date: Fri, 6 Feb 2004 08:05:24 +0100
On Thursday, February 5, 2004, at 01:22 PM, Sanri Parov wrote:
Hi Sanri,
I won't be of a great help for the Cocoa part of your question (I use
Carbon for my UIs). You may have a look to SampleEffectUnit in the
Panther SDK, it contains an example of a Cocoa AU view. Wether this
sample code applies to an Effect AU and not to a MusicDevice AU does
not matter as far as the view component is concerned, they behave
exactly in the same way for both kind of AU. As John (griffin tech)
mentioned in a reply, most of the existing major apps - if not all -
do not support Cocoa AU view and I have no idea when it will be
available (now that Emagic is Apple, maybe it will be done in Logic?).
There is no real market for that. If it is possible to design Carbon
UIs for different plug-ins format (AU, VST, ...) from a common C++ base
code, it is another story to port a Carbon view to a Cocoa view.
Concerning the AU itself. To my knowledge there is no available sample
code. There was a MusicDevice sample in the Logic SDK but as far as I
remember it was a V1 AU (the original AU specification replaced since
now by V2 specs). One samples was posted on this list by a great AU
developer. This sample was not intended to show how a MusicDevice
should be written but as a basis for a discussion of lacking points in
the AU specs. Anyway it is no more available :((
You should search in the list archive for messages with the following
subjects:
Multitimbral Music Devices - Question and Proposal
Parts, Groups and Multi-timbrality
About C++, I'm afraid that you will not be able to escape. A large part
of the work you'll have to do is to declare derived classes and
overwrite base methods provided by the AU framework which is written in
C++. There's no other way than C++ here. Anyway, as soon as you are
inside the body of a method, the differences between Obj-C and C++ are
less obvious, you should feel a little bit more comfortable here.
A tricky part of the design of a MusicDevice is the passing of MIDI
events from the MIDI thread to the render callback in the render
thread. A complete thread safe MIDI queue code was posted on this list
by William Stewart but I cannot remember the subject of the message.
Maybe someone else does?
Another important point is the management of start and stop events
combined with the algorithm to decide what notes should be killed if
you get out of resource. You must always pair a note off to the
corresponding note on otherwise the sound will never stop (stuck note).
Hi everybody,
I'm a new subscriber, a decent Cocoa programmer but totally new to
CoreAudio.
I'd like to create a virtual instrument in form of an Audio Unit.
Are there on the net resources and informations regarding how to start?
Is it possible to code fairly in Cocoa without using C++ or whatsoever?
Any good tutorial?
Thank you very much for your help!
--
Sanri Parov
_______________________________________________
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.
Philippe Wicker
email@hidden
_______________________________________________
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.