Forums > MaxMSP

Getting one bang from >50 and one bang for

May 21, 2010 | 3:17 pm

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 | 3:39 pm

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


May 21, 2010 | 3:41 pm

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

– Pasted Max Patch, click to expand. –

Brendan


May 21, 2010 | 4:41 pm

 
[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 | 4:49 pm

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


May 21, 2010 | 8:16 pm

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


May 21, 2010 | 8:16 pm

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

http://www.sonic-cha.com


Viewing 7 posts - 1 through 7 (of 7 total)