AU plug-in: Problematic display of Cents as float
AU plug-in: Problematic display of Cents as float
- Subject: AU plug-in: Problematic display of Cents as float
- From: Philippe GRUCHET <email@hidden>
- Date: Mon, 19 Mar 2007 22:26:46 +0100
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:
This email sent to email@hidden