Getting one bang from >50 and one bang for

May 21, 2010 at 3:17pm

Getting one bang from >50 and one bang for

How can I do this?!

I want to record to a buffer when slider values (which is representing information from a light sensor) are over 50 and then stop recording when the values fall below. But I can’t find an object that does it!

I’ve looked at Split, Change, sel, gate, if, onebang, >=, < = and still it wont work!

Any suggestions would be great!

May 21, 2010 at 3:39pm

see this thread

please post your patch – this will exponentially increase your chances of getting any further help

May 21, 2010 at 3:41pm

[select 50] -> [onebang]; or [>= 50] -> [select 1] -> [onebang]

– Pasted Max Patch, click to expand. –


May 21, 2010 at 4:41pm

[if $i1>=50 then bang else out2 bang]

but i would prefer using [>=] – [change] because 0 and 1 is usualy what you need
to start things which require a start and stop.

May 21, 2010 at 4:49pm

….or, to use just one condition, try [slider] -> [>= 50] -> [togedge] -> [bang] outLeft and outRight

May 21, 2010 at 8:16pm

thanks so much guys, really good of you to reply so quickly! I went with a >= 50 and then a change and then a sel 0 1. Works great!


May 21, 2010 at 8:16pm

Oh, heres what I’m doing by the way!


You must be logged in to reply to this topic.