Need some help with some logic

Apr 18, 2010 at 10:56pm

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.

Thanks

#49849
Apr 19, 2010 at 12:31am

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?

#179005
Apr 19, 2010 at 7:33am

Hello maxers,

here’s mine :

– Pasted Max Patch, click to expand. –
#179006
Apr 19, 2010 at 2:01pm

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

#179007
Apr 19, 2010 at 3:42pm

Adding a change object to pizza_olives patch solved it. Thanks

#179008

You must be logged in to reply to this topic.