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!
[select 50] -> [onebang]; or [>= 50] -> [select 1] -> [onebang]
----------begin_max5_patcher---------- 495.3ocyV1sSCBCE.9ZVxdGZ50SCEZ4Gi5ig2XVLrQcqFnr.cwoK9tKb.ln6 GZ1Ff2PSNsv4qe8bHc63QF3YIa3YXzcnmQFFayiX.wJhXTGv.GGrYdTPFrP7 r0JUhDOoZtUAp4KExEujxmqJ+RDp2slSP1TKXvu9IZZ8KIWGKjQbE7EIMhlr VsWXQHj2jYuci+tzVtP0Gq3k4DOKPt.+SFVkxy3RUfRjHaflM0ofFpOoXvr5 AZJ7VeMdTwX9vDssgj+dNX6vRw2nJoUxAhpm30DoJS7IPKovKsqOBfmCHQKx Q0mUyTHChgTfehmFFHCvG1sVGvsds31I56XfeJi0ONFQNGK6Z1PxtzdRxtZK 4y1Vs2eVs0u9smNs1dd0qAx3Q46qyqDnpQyhACL2dpFf0dMf9MYlNcbS1kH3 xBs91uTs76UWT2iXlWfjHUmmcfjNTqp8wkjPp5B+73CmofpaSKMDquLjUmYn rHQHO8j2fh32nZ.dRnlWieQSN9tZ+sTY5vQB4dWRDftXh+rQyRVmNu9KV0Mh ZvcHOSIjveyZrH2eunkhvPNL+t5hXQ3pjbuWwworu1n4pCZNCBZ4WFCQzwZj AwZshl2fflmNGn9CxAJSGz7FDzrzAM1fflsNnQGDzH5fl0+WzruXzJBjO78C 5aYk -----------end_max5_patcher-----------
[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.
….or, to use just one condition, try [slider] -> [>= 50] -> [togedge] -> [bang] outLeft and outRight
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!