Weird Logic behaviour when sending parameter changes for automation
Weird Logic behaviour when sending parameter changes for automation
- Subject: Weird Logic behaviour when sending parameter changes for automation
- From: Vojtěch Meluzín <email@hidden>
- Date: Thu, 19 Dec 2013 14:09:08 +0100
Hi,
I'm using this code for sending parameter changes:
AudioUnitEvent e;
memset(&e, 0, sizeof(AudioUnitEvent));
e.mEventType = type;
e.mArgument.mParameter.mAudioUnit = ci;
e.mArgument.mParameter.mParameterID = idx;
e.mArgument.mParameter.mScope = kAudioUnitScope_Global;
e.mArgument.mParameter.mElement = 0;
AUEventListenerNotify(0, 0, &e);
First with kAudioUnitEvent_BeginParameterChangeGesture, then kAudioUnitEvent_ParameterValueChange and finally kAudioUnitEvent_EndParameterChangeGesture.
This works, but when recording automation, Logic starts sending back AUBase::SetParameter with quite weird values - they are weirdly rounded and delayed. I usually send a few values say 0.9231, 0.9014, 0.9003, 0.8995... and then suddenly receive AUBase::SetParameter with 0.9300. Even worse is that Logic correcly records my values, but then records this creepy 0.9300. What am I doing wrong?
_______________________________________________
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