• 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
Controlling multiple parameters with one custom control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Controlling multiple parameters with one custom control


  • Subject: Controlling multiple parameters with one custom control
  • From: Luke Hollingworth <email@hidden>
  • Date: Thu, 17 Jun 2010 13:27:17 +0200

Hi all,

I built a plug-in which is designed to control a remote wave field synthesis (wfs) system. Each instance of the plugin controls a source at the wfs system and the audio on the track played back by the host (usually Logic) is routed out to the wfs system. The plugin has a custom Carbon view which incorporates an xy panel for controlling source position. The problem I have is that when writing automation data for 2 parameters simultaneously the mouse up notifications to the host for the second parameter do not take effect. This is the case for Logic but I have not tried it with other hosts. I found a workaround which is to send a begin parameter change gesture notification before sending the end parameter change notification like so,

const CAAUParameter param(GetComponentInstance(), parameterIndex, kAudioUnitScope_Global, 0);
AudioUnitEvent auEvent;
auEvent.mArgument.mParameter = param;
if (mousedown) {
auEvent.mEventType = kAudioUnitEvent_BeginParameterChangeGesture;
AUEventListenerNotify(m_ParameterListenerOnAU, this, &auEvent);
} else {
auEvent.mEventType = kAudioUnitEvent_BeginParameterChangeGesture;
AUEventListenerNotify(m_ParameterListenerOnAU, this, &auEvent);
auEvent.mEventType = kAudioUnitEvent_EndParameterChangeGesture;
AUEventListenerNotify(m_ParameterListenerOnAU, this, &auEvent);
}

Is there a more correct way of performing this as I would like the code to stay effective in future releases of the SDK.

Thanks in advance

_________________________________________________
Luke Hollingworth      
Development Software Engineer
Tel Direct:  +41-43-500-5127   
sonic emotion ag       www.sonicemotion.com
Address: Eichweg 6, CH-8154 Oberglatt (Zürich) Switzerland
Tel: +41-44-850-0838        Fax: +41-44-850-0839

*********************************************************************************
This email and any files transmitted with it are confidential and intended solely
for the use of the individual or entity to which it is addressed to.
If you have received this email in error please notify the system manager.
*********************************************************************************

 _______________________________________________
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: Controlling multiple parameters with one custom control
      • From: William Stewart <email@hidden>
  • Prev by Date: render callback: To memclear or not to memclear; that is the question...
  • Next by Date: iPhone audio units: Getting rid of an unnecessary read from file in favor of reading in from memory
  • Previous by thread: Re: render callback: To memclear or not to memclear; that is the question...
  • Next by thread: Re: Controlling multiple parameters with one custom control
  • Index(es):
    • Date
    • Thread