Analyze previous numbers in number stream

cofeo's icon

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.

laonikoss's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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:

FRid's icon
Max Patch
Copy patch and select New From Clipboard in Max.

If it's only the last one you're after...

cofeo's icon

thanks

laonikoss's icon

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