Re: Automation record ?
Re: Automation record ?
- Subject: Re: Automation record ?
- From: Airy André <email@hidden>
- Date: Sun, 1 Dec 2002 19:26:25 +0100
Does anybody have automation (from the GUI) working in Logic 5.5
(official version), using the Apple SDK ?
From what I understand, the AU should have nothing special to do if the
GUI is build above AUCarbonViewBase
and all controls are registered using
AUCarbonViewBase::AddCarbonControl ...
Unfortunately, this does not seems to be enough...
What am I missing ?
Airy
Le vendredi, 29 nov 2002, ` 18:43 Europe/Paris, Nikolaus Gerteis a
icrit :
>
So there are three scenarios:
>
>
1. The plugin has no custom GUI
>
>
Then you only have to provide the parameter list and the parameter
>
info for every parameter.
>
>
2. The plugin has a custom GUI with carbon controls (using the
>
CarbonViewBase etc. sources)
>
>
You have to provide the parameter list and the parameter info and use
>
AUParameterSet for setting
>
the parameter value with ParameterListener notification. Mouse down
>
and up events are handled
>
by the CarbonViewBase base class.
>
>
3. The plugin has a custom GUI with own controls
>
>
Like 2 but you have to implement the mouse down/up notification, too.
>
See the CarbonViewControl and
>
CarbonViewBase base classes on how to do that.
>
>
Here is how I implemented it in one of our own Audio Units:
>
>
// This is called when a parameter is changed in the custom GUI
>
void CAUWrapper::AutomationCallback(long lPar, int iHint)
>
{
>
AudioUnitParameter sPar={ m_tAudioUnit,
>
AudioUnitParameterID(lPar), kAudioUnitScope_Global, 0 };
>
>
if (m_pcView && iHint==CHost::kHintMouseDw)
>
m_pcView->TellListener((AUVParameter&)(sPar),
>
kAudioUnitCarbonViewEvent_MouseDownInControl, NULL);
>
>
// Get the value from the plugin and set it for the AUBase
>
framework with notification call
>
float rValue=0.0f;
>
m_pcShell->CtrlGetValue(lPar, rValue);
>
const OSStatus tErr=AUParameterSet(NULL, NULL, &sPar, rValue, 0);
>
>
if (m_pcView && iHint==CHost::kHintMouseUp)
>
m_pcView->TellListener((AUVParameter&)(sPar),
>
kAudioUnitCarbonViewEvent_MouseUpInControl, NULL);
>
}
>
>
Hope this helps.
>
>
Niko
>
_______________________________________________
>
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.