| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi Michael,
Thank you very much for your quick reply!
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.
Thanks anyway! Philippe www.open-tuning.com ==================
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: http://lists.apple.com/mailman/options/coreaudio-api/email@hidden
| References: | |
| >AU plug-in: Problematic display of Cents as float (From: Philippe GRUCHET <email@hidden>) | |
| >Re: AU plug-in: Problematic display of Cents as float (From: Michael Hopkins <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.