Forums > MaxMSP

Analyze previous numbers in number stream

May 9, 2011 | 9:54 am

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.


May 9, 2011 | 1:22 pm

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. –

May 9, 2011 | 1:52 pm

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

– Pasted Max Patch, click to expand. –

May 11, 2011 | 4:09 am

thanks


May 11, 2011 | 11:35 am

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


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