Re: AU plug-in: Problematic display of Cents as float
Re: AU plug-in: Problematic display of Cents as float
- Subject: Re: AU plug-in: Problematic display of Cents as float
- From: Michael Hopkins <email@hidden>
- Date: Mon, 19 Mar 2007 14:42:11 -0700
Philippe,
I don't believe that this is an issue of units. It's more an issue of
the generic cocoa view basing the number of displayed decimal places
on the range of the parameter. In leopard, you can use the high
resolution flag to force the generic view to use more precision, but
this will not really help you in the current OS. It's odd that the
carbon and cocoa versions of the generic view behave differently, as
they should both be using the same code. I'll take a look at that.
Unfortunately, there's not really a workaround other than making your
own view. If you guys want more precision, please file a bug or
feature request against the generic view and we'll see what we can do
to change this in a future release.
-Michael
On Mar 19, 2007, at 2:26 PM, Philippe GRUCHET wrote:
Hello,
In the Generic Cocoa View of an AudioUnit plug-in:
When setting a parameter to display a floating number in Cents with
two decimals (440.55 for example), all work fine if the defined
range == 100 cents in total.
For a wider range such -2400 to +2400, the Cocoa view sets the
values as integers only, like the pitch parameter in Apple's
"AUPitch".
All floats are rounded to the nearest integers (depends of the
separator, dot or comma) when typing Enter or Return, or by
selecting another textfield:
With a dot: 150.23 -> 150 Cents
With a comma: 150,23 -> 150 Cents
With a dot: 150.89 -> 150 Cents
With a comma: 150,89 -> 151 Cents
Ditto for negative values:
With a dot: -89.36 -> -89 Cents
With a comma: -89,36 -> -89 Cents
With a dot: -89.95 -> -89 Cents
With a comma: -89,95 -> -90 Cents
In the Carbon view of the same plug-in, the floats are well-displayed.
Switching to Generic View in AULab and the floats are displayed as
integers!?
In both case, the floats seem to be saved as integers in presets.
When loading a preset in which floats are supposed to be saved,
generic Cocoa and Carbon views display them as integers.
Is there a known work-around to display Cents as floats?
Warmest regards,
Philippe Gruchet
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
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