• 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
Weird Logic behaviour when sending parameter changes for automation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?

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

  • Follow-Ups:
    • Re: Weird Logic behaviour when sending parameter changes for automation
      • From: Vojtěch Meluzín <email@hidden>
  • Prev by Date: Re: AudioUnit Cocoa gui displays popup which steals spacebar from the host
  • Next by Date: Re: Weird Logic behaviour when sending parameter changes for automation
  • Previous by thread: Re: AudioUnit Cocoa gui displays popup which steals spacebar from the host
  • Next by thread: Re: Weird Logic behaviour when sending parameter changes for automation
  • Index(es):
    • Date
    • Thread