Re: Adding code for handling notes to an AU - Logic setup question
Re: Adding code for handling notes to an AU - Logic setup question
- Subject: Re: Adding code for handling notes to an AU - Logic setup question
- From: "tahome izwah" <email@hidden>
- Date: Tue, 1 Apr 2008 13:59:29 +0200
Hi Bill,
I was able to implement the required changes to the code with no
problems, thank you. You mentioned that both Logic and AULab offer
options to route MIDI to my AU - could you tell me how this is
accomplished?
Thing is, while I didn't have any problems with MIDI in AULab (it
worked 'right out of the box') I am so far totally unsuccessful in
getting this to work in Logic. What is the correct way to set this up?
If I use my effect as a regular track insert effect I can't see a way
to send it MIDI data because there is no routing option that would
allow me to assign my MIDI input to the plug in.
If I create a software instrument track I can send MIDI data to that
track, but there seems to be no way for me to get audio into my effect
(it does not get any audio from the file that is playing on that
track).
Am I missing something here? Can someone with more Logic experience
than I have shed some light on this?
Thank you so much, this list has really helped me a lot!
--th
2008/3/26, William Stewart <email@hidden>:
> your AU needs to be of type (your .r file)
> kAudioUnitType_MusicEffect = 'aumf',
>
> (it will currently be 'aufx')
>
>
> Your AU should subclass:
> AUMIDIEffectBase
>
> (currently it probably subclasses AUEffectBase)
>
>
> AUMIDIEffectBase has methods in it for the MIDI dispatch methods (from
> AUMIDIBase) - which have a couple of virtual methods to handle the
> MIDI messages, so you just need to implement these:
>
> in particular:
>
> virtual OSStatus YourAU::HandleNoteOn( UInt8 inChannel,
> UInt8 inNoteNumber,
> UInt8 inVelocity,
> UInt32 inStartFrame)
> {
> your code here
> }
>
>
> I think that should just about do it for what you describe.
>
> Both Logic (and AULab) will then notice that your AU can handle MIDI
> directly, and will offer you options to route MIDI to your AU
>
> Bill
>
>
> On Mar 26, 2008, at 12:09 AM, tahome izwah wrote:
> > Hi all,
> >
> > I've just completed my little pitch shifting plug in based on Stephen
> > Bernsee's dspdimension.com code and the Cocoa AU template (using
> > AUEffectBase) and so far it is working great in Logic. I was thinking
> > about adding note control to it, ie. I'd like to change the pitch
> > shift factor by playing notes on a keyboard or with notes that I
> > pre-record on a track with Logic.
> >
> > What changes do I need to implement in my project in order to have my
> > AU appear as a MIDI destination in Logic? I don't want to start off
> > with an entirely different project so I'm just looking for the changes
> > that I need to implement to get note information from the host... I
> > wasn't able to find that information in the AU documentation.
> >
> > Any help &| pointers would be very much appreciated as I'm really
> > stuck here!!
> >
> > Thank you
> > --th
>
_______________________________________________
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