Search for an object : Last value

Mar 2, 2010 at 4:27pm

Search for an object : Last value

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. –
#48861
Mar 2, 2010 at 5:07pm

int?

– Pasted Max Patch, click to expand. –
#175598
Mar 2, 2010 at 5:13pm

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;

#175599
Mar 2, 2010 at 5:18pm

Thanks. So obvious I was blind…

#175600
Mar 2, 2010 at 8:31pm

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

#175601

You must be logged in to reply to this topic.