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!

#50430
May 21, 2010 at 3:39pm

see this thread

http://cycling74.com/forums/topic.php?id=26566

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

#180942
May 21, 2010 at 3:41pm

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

– Pasted Max Patch, click to expand. –

Brendan

#180943
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.

#180944
May 21, 2010 at 4:49pm

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

#180945
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!

Matt

#180946
May 21, 2010 at 8:16pm

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

http://www.sonic-cha.com

#180947

You must be logged in to reply to this topic.