Forums > MaxMSP

question about speedlim

October 4, 2006 | 6:55 am

I just found that speedlim actually will still accept the next message outside the specified speed limitation. For example, if you set the speedlime as 1000 ms, and when you bang it twice within 1000 ms, the 2nd bang will still be send out after 1000 ms is reached. If you bang it three times within 1000 ms, the 3rd bang will be ignored.

I was wondering if there is an easy way to ignore the 2nd bang as well.

PS: I am trying to synchronize the input with the output and ignore the inputs that are over the specified speed limitation.

Any suggestion ?

Thanks.


October 4, 2006 | 7:23 am

If you hit speedlim twice the first one is output immediately. The
second one is held for 1000 ms. If you hit it three times or more in
succession the first one is let through, the last one is output after
1000 ms, and the ones in between are filtered out.

For what you want to do you will have to make an abstraction using a
gate that closes itself when something gets through, only to open again
1000 ms later.

Best,
Trond

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 464 151 40 196617 uzi;
#P newex 457 341 32 196617 print;
#P button 464 74 15 0;
#P number 464 124 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 464 99 58 196617 random 20;
#P newex 457 216 47 196617 gate 1 1;
#P newex 395 271 55 196617 pipe 1000;
#P newex 373 248 32 196617 t 0 1;
#P button 70 148 15 0;
#P newex 100 278 32 196617 print;
#P newex 100 253 76 196617 speedlim 1000;
#P number 70 198 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 70 173 58 196617 random 20;
#P newex 70 224 40 196617 uzi;
#P connect 13 2 8 1;
#P connect 8 0 6 0;
#P connect 8 0 12 0;
#P connect 10 0 13 0;
#P fasten 7 0 8 0 400 307 352 307 352 197 462 197;
#P fasten 6 0 8 0 378 297 359 297 359 207 462 207;
#P connect 9 0 10 0;
#P connect 11 0 9 0;
#P connect 6 1 7 0;
#P connect 5 0 1 0;
#P connect 0 2 3 0;
#P connect 3 0 4 0;
#P connect 2 0 0 0;
#P connect 1 0 2 0;
#P window clipboard copycount 14;

Cheng Chien-Wen wrote:
> I just found that speedlim actually will still accept the next message outside the specified speed limitation. For example, if you set the speedlime as 1000 ms, and when you bang it twice within 1000 ms, the 2nd bang will still be send out after 1000 ms is reached. If you bang it three times within 1000 ms, the 3rd bang will be ignored.
>
> I was wondering if there is an easy way to ignore the 2nd bang as well.
>
> PS: I am trying to synchronize the input with the output and ignore the inputs that are over the specified speed limitation.
>
> Any suggestion ?
>
> Thanks.


October 4, 2006 | 8:23 pm

Thank you very much.

Chien-Wen

Quote: Trond Lossius wrote on Wed, 04 October 2006 01:23
—————————————————-
> If you hit speedlim twice the first one is output immediately. The
> second one is held for 1000 ms. If you hit it three times or more in
> succession the first one is let through, the last one is output after
> 1000 ms, and the ones in between are filtered out.
>
> For what you want to do you will have to make an abstraction using a
> gate that closes itself when something gets through, only to open again
> 1000 ms later.
>
> Best,
> Trond
>
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P newex 464 151 40 196617 uzi;
> #P newex 457 341 32 196617 print;
> #P button 464 74 15 0;
> #P number 464 124 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 464 99 58 196617 random 20;
> #P newex 457 216 47 196617 gate 1 1;
> #P newex 395 271 55 196617 pipe 1000;
> #P newex 373 248 32 196617 t 0 1;
> #P button 70 148 15 0;
> #P newex 100 278 32 196617 print;
> #P newex 100 253 76 196617 speedlim 1000;
> #P number 70 198 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 70 173 58 196617 random 20;
> #P newex 70 224 40 196617 uzi;
> #P connect 13 2 8 1;
> #P connect 8 0 6 0;
> #P connect 8 0 12 0;
> #P connect 10 0 13 0;
> #P fasten 7 0 8 0 400 307 352 307 352 197 462 197;
> #P fasten 6 0 8 0 378 297 359 297 359 207 462 207;
> #P connect 9 0 10 0;
> #P connect 11 0 9 0;
> #P connect 6 1 7 0;
> #P connect 5 0 1 0;
> #P connect 0 2 3 0;
> #P connect 3 0 4 0;
> #P connect 2 0 0 0;
> #P connect 1 0 2 0;
> #P window clipboard copycount 14;
>
>
> Cheng Chien-Wen wrote:
> > I just found that speedlim actually will still accept the next message outside the specified speed limitation. For example, if you set the speedlime as 1000 ms, and when you bang it twice within 1000 ms, the 2nd bang will still be send out after 1000 ms is reached. If you bang it three times within 1000 ms, the 3rd bang will be ignored.
> >
> > I was wondering if there is an easy way to ignore the 2nd bang as well.
> >
> > PS: I am trying to synchronize the input with the output and ignore the inputs that are over the specified speed limitation.
> >
> > Any suggestion ?
> >
> > Thanks.
>
>
—————————————————-


September 20, 2012 | 11:45 am

"If you hit speedlim twice the first one is output immediately"

Can I make the first one wait until its synced to a notevalue(transport), like 4n



Jan
September 21, 2012 | 10:19 am

you can store the output in a [value], [int] or [float] and send it a bang from a metro that is bound to transport.

– Pasted Max Patch, click to expand. –

jan


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