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

cyrille henry ch at chnry.net
Sun Aug 1 22:07:54 CEST 2010


hello,
you should be able to do this with expr~
c


Le 01/08/2010 21:51, Funs Seelen a écrit :
> Hello,
>
> Has anyone ever found a trick or built an object to use the value
> closest to zero like [min~] does for lowest and [max~] for highest?
> Something like (for two signalvalues (f and g)):
>
> if (f > 0, g > 0)
>    use [min~]
> if (f < 0, g < 0)
>    use [max~]
> else
>    set signal to 0, or value = (f + g) / 2, or some better idea one
> could think of..
>
> I was trying to shape waves out of combined functions (in this case
> tangent en cotangent
> (http://en.wikipedia.org/wiki/File:Trigonometric_functions.svg)).
> Infinity doesn't sound so nice ;-).
>
> mfg,
>
> Funs
>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->  http://lists.puredata.info/listinfo/pd-list



More information about the Pd-list mailing list