[gephex-devel] frei0r problem with the range of f0r_param_double
Martin Bayer
martin at gephex.org
Fri Dec 17 18:31:02 CET 2004
Hi,
the spec of frei0r says that the allowed value range for a double
parameter is from 0.0 to 1.0.
For many parameters it is possible to map the needed range in that
interval, but some parameters that aren't bounded by a upper and lower
limit.
E.g. the video delay effect "delay0r" has a delay time parameter. It
isn't possible to find a sensible upper boundary for the delay time.
There are some other frei0r plugins that accept values outside of that
valid range. The current gephex version interpret this range
specification only as a gui hint for sliders and doesn't enforce it in
any way. It is possible (and for some plugins necessary) to pass values
outside of the specified range.
I think we must eliminate this discrepancy between spec and usage:
Solution A:
Keep the current specification (MUST be in the range) and add an
additional parameter type (f0r_param_unbounded_double) for unbounded
double values.
Solution B:
Change the range specification from "MUST be in the range" to "SHOULD be
in the range". And add adapt the existing frei0r plugins to clamp the
values to the [0,1] interval if other values are useless.
Any comments?
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.gephex.org/pipermail/gephex-devel/attachments/20041217/ac3a6bee/signature.bin
More information about the gephex-devel
mailing list