• 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
Basic AU parameter handling and automation with VSTGUI UI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Basic AU parameter handling and automation with VSTGUI UI


  • Subject: Basic AU parameter handling and automation with VSTGUI UI
  • From: "Adam Somers" <email@hidden>
  • Date: Tue, 10 Oct 2006 18:13:24 -0700

Hi list,

This is my first post.  I am creating an AU with a VSTGUI interface.
Working off the example presented by Steinberg (drawtest), there is no
example of hooking up vstgui controls to AU parameters.  I have tried
to implement an AUParameterListener, but the minimal documentation is
making this exceedingly difficult.  If someone could explain to me how
to utilize the ParameterListener in a custom UI, I would really
appreciate it.

There are 3 classes in my plug: the AU effect class, the AU Carbon
View class, which instantiates the VSTGUI editor class.  I have set
things up so that the VSTGUI class is able to reference the view
class, here is the body of my valueChanged() function (a function that
gets called during mouse events in vstgui):

void Editor::valueChanged(CDrawContext* context, CControl* control) {
	long tag = control->getTag();
	CAAUParameter p1((AudioUnit)effect, 0, kAudioUnitScope_Global, 0);
	switch(tag) {    //special cases
		case 1:
			p1.SetValue(NULL,NULL,control->getValue ());
			viewBase->TellListener( p1, kAudioUnitEvent_ParameterValueChange, NULL);
			break;
		default:
			break;
	}
	control->setDirty ();
}

as you can see, I am obtaining an auvp from the effect, setting it to
the recently touched control's value, and calling the view's
tellListener function to make the change.  This works, but automation
data is continously written to the track when in 'Touch' mode until
the transport is stopped.  It's all very confusing to me.  I'm hoping
that someone tell me where I'm going wrong.

Thanks,
Adam
_______________________________________________
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


  • Prev by Date: Re: AudioUnitAddRenderNotify and AudioUnitRender mDataByteSize
  • Next by Date: Re: AudioUnitAddRenderNotify and AudioUnitRender mDataByteSize
  • Previous by thread: Re: best performing mixer solution
  • Next by thread: Inheriting from AUMIDIEffect breaks AudioUnitGetProperty?
  • Index(es):
    • Date
    • Thread