running nonrepeating number series

Feb 18, 2011 at 9:55pm

running nonrepeating number series

I love [urn], but it has to be restarted when it runs out of numbers, and there is always a chance that you’ll get 2 of the same number in a row after clearing it. I made a little patch that generates a running series instead. The range can be changed on the fly.

MH

– Pasted Max Patch, click to expand. –
#55042
Feb 18, 2011 at 10:03pm

also check out the abstraction urn-jb. It’s in the Cycling74 examples.

– Pasted Max Patch, click to expand. –
#198182
Feb 18, 2011 at 10:56pm

Thanks!

I looked at that one a while ago and forgot about it. It makes sense to just throw out a double when [urn] rolls over instead of reinventing the whole concept of it.

I am always amazed at what can be done with [zl] though. I think it is one of the most useful objects in Max.

MH

#198183
Feb 19, 2011 at 7:36am

Another solution:

– Pasted Max Patch, click to expand. –
#198184
Feb 19, 2011 at 9:18am

grab always sounds like a hack, this is another one:

– Pasted Max Patch, click to expand. –
#198185
Feb 22, 2011 at 5:02pm

I still have trouble grasping the grab object. stefantiedje, It never occurred to me to cross the outputs of a trigger object, then compare. I have often used a message box as a buffer instead. Your solution is more compact and elegant.

MH

#198186

You must be logged in to reply to this topic.