[PD-dev] Non-branching clipping algo...

Luigi Castelli superbigio at yahoo.com
Mon Oct 13 04:40:42 CEST 2003


Hi,

I am trying to find a way to clip incoming values to a
range from 0.0 to 1.0 without using branching.

I found a bunch of algorithms on musicdsp.org to
achieve clipping without branching but none were
satisfactory.

What I am really aiming for is to find a way to modify
the tabfudge technique used in d_osc.c to achieve
clipping instead of wrapping. Is that possible ?

Thanks for any help or suggestion.

- Luigi

=====
Luigi Castelli

superbigio at yahoo.com

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com




More information about the Pd-dev mailing list