Forums > MaxMSP

Need some help with some logic

April 18, 2010 | 10:56 pm

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.

Thanks


April 19, 2010 | 12:31 am

Here’s my effort:

– Pasted Max Patch, click to expand. –

There may be a much simpler way to do this, anyone else care to offer a method?


April 19, 2010 | 7:33 am

Hello maxers,

here’s mine :

– Pasted Max Patch, click to expand. –

April 19, 2010 | 2:01 pm

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


April 19, 2010 | 3:42 pm

Adding a change object to pizza_olives patch solved it. Thanks


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