Getting one bang from >50 and one bang for

mmiles54's icon

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, >=,

Any suggestions would be great!

brendan mccloskey's icon

see this thread

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

brendan mccloskey's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

Brendan

Roman Thilenius's icon

[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.

brendan mccloskey's icon

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

mmiles54's icon

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

mmiles54's icon

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

www.sonic-cha.com