Re: AU&Logic:Notify Parameter change to Logic Control
Re: AU&Logic:Notify Parameter change to Logic Control
- Subject: Re: AU&Logic:Notify Parameter change to Logic Control
- From: Bill Stewart <email@hidden>
- Date: Mon, 18 Aug 2003 11:36:48 -0700
On Monday, August 18, 2003, at 04:36 AM, Urs Heckmann wrote:
Hi,
look at AudioToolbox/AudioUnitUtilities.h. - Wouldn't AUParameterSet()
just do the trick? It does it here... (seems to automatically call
AUParameterListenerNotify as well....)
If you have parameters that can change other parameters, don't forget
to set the kAudioUnitParameterFlag_IsGlobalMeta flag (or was it
kAudioUnitParameterFlag_IsElementMeta?) in your ParameterInfo. Dunno
if it does any difference as of today.
You should definitely set one of these two flags (the difference is
changing the parameter changes other parameters that are either
declared in that scope, or for instance a mixer with multiple elements
in the same scope, it might only change parameter values within that
element)...
For most effects that have global scope only for parameters, the
GlobalMeta flag should be used.
Bill
Furtherly, if you do changes from a custom user interface, also send
notification for mouse up/down if it is common to have both values
changed. To be more precise, use AUCarbonViewBase::TellListener() with
kAudioUnitCarbonViewEvent_MouseDownInControl for the second parameter
whenever that one starts to change, and send
kAudioUnitCarbonViewEvent_MouseUpInControl at the end of the mouse
gesture. That way, any automation of the second parameter will stay
untouched unless the first parameter starts changing it.
However, if the users edits some automation in Logic, your logic will
be screwed up 8-)
Hope this is the correct answer...
Cheers,
;) Urs
Am Montag, 18.08.03, um 12:40 Uhr (Europe/Berlin) schrieb yoshida:
Hi.
My AU has Parameter A and Parameter B.
My AU needs A < B, so changing Parameter A's value causes Parameter
B's
value change.
ex:
if Parameter B was set to 5, parameter A -> 4
In this case, how can I notify parameter B's change to Logic and
force moving remote controler's (like logic control) slider
assigned to Parameter B?
TIA.
--
-----------------------------------------
English is not my native language,
so I'm not good at English, sorry :-(
M.Yoshida @ Japan
_______________________________________________
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.
_______________________________________________
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.
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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.