Re: [core-audio] Parameter value strings
Re: [core-audio] Parameter value strings
- Subject: Re: [core-audio] Parameter value strings
- From: Marc Poirier <email@hidden>
- Date: Tue, 14 Jun 2005 10:35:31 -0400 (EDT)
Well yes, there is an API in AU to give a string representation on-demand
for a given parameter value (see the PostPantherAdditions documentation
file, it's called something like ParameterStringFromValue or something
like that), but better yet, why don't you just use one of the non-linear
parameter display curves for the parameter properties and publish the
value range accurately? There is logarithmic, exponential, squared,
cubed, square root, and cube root.
Marc
On Tue, 14 Jun 2005, Peter Bakker wrote:
Hi,
I'm implementing automation in our AU's, seems to work smoothly with one
gotcha.
Some of the parameters use a non-linear mapping from knob or ramp value to
parameter value, to provide as much resolution where it's needed.
So I publish a parameter to the host with a normalized range, say -1. to 1.
Now, if I don't specify a value string for each and every possible parameter
value the host will display something from -1 dB to 1 dB, where the actual
value is -144 to 24.
Isn't it a better idea to ask the AU for the string representation of a
parameter when it's needed ? In that way I can map a normalized value to a
valid parameter value, giving the an automation ramp the same feature as the
UI knob: resolution where it's needed.
I could, of course, provided thousands of value strings for every possible
float value of the parameter, but that seems not just a little bit redundant.
Yours,
Peter Bakker
Audio Ease
_______________________________________________
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