Re: How to Notify parameters changes
Re: How to Notify parameters changes
- Subject: Re: How to Notify parameters changes
- From: Marc Poirier <email@hidden>
- Date: Thu, 10 Apr 2003 23:30:26 +0200 (CEST)
You need to mark the beginning and ends of parameter change gestures using
AudioUnitCarbonViewEventListener with
kAudioUnitCarbonViewEvent_MouseDownInControl and
kAudioUnitCarbonViewEvent_MouseUpInControl
See AUCarbonViewBase and AUCarbonViewControl in the SDK for example
implementations.
Marc
On Thu, 10 Apr 2003, Shai Shasag wrote:
>
Hi,
>
>
I'm implementing automation for my plugin that has custom view component.
>
Playback of automation is fine but I could not record any parameter
>
changes under Logic 6.
>
>
When the user changes a value (by moving a slider for example) I
>
call this function:
>
>
void CWSAU::SetParameterInternal (long lParamID, long lParamVal)
>
{
>
AUEffectBase::SetParameter(lParamID, lParamVal); // update the value
>
in the global scope / element 0
>
>
const AudioUnitParameter inParameter = {GetComponentInstance(),
>
lParamID, kAudioUnitScope_Global, 0};
>
OSStatus cErr = ::AUParameterListenerNotify(nil, nil, &inParameter);
>
// notify outside world
>
}
>
>
This however, does not seem to work as Logic does not record the
>
change (in touch or write mode)
>
>
Using AUParameterSet instead of AUParameterListenerNotify did not help.
>
>
Recording of automation does work when using the "controls" mode
>
instead of "editor" mode.
>
>
Thanks,
>
>
Shai Shasag
>
Waves
>
_______________________________________________
>
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.