Forums > MaxMSP

Bang after nothing happens

March 13, 2007 | 1:22 pm

Hi,

is it possible to send a bang after something is inactive for a certain amout of time. For example, once data has stopped inserting into a coll?

Thank you
Chris


March 13, 2007 | 1:35 pm

On 13 mars 07, at 14:22, Chris Hipgrave wrote:

> is it possible to send a bang after something is inactive for a
> certain amout of time. For example, once data has stopped inserting
> into a coll?

delay might help. It only delay the last bang.

Best,
ej

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 54 251 33 196617 clear;
#P message 97 251 53 196617 remove 5;
#P user umenu 262 350 100 196647 1 64 366 1;
#X add I’m inactive;
#X add I’m active;
#P number 97 154 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user jit.cellblock 402 172 511 293 3 9 2 5 45 17 0 1 1 0 1 0 1 1 1
0 0 0 255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0 4
0 0 0;
#P newex 402 132 99 196617 loadmess refer toto;
#P newex 207 305 27 196617 0;
#P newex 207 245 50 196617 del 2000;
#N coll toto 1;
#P newobj 97 302 56 196617 coll toto 1;
#P newex 97 221 175 196617 t b s b 1;
#P newex 97 191 84 196617 prepend insert 0;
#P connect 10 0 2 0;
#P fasten 1 1 2 0 157 280;
#P connect 1 0 9 0;
#P connect 1 2 3 0;
#P connect 1 3 8 0;
#P connect 0 0 1 0;
#P connect 9 0 2 0;
#P connect 3 0 4 0;
#P connect 4 0 8 0;
#P connect 7 0 0 0;
#P connect 5 0 6 0;
#P window clipboard copycount 11;


March 13, 2007 | 1:37 pm

You can do this with a delay object, like so:

#P button 182 147 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 325 129 21 196617 t 0;
#P newex 314 103 38 196617 sel 20;
#P toggle 271 23 15 0;
#N coll ;
#P newobj 253 165 53 196617 coll;
#P newex 253 140 42 196617 pack i i;
#N counter 0 0 20;
#X flags 0 0;
#P newobj 271 69 77 196617 counter 0 0 20;
#P newex 271 44 58 196617 metro 750;
#P newex 182 122 61 196617 delay 1000;
#P window linecount 4;
#P comment 74 91 100 196617 delay resets when it receives input. stop
the input , get the bang;
#P connect 1 0 9 0;
#P connect 3 0 4 0;
#P connect 3 0 4 1;
#P connect 3 0 7 0;
#P fasten 8 0 6 0 330 153 363 153 363 18 276 18;
#P connect 7 0 8 0;
#P connect 2 0 1 0;
#P connect 2 0 3 0;
#P connect 6 0 2 0;
#P connect 4 0 5 0;
#P window clipboard copycount 10;

Am 13.03.2007 um 14:22 schrieb Chris Hipgrave:

>
> Hi,
>
> is it possible to send a bang after something is inactive for a
> certain amout of time. For example, once data has stopped inserting
> into a coll?
>
> Thank you
> Chris


March 13, 2007 | 1:45 pm

both work perfectly. Thank you


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