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: Stefan Gretscher <email@hidden>
- Date: Wed, 2 Apr 2008 19:31:56 +0200
Am 02.04.2008 um 16:34 schrieb tahome izwah:
thank you for your suggestion, I did read the manual.
Unfortunately, using the sidechain is not an option for me, as it is
already in use (I am controlling the pitch of one sound with that of
another to do some sound mixing/mangling in my pitch shifter, and the
sidechain is used as a control input to detect the pitch of the second
sound source).
Are you saying that using the sidechain is the only option to get
audio into a MIDI fx AU??? Any other ideas how to get this to work?
Not in current versions of Logic alas - you can have only either two
audio
input streams or one audio and one MIDI input stream as described.
If you really want to control the pitch of the main input by both an
audio
sidechain and MIDI input at the same time please file an enhancement
request for Logic via bugreporter.apple.com
Otherwise, the user might "workaroundish" choose between both options
by using either type of insert slot (instrument/effect).
-Stefan
2008/4/2, Stefan Gretscher <email@hidden>:
please refer to the (printed or electronic) manual that ships with
Logic.
The workaround to use a MusicEffect AU in Logic is to insert it
into an
instrument slot (as you've found out), then route audio to that
instrument
slot using the audio sidechain menu that appears in the upper right
hand corner of the plug-in window. You may have to resize the window
if this option is not visible (drag lower right-hand corner).
Am 01.04.2008 um 13:59 schrieb tahome izwah:
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
------------------------------------
Stefan Gretscher
plug-in development & 3rd party developer support
phone: (+49)-4101-495-586 (Central European Time)
AU developer support: email@hidden
TDM developer support: email@hidden
Apple GmbH
Geschäftsführung: Georges Guyon de Chemilly
Sitz der Gesellschaft: München
Amtsgericht München, HRB 66158
------------------------------------
Stefan Gretscher
plug-in development & 3rd party developer support
phone: (+49)-4101-495-586 (Central European Time)
AU developer support: email@hidden
TDM developer support: email@hidden
Apple GmbH
Geschäftsführung: Georges Guyon de Chemilly
Sitz der Gesellschaft: München
Amtsgericht München, HRB 66158
_______________________________________________
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