A coll conundrum…

Feb 2, 2007 at 5:41pm

A coll conundrum…

I’m having a problem getting data that is stored in one coll and dumping into another coll, can anyone help?

max v2;
#N vpatcher 409 279 1009 679;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 89 66 31 196617 3 15;
#P newex 176 122 32 196617 del 2;
#P message 53 66 23 196617 1 1;
#P message 176 146 53 196617 renumber;
#N coll ;
#P newobj 176 178 53 196617 coll;
#N coll ;
#P newobj 53 117 53 196617 coll;
#P window linecount 3;
#P comment 39 161 100 196617 How do I put the data from the coll above into this coll? —->;
#P window linecount 6;
#P comment 243 179 100 196617 It can then get renumbered seperately and updated everytime the first coll is altered?;
#P connect 7 0 2 0;
#P connect 5 0 2 0;
#P connect 5 0 6 0;
#P connect 6 0 4 0;
#P connect 4 0 3 0;
#P pop;

Thanks

Rhys

#30086
Feb 2, 2007 at 6:03pm

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 6 66 33 196617 dump;
#P newex 53 195 45 196617 prepend;
#P newex 81 156 62 196617 prepend set;
#P message 89 66 31 196617 3 15;
#P newex 181 195 32 196617 del 2;
#P message 53 66 23 196617 1 1;
#P message 181 219 53 196617 renumber;
#N coll ;
#P newobj 181 242 53 196617 coll;
#N coll ;
#P newobj 53 117 53 196617 coll;
#P window linecount 3;
#P comment 42 229 100 196617 How do I put the data from the coll above into
this coll? —->;
#P window linecount 6;
#P comment 267 191 100 196617 It can then get renumbered seperately and
updated everytime the first coll is altered?;
#P connect 5 0 2 0;
#P connect 5 0 6 0;
#P connect 9 0 3 0;
#P connect 10 0 2 0;
#P connect 2 0 9 0;
#P connect 8 0 9 0;
#P connect 2 1 8 0;
#P connect 4 0 3 0;
#P connect 6 0 4 0;
#P connect 7 0 2 0;
#P window clipboard copycount 11;

On 2/2/07 12:41 PM, “Rhys Perkins” wrote:

> max v2;
> #N vpatcher 409 279 1009 679;
> #P window setfont “Sans Serif” 9.;
> #P window linecount 1;
> #P message 89 66 31 196617 3 15;
> #P newex 176 122 32 196617 del 2;
> #P message 53 66 23 196617 1 1;
> #P message 176 146 53 196617 renumber;
> #N coll ;
> #P newobj 176 178 53 196617 coll;
> #N coll ;
> #P newobj 53 117 53 196617 coll;
> #P window linecount 3;
> #P comment 39 161 100 196617 How do I put the data from the coll above into
> this coll? —->;
> #P window linecount 6;
> #P comment 243 179 100 196617 It can then get renumbered seperately and
> updated everytime the first coll is altered?;
> #P connect 7 0 2 0;
> #P connect 5 0 2 0;
> #P connect 5 0 6 0;
> #P connect 6 0 4 0;
> #P connect 4 0 3 0;
> #P pop;

Cheers
Gary Lee Nelson
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson

#95370
Feb 2, 2007 at 6:12pm

#95371
Feb 2, 2007 at 6:15pm

A little more complicated if your coll indices include symbols

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 89 30 48 196617 loadbang;
#P newex 52 224 72 196617 prepend store;
#P message 131 66 106 196617 store apples are good;
#P newex 78 139 69 196617 route symbol;
#P message 6 66 33 196617 dump;
#P newex 53 193 45 196617 prepend;
#P newex 78 165 62 196617 prepend set;
#P message 89 66 31 196617 3 15;
#P newex 179 225 32 196617 del 2;
#P message 53 66 23 196617 1 1;
#P message 179 249 53 196617 renumber;
#N coll ;
#P newobj 179 272 53 196617 coll;
#N coll ;
#P newobj 53 117 53 196617 coll;
#P window linecount 3;
#P comment -70 111 100 196617 How do I put the data from the coll above into
this coll? —->;
#P window linecount 6;
#P comment 49 267 100 196617 It can then get renumbered seperately and
updated everytime the first coll is altered?;
#P connect 14 0 5 0;
#P connect 14 0 7 0;
#P connect 14 0 12 0;
#P connect 5 0 2 0;
#P connect 5 0 6 0;
#P connect 13 0 3 0;
#P connect 9 0 13 0;
#P connect 12 0 2 0;
#P connect 11 1 8 0;
#P connect 11 0 8 0;
#P connect 2 1 11 0;
#P connect 7 0 2 0;
#P connect 6 0 4 0;
#P connect 4 0 3 0;
#P connect 8 0 9 0;
#P connect 2 0 9 0;
#P connect 10 0 2 0;
#P window clipboard copycount 15;

On 2/2/07 12:41 PM, “Rhys Perkins” wrote:

>
> I’m having a problem getting data that is stored in one coll and dumping into
> another coll, can anyone help?
>
> max v2;
> #N vpatcher 409 279 1009 679;
> #P window setfont “Sans Serif” 9.;
> #P window linecount 1;
> #P message 89 66 31 196617 3 15;
> #P newex 176 122 32 196617 del 2;
> #P message 53 66 23 196617 1 1;
> #P message 176 146 53 196617 renumber;
> #N coll ;
> #P newobj 176 178 53 196617 coll;
> #N coll ;
> #P newobj 53 117 53 196617 coll;
> #P window linecount 3;
> #P comment 39 161 100 196617 How do I put the data from the coll above into
> this coll? —->;
> #P window linecount 6;
> #P comment 243 179 100 196617 It can then get renumbered seperately and
> updated everytime the first coll is altered?;
> #P connect 7 0 2 0;
> #P connect 5 0 2 0;
> #P connect 5 0 6 0;
> #P connect 6 0 4 0;
> #P connect 4 0 3 0;
> #P pop;
>
>
> Thanks
>
> Rhys

Cheers
Gary Lee Nelson
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson

#95372
Feb 2, 2007 at 7:59pm

#95373
Feb 2, 2007 at 8:04pm

Swap doesn’t work on lists. If your coll location hase more than one
integer your example doesn’t work. See my most recent post on this.

On 2/2/07 1:12 PM, “Patrick Delges”

wrote:

> #P window setfont “Sans Serif” 9.;
> #P window linecount 1;
> #P newex 68 179 30 196617 pack;
> #P newex 59 146 33 196617 swap;
> #P message 18 37 33 196617 dump;
> #B color 5;
> #P message 89 66 31 196617 3 15;
> #P newex 176 122 32 196617 del 2;
> #P message 53 66 23 196617 1 1;
> #P message 176 146 53 196617 renumber;
> #N coll ;
> #P newobj 176 237 53 196617 coll;
> #N coll ;
> #P newobj 53 117 53 196617 coll;
> #P window linecount 6;
> #P comment 243 179 100 196617 It can then get renumbered seperately and
> updated everytime the first coll is altered?;
> #P connect 1 1 8 1;
> #P connect 9 0 2 0;
> #P connect 8 1 9 1;
> #P connect 8 0 9 0;
> #P connect 1 0 8 0;
> #P connect 7 0 1 0;
> #P connect 3 0 2 0;
> #P connect 5 0 3 0;
> #P connect 4 0 5 0;
> #P connect 4 0 1 0;
> #P connect 6 0 1 0;
> #P window clipboard copycount 10;

Cheers
Gary Lee Nelson
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson

#95374
Feb 2, 2007 at 8:05pm

#95375
Feb 2, 2007 at 8:26pm

#95376
Feb 2, 2007 at 9:20pm

Quote: Gary Lee Nelson wrote on Fri, 02 February 2007 21:05
—————————————————-
> Sorry our posts crossed
>

Anyway, my solution is wrong, again. I shouldn’t read a book while listining to mister Toeplitz’s music AND keep an eye on the list and try to answer questions. Just forget my previous posts, I wish I could remove them from the archives. I hope things will be better tomorrow. :-)

p

#95377
Feb 2, 2007 at 9:33pm

#95378
Feb 3, 2007 at 12:37am

#95379
Feb 3, 2007 at 2:27pm

Thanks guys, I was initially only planning on using numbers but now I know of ways to deal with symbols these ideas will be most useful indeed!

Rhys

#95380
Feb 3, 2007 at 3:09pm

Try this for wireless messaging

#P button 214 293 15 0;
#P button 125 295 15 0;
#P button 35 297 15 0;
#P window setfont “Sans Serif” 9.;
#P user umenu 144 98 100 196647 1 64 114 1;
#X add apples;
#X add peanuts;
#X add honey;
#P window linecount 1;
#P newex 276 189 68 196617 prepend send;
#P newex 276 162 69 196617 route symbol;
#P newex 233 222 47 196617 forward;
#P message 231 319 50 196617 is sweet;
#P newex 231 292 62 196617 prepend set;
#P newex 231 266 44 196617 r honey;
#P message 143 321 50 196617 are salty;
#P newex 143 294 62 196617 prepend set;
#P newex 143 268 52 196617 r peanuts;
#P message 55 322 50 196617 are tart;
#P newex 55 295 62 196617 prepend set;
#P newex 55 269 46 196617 r apples;
#N coll ;
#P newobj 233 126 147 196617 coll;
#P connect 7 0 16 0;
#P connect 7 0 8 0;
#P connect 4 0 15 0;
#P connect 4 0 5 0;
#P connect 1 0 14 0;
#P connect 1 0 2 0;
#P connect 12 0 10 0;
#P connect 11 0 12 0;
#P connect 0 1 11 0;
#P connect 13 1 0 0;
#P connect 0 0 10 0;
#P connect 8 0 9 0;
#P connect 5 0 6 0;
#P connect 2 0 3 0;
#P window clipboard copycount 17;

On 2/3/07 9:27 AM, “Rhys Perkins” wrote:

>
> Thanks guys, I was initially only planning on using numbers but now I know of
> ways to deal with symbols these ideas will be most useful indeed!
>
> Rhys

Cheers
Gary Lee Nelson
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson

#95381
Feb 5, 2007 at 8:08am

Rhys Perkins wrote:
> Thanks guys, I was initially only planning on using numbers but now I
> know of ways to deal with symbols these ideas will be most useful
> indeed!

but the most obvious and simple solution wasn’t posted yet, no need to
dump anything, just feed both colls in the beginning, no problem with
symbols either…

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 89 66 31 196617 3 15;
#P newex 176 131 72 196617 t renumber l;
#P message 53 66 23 196617 1 1;
#N coll ;
#P newobj 176 178 53 196617 coll;
#N coll ;
#P newobj 53 117 53 196617 coll;
#P connect 4 0 0 0;
#P connect 4 0 3 0;
#P connect 2 0 0 0;
#P connect 2 0 3 0;
#P connect 3 1 1 0;
#P connect 3 0 1 0;
#P window clipboard copycount 5;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#95382
Feb 5, 2007 at 11:06am

Unfortunately the most obvious solution wouldnt work in my case as the command length was being used along with renumber and therefore three coll objects were required in the end in order for it to work…

max v2;
#N vpatcher 10 59 776 665;
#P origin 0 39;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#N coll ;
#P newobj 203 329 48 196617 coll;
#P message 203 288 37 196617 length;
#P newex 203 266 38 196617 del 15;
#P message 262 267 33 196617 clear;
#P newex 363 102 69 196617 route symbol;
#P newex 363 245 72 196617 prepend store;
#P newex 425 142 69 196617 route symbol;
#P newex 363 213 45 196617 prepend;
#P newex 425 168 62 196617 prepend set;
#P message 220 153 33 196617 dump;
#P newex 220 131 32 196617 del 5;
#P newex 329 461 38 196617 s Test;
#P newex 299 388 40 196617 split 0;
#P newex 299 267 38 196617 del 10;
#P message 299 299 62 196617 renumber 1;
#P button 202 90 15 0;
#P number 329 423 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 163 413 15 0;
#P newex 203 381 40 196617 split 0;
#N coll ;
#P newobj 202 224 48 196617 coll;
#P newex 203 457 30 196617 + 1;
#P newex 203 436 40 196617 Urn-jb;
#N coll ;
#P newobj 299 359 53 196617 coll;
#P fasten 13 0 3 0 225 207 207 207;
#P connect 7 0 20 0;
#P connect 20 0 21 0;
#P connect 21 0 22 0;
#P connect 22 0 4 0;
#P fasten 5 0 1 0 168 425 208 425;
#P connect 1 0 2 0;
#P fasten 7 0 12 0 207 118 225 118;
#P connect 12 0 13 0;
#P connect 4 1 1 1;
#P fasten 7 0 19 0 207 112 267 112;
#P fasten 7 0 9 0 207 174 304 174;
#P connect 9 0 8 0;
#P fasten 2 0 0 0 208 488 275 488 275 327 304 327;
#P connect 8 0 0 0;
#P fasten 17 0 0 0 368 343 304 343;
#P fasten 19 0 0 0 267 353 304 353;
#P connect 0 0 10 0;
#P connect 10 1 6 0;
#P connect 6 0 11 0;
#P connect 3 0 18 0;
#P connect 14 0 15 0;
#P connect 18 1 15 0;
#P connect 18 0 15 0;
#P connect 15 0 17 0;
#P connect 3 1 16 0;
#P connect 16 1 14 0;
#P connect 16 0 14 0;
#P pop;

#95383
Feb 6, 2007 at 9:58am

Rhys Perkins wrote:
> Unfortunately the most obvious solution wouldnt work in my case as
> the command length was being used along with renumber and therefore
> three coll objects were required in the end in order for it to
> work…

no matter how many colls you need, the most obvious solution is always
to pass the information just to all of them. You would only need several
colls if they have the same content, but differently ordered, elswise
the most obvious solution is to name the colls (with the same name),
then you can access the content at 1000 different places…

To boil it down, there is no need to copy the coll for what you wanted
to do. (To be honest, the last patch didn’t explain to me, what you are
after, at first sight I’d say, replace all the delays with a proper
trigger structure…)

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#95384

You must be logged in to reply to this topic.