Need some help with some logic
I have a > object that after sending out a 1, sends out a 0, followed immediately by a 1 on a regular basis every 500 millisecond in response to some activity prior the the > object .
(1, -500ms- 0,1 -500ms- 0,1 -500ms- etc)
However, after > sends out the first 1, I want to filter out/ignore all 0 to 1 transitions so that a 0 is only allowed if its not followed by a 1 after a certain time, like 50 milliseconds or so.
Here’s my effort:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 745.3oc0W1riaBCDG+L4ovhyoQX9JP0pJ0mgdrpph.dy5JvNJ3nlzU66dwiI KIoAvNwEk8hQ1Pl72+7Lim40YNtq36I0tnOi9Nxw40YNNvRxEbZm63VksOuL qF9LW1tpUjstyUuZSlH+EJa8O2RxEJyfwdK7livdviHXzuYD8i1eSiEnrRh. rGtcQZAXc9pe8I+niV+YNSvxpHvq95VZVoamM36DGMhe6ppkDG1PTRwkxDty QtqxXqce++WZ0Z5efuA6uvSt5aylIGlqIDx4UUDosUuSP1Cad2mdB8MZ0txL AkyP7mQG361hx4rBpbk5EG+EkTFImuiINU9WClI.+VpPpBlAgl.yPSgom8vD i76FM7OTRfvHp6naZekiTf+hHS8fv11CR9vlNP8PlBRY1glXlgfihMJWgn3g it7uBa7LkM39Xi0Cq5gJURJfFBJgJOk.ETBLNkCN0ZPYJ.h.sZPbbLoqhJQl iiDqE+.9HSW.DcbmDEUBCGNqxUhbvwVyIYhnQMoTC+Db6sKgoFmLAGYcGEqx EAe85RhFQJmOpcfR7McteCajU6DBNanqE7unbKC2IQ2VteqVT.VCm0TUzq4a vvOnkDTQDa4Ma9wQiZLNx3n3fObUDrYKsq5696AIH88BlMsBxGupl+RSoeim KOPqc70Rk+vd41lLFobzJhaGi65TR+C6fdNSOQrfwf11tnaYPPx0OeGT2z3W 9QhbrqVTmlJH0BJC5S7jOBe127BsnfvN06phVrg2v2VMzS9WskDVGI0bGWS+ ZZqIbRJTYUxRnwUU1H4DaHV7Hh02L946AsJDDm.NMXP4vr6Trx5hFWrS7osm tm1FnIb6gsObqb2j6keIZn0K1Pip0Hk7B.sh6lXCshsbTjM7+F8rNYR8+j8X O9YpYRJrMhc4Ywu2exlKBC5geoSK+zQRQSpjzgRASphBzPQgSphhd3TTnN4q LSQIdxHOLFJ6TkmElXAk9+rjolIuM6u.9OuqwA -----------end_max5_patcher-----------
There may be a much simpler way to do this, anyone else care to offer a method?
wow, you IQ people amaze me :)
Have not had the time to understand the first one yet, but pizza_olives patch was spot on!
But, I now realize I need to filter out the repeating 1 also (now I get one 1 every 500ms) , so im only left with the initial one, and the last 0, I should have known. Thanks again
Adding a change object to pizza_olives patch solved it. Thanks
Forums > MaxMSP