[PD] [min~] [max~] [closest2zero~??]

Mathieu Bouchard matju at artengine.ca
Sun Aug 1 22:01:12 CEST 2010


On Sun, 1 Aug 2010, Funs Seelen wrote:

> if (f > 0, g > 0)
>   use [min~]
> if (f < 0, g < 0)
>   use [max~]

[expr if(abs($f1)<abs($f2), $f1, $f2)]

> else
>   set signal to 0, or value = (f + g) / 2, or some better idea one could think of..

[expr if(abs($f1)==abs($f2),0,if(abs($f1)<abs($f2), $f1, $f2))]

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801


More information about the Pd-list mailing list