Re: Automation woes
Re: Automation woes
- Subject: Re: Automation woes
- From: "Stephan M. Bernsee" <email@hidden>
- Date: Wed, 23 Jan 2008 21:30:59 +0100
Hi Eric,
you need to transmit a start gesture event via AUEventListenerNotify()
first, and an end gesture when you are done changing the parameter
value. This is somewhat non-obvious from the documentation because it
seems like an optional thing to do, but it is not (at least as far as
the Logic parameter automation is concerned).
I do find this procedure to be a bit strange (for most external
controllers you wouldn't know when a gesture is started, even though
for the UI controllers you usually do) but it does make some sense
from the parameter interpolation viewpoint.
Anyway, look in the CA documentation for
kAudioUnitEvent_BeginParameterChangeGesture and
kAudioUnitEvent_EndParameterChangeGesture, that should get you started.
Best regards
--smb
Am 23.01.2008 um 21:04 schrieb email@hidden:
Message: 2
Date: Wed, 23 Jan 2008 12:33:38 +0100
From: Eric Gorouben <email@hidden>
Subject: Automation woes
To: CoreAudio API <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
Hi,
I'm stuck in a problem with automation AU->host
In the constructor :
CInst:: CInst (ComponentInstance au)
: AUMonotimbralInstrumentBase (au, 0, 1)
{
CreateElements();
Globals()->UseIndexedParameters(kNumParams);
Globals()->SetParameter(0,m_fParam0);
Globals()->SetParameter(1, m_fParam1);
<...>
}
When a slider is moved (I'm using VSTGUI):
void CGui::setParameter(UInt32 index, float value){
OSStatus err=noErr;
AudioUnitParameter sPar={m_pOwnerView->GetEditAudioUnit(), index,
kAudioUnitScope_Global, 0};
err=AUParameterSet (m_pParameterListener, this, &sPar, value, 0);
}
(err=noErr)
Nothing happens on the host (Logic Studio) though SetParameter is
properly called by "Dispatch"
What is wrong?
Thanks
E. Gorouben
_______________________________________________
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