Analyze previous numbers in number stream

May 9, 2011 at 9:54am

Analyze previous numbers in number stream

This might sound like a weird problem, but its one I run into quite frequently. I want to be able to pull out previous numbers in a stream of Ints/floats. Like say I hooked up a bang to a [random] and hit it a few times, how would I go about looking at the number I banged directly before the current value.

What I am looking for is basically a [print] consisting of numbers I can pull up and use again. Has anyone done this?
The answer is probably incredibly simple, so I apologize if this is a rather noobish question.

#57000
May 9, 2011 at 1:22pm

Here’s a a couple of ways to do it, depends what you want to do with the data / how you want to use it:

– Pasted Max Patch, click to expand. –
#204242
May 9, 2011 at 1:52pm

If it’s only the last one you’re after…

– Pasted Max Patch, click to expand. –
#204243
May 11, 2011 at 4:09am

thanks

#204244
May 11, 2011 at 11:35am

ah – just discovered [zl stream], which I think will do what you want it to do..

#204246

You must be logged in to reply to this topic.