Re: ParameterValues
Re: ParameterValues
- Subject: Re: ParameterValues
- From: arne <email@hidden>
- Date: Sat, 17 Apr 2004 17:46:24 +0200
Hi Mike,
you're doing it the right way. That you don't see the name in Logic is
a Logic thing. Just copy the parameter name also to the
AudioUnitParameterInfo name field and Logic will show it. Seems like
Logic don't know anything about CFStrings in this context.
arne
On 17.04.2004, at 15:51, Michael Kleps [reFX] wrote:
Hi Bill,
thanks, I read and tried that. Doesn't work for me. Can somebody post a
short example?
This is my version:
------------------------------------------------------
In "GetParameterInfo"
sInfo.cfNameString = CFStringCreateWithCString(NULL, sInfo.name,
kCFStringEncodingISOLatin1);
sInfo.unit = kAudioUnitParameterUnit_Generic;
sInfo.minValue = 0.0f;
sInfo.maxValue = 1.0f;
sInfo.defaultValue = 0.0f;
sInfo.flags = kAudioUnitParameterFlag_IsReadable |
kAudioUnitParameterFlag_IsWritable |
kAudioUnitParameterFlag_IsHighResolution |
kAudioUnitParameterFlag_HasCFNameString |
kAudioUnitParameterFlag_ValuesHaveStrings;
------------------------------------------------------
Now, *HOW* does the host try to retrieve the string for the current
value? In "GetProperty"? Example please....
Do I need to do something in "GetPropertyInfo" do the host knows it
makes sense to call GetProperty at the time the value changes? What
*exaclty* (example)?
Regards,
Mike
Am 17.04.2004 um 03:18 schrieb William Stewart:
Have a look in the latest SDK - there's docs and API there to allow
you to translate between parameter values and the strings that should
be used to display them (and to convert back from a display string to
a value as well)
Bill
On 16/04/2004, at 2:24 PM, Michael Kleps [reFX] wrote:
Hi all,
how can I use custom parameter value strings like the VST-method
"getParameterDisplay()"? What I basicly want is that the host calls
my AU and asks for a string to be displayed for the current value
(e.g. during automation).
Thanks in advance for any help you can provide.
Cheers,
Mike
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
--
mailto:email@hidden
tel: +1 408 974 4056
______________________________________________________________________
_
___
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
______________________________________________________________________
_
___
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.