Re: Initial preset in monotimbral instrument AU ?
Re: Initial preset in monotimbral instrument AU ?
- Subject: Re: Initial preset in monotimbral instrument AU ?
- From: Cynthia Maxwell <email@hidden>
- Date: Wed, 23 Jan 2008 13:12:15 -0800
Opps, I assumed that was part of AUBase but it is not.So what you would do is make such a function, i.e.
void YourAU::SetParamsForPreset(int inPresetIndex ) { for(int j = 0; j < kNumberOfPresetParams; j++ ) Globals()->SetParameter(j, presetParams[inPresetIndex][j] );
}
and as far as startup goes, I was quoting your email, " I want to have one specific preset chosen at startup."
On Jan 23, 2008, at 1:05 PM, Eric Gorouben wrote: Tanks, Cynthia, for the reply,
However, where is SetParamsForPreset declared? And what exactly do yo call "startup"? The AU constructor?
Cheers Eric Gorouben
Le 23 janv. 08 à 20:39, Cynthia Maxwell a écrit : have you tried SetParamsForPreset(kPresetDefaultIndex);
in your "startup" code On Jan 23, 2008, at 3:13 AM, Eric Gorouben wrote: Hi,
I've built a monotimbral instrument that passes AUval perfectly. I use several factory presets, and I want to have one specific preset chosen at startup. How and where can I do it ?
Thanks E. Gorouben
|
_______________________________________________
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