Forums > MaxMSP

Problem with coll dump and delay


nm
May 21, 2008 | 11:56 pm

Hi all,

I’ve a problem with the coll object.
I use it to recall preset and it works well when i command the patch to load with manual triggering.

The problem is when I want to schedule the trigger with delays, the coll object is reading the precedent text list stored and then is changing the text inside.

I’ve seen on the forum it’s due to the organisation between the delay and the coll object but i can’t find any workaround…

Has somebody has one?

thanks

here is the preset patch:

max v2;
#N vpatcher 412 155 1574 637;
#P window setfont "Sans Serif" 9.;
#P newex 236 62 27 196617 + 1;
#P newex 51 60 27 196617 + 1;
#P newex 51 114 27 196617 t b i;
#P inlet 236 39 15 0;
#P inlet 51 37 15 0;
#P message 68 152 98 196617 read $1-m_presets;
#P message 236 116 103 196617 write $1-m_presets;
#P newex 235 200 72 196617 prepend store;
#P newex 235 175 57 196617 r to_store;
#P message 51 186 33 196617 dump;
#P newex 73 281 69 196617 route symbol;
#P newex 73 301 68 196617 prepend send;
#P newex 51 329 47 196617 forward;
#B color 6;
#N coll m_presets;
#P newobj 51 239 77 196617 coll m_presets;
#P comment 81 39 100 196617 preset to read;
#P comment 263 41 100 196617 preset to write;
#P connect 11 0 14 0;
#P connect 14 0 13 0;
#P connect 13 0 6 0;
#P connect 10 0 2 0;
#P connect 9 0 2 0;
#P connect 6 0 2 0;
#P connect 8 0 2 0;
#P connect 2 0 3 0;
#P connect 4 0 3 0;
#P connect 13 1 10 0;
#P connect 2 1 5 0;
#P connect 5 0 4 0;
#P connect 7 0 8 0;
#P connect 12 0 15 0;
#P connect 15 0 9 0;
#P pop;


May 22, 2008 | 12:51 am

I’m not exactly sure what you mean by "delay". Do you mean the lag time between telling the coll object to read a data file and the time it is "available"? Couple things to try:
1. put a "deferlow" after the trigger between the bang and the dump. This should ensure that the dump message gets to the coll after the file has been read, or
2. rather than having the trigger send the dump message to coll, use the bang coming out of the 3rd outlet of coll (bang on read) to go to dump.

Maybe that helps?

David



nm
May 22, 2008 | 7:23 am

By delay I mean the delay object.
It works well now when using the third outlet of coll to trigger the dump.

Thanks


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