• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Weird Logic behaviour when sending parameter changes for automation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird Logic behaviour when sending parameter changes for automation


  • Subject: Re: Weird Logic behaviour when sending parameter changes for automation
  • From: Vojtěch Meluzín <email@hidden>
  • Date: Thu, 19 Dec 2013 15:31:13 +0100

One more thing - it works fine in automation "write" mode, but not int "touch" mode, where it does the weird parameter value jumping... Any ideas?

Cheers!
Vojtech



2013/12/19 Vojtěch Meluzín <email@hidden>
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?

Thanks!
Vojtech


 _______________________________________________
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

References: 
 >Weird Logic behaviour when sending parameter changes for automation (From: Vojtěch Meluzín <email@hidden>)

  • Prev by Date: Weird Logic behaviour when sending parameter changes for automation
  • Next by Date: Debug Audio Unit View
  • Previous by thread: Weird Logic behaviour when sending parameter changes for automation
  • Next by thread: Debug Audio Unit View
  • Index(es):
    • Date
    • Thread