Forums > MaxMSP

Search for an object : Last value

March 2, 2010 | 4:27 pm

Hi,

I’ve got a bunch of values that came at the same time. I’d like to keep only the last one of the serie. How can I do that ?

Here an example of what I’d like :

– Pasted Max Patch, click to expand. –

March 2, 2010 | 5:07 pm

int?

– Pasted Max Patch, click to expand. –


Ad.
March 2, 2010 | 5:13 pm

List example:

max v2;
#N vpatcher 1 44 1681 1046;
#P window setfont "Sans Serif" 20.;
#P number 111 193 58 20 0 0 8224 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 174 68 109 196617 7 8 9 10 11 12 13 14;
#P message 102 68 61 196617 1 2 3 4 5 6;
#P newex 207 159 34 196617 zl len;
#P newex 112 159 35 196617 zl nth;
#P connect 0 0 4 0;
#P connect 3 0 0 0;
#P connect 2 0 0 0;
#P connect 1 0 0 1;
#P connect 3 0 1 0;
#P connect 2 0 1 0;
#P pop;


March 2, 2010 | 5:18 pm

Thanks. So obvious I was blind…


March 2, 2010 | 8:31 pm

Using lists, zl ecils 1‘s rightmost outlet will also output the latest value.


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