Forums > MaxMSP

rotate items stored in a coll

November 10, 2006 | 7:55 am

dear all, here is what i’m trying to do: having a coll with say 10 addresses, i need to find a way to rotate of 1 position (up or down) only parts of the stored data for instance from position 3 to pos 8..hope it makes sense..
thanks
michele


November 10, 2006 | 9:26 am

i mean it seems to me that i can’t do this with a message to coll,..i have to dump the list out of coll rotate it and the store the values again..


November 10, 2006 | 10:01 am


November 10, 2006 | 11:24 am

10/11/06, kl. 8:55 +0100 , skrev mic:

>dear all, here is what i’m trying to do: having a coll with say 10
>addresses, i need to find a way to rotate of 1 position (up or down)
>only parts of the stored data for instance from position 3 to pos
>8..hope it makes sense..
>thanks
>michele

Like this?
/J

#P button 686 352 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 686 383 53 196617 t b b b b;
#N coll ;
#T flags 1 0;
#T 0 null;
#T 1 one;
#T 2 two;
#T 3 three;
#T 4 four;
#T 5 five;
#T 6 six;
#T 7 seven;
#T 8 eight;
#P newobj 686 507 53 196617 coll;
#N coll ;
#T flags 1 0;
#T 0 null;
#T 1 one;
#T 2 two;
#T 3 three;
#T 4 four;
#T 5 five;
#T 6 six;
#T 7 seven;
#T 8 eight;
#P newobj 686 459 53 196617 coll;
#P message 744 419 57 196617 sort -1 -1;
#P message 686 419 46 196617 delete 7;
#P message 822 419 51 196617 swap 2 7;
#P message 896 419 81 196617 insert 2 dummy;
#P connect 7 0 6 0;
#P connect 6 3 0 0;
#P connect 6 2 1 0;
#P connect 6 1 3 0;
#P connect 6 0 2 0;
#P connect 2 0 4 0;
#P connect 3 0 4 0;
#P connect 1 0 4 0;
#P connect 0 0 4 0;
#P window clipboard copycount 8;


November 10, 2006 | 3:08 pm

..yes Jakob something like this..thanks for the tip :)
best
michele


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