Forums > Javascript

stop speedlim


FP
November 12, 2008 | 6:12 pm

hi,

maybe it’s very easy but how to stop a speedlim like [delay] or [pipe]

if i send 60000 then 0 to the right inlet i have to wait first 60000 ms before the limiation is back to 0.
i would like to stop the process when i enter a new value.
how to ?

thanks.

f./


November 12, 2008 | 6:14 pm

On 12 nov. 08, at 19:12, fp wrote:

> hi,
>
> maybe it’s very easy but how to stop a speedlim like [delay] or [pipe]
>
> if i send 60000 then 0 to the right inlet i have to wait first 60000
> ms before the limiation is back to 0.
> i would like to stop the process when i enter a new value.
> how to ?

Do you have an example of what you’re currently doing?

yourclock.cancel() should stop it.

ej



FP
November 12, 2008 | 7:19 pm

hi,

it’s because i have many counters but they don’t play as the same rate. i wanted to drive them by just one metro.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 315 443 14 196617 0;
#P message 286 443 26 196617 100;
#P toggle 247 388 15 0;
#P newex 247 410 52 196617 metro 40;
#P button 247 482 15 0;
#P newex 247 567 32 196617 print;
#P newex 286 504 47 196617 * 1000.;
#P newex 247 526 49 196617 speedlim;
#P window linecount 3;
#P comment 332 444 100 196617 i don’t want to wait 100s before 0 is active;
#P connect 6 0 5 0;
#P connect 5 0 4 0;
#P connect 4 0 1 0;
#P connect 1 0 3 0;
#P connect 8 0 2 0;
#P connect 7 0 2 0;
#P connect 2 0 1 1;
#P window clipboard copycount 9;



FP
November 12, 2008 | 7:31 pm

did i put this message on javascript forum ?
it was a max/msp question.

so i suppose yourclock.cancel() is a javascript message.
i don’t know yet how to use it.


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