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@yahoo.com
__________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com