if !!!

Dec 17, 2012 at 7:39pm

if !!!

hi

A quick question about -if- object and inclinaison (1/-1).
When increase if f1 > f2 == 1 :
When decrease if f1 < (f2-0.1) == 0 :

i’d like to used 2 threshold to ignore “hysteresis” and make sure value is down more…
like on threshold~ object where you have a High and low ?

I have try this but not run good :/

Is there an object like threshold for data ?
or how do my code on -if- object good ?
if $f1 > $f2 || $f1 < ($f2*-1.) then 1 else $f1 < ($f2-0.1) || $f1 > (($f2*-1.)+0.1)) then 0

a quick exemple :

– Pasted Max Patch, click to expand. –

thanks
0-0

#65722
Dec 17, 2012 at 8:55pm

Hi,

Try this maybe (with bucket).

Best,
Frédéric

– Pasted Max Patch, click to expand. –
#236778
Dec 18, 2012 at 1:46am
– Pasted Max Patch, click to expand. –
#236779
Dec 18, 2012 at 8:03pm

Thanks Andrzej…

#236780

You must be logged in to reply to this topic.