Thanks for the quick reply,
Yes, I've thought about that, but what I would like is a pretty "Pres n" instead of "---" in Logic or something else that "manual" in GarageBand. Is that possible ? Cheers Eric Le 23 janv. 08 à 22:12, Cynthia Maxwell a écrit : 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
|