[PD] A non-leaky stopwatch

João Pais jmmmpais at googlemail.com
Wed Feb 25 01:36:32 CET 2009


Hi,

do you want to pack this together with pd-ext? It would be easier for  
general people to keep track of it.

João Pais

> Hello,
>
> Attached is a stopwatch, derived from [maketime], that doesn't pollute
> the symbol table (i.e., indefinitely leak memory), thanks to Frank B.'s
> idea for keeping the symbols re-usable.
>
> It has one-second grain, so it does not keep track of partial seconds
> between stops and restarts-with-no-reset.  However, it is quite accurate
> after resets and when first started.  I learned that metro sends an
> immediate bang when started -- something I had never paid attention to
> before.  So [ps-stopwatch] always skips the first bang out of [metro]
> (after reset) so that it isn't one second ahead.  It counts up to 99
> hours, 59 minutes, and 59 seconds, then wraps back to zero.
>
> It would be easy to make this a finer-grain stopwatch, down to the
> inherent resolution of [metro].  However, for my purposes (timing of
> live performance) one-second grain is quite adequate, and not too
> CPU-hungry.
>
> Thanks again to Frank for this elegant solution.
>
>
> Phil Stone
> www.pkstonemusic.com
>



-- 
Friedenstr. 58
10249 Berlin (Deutschland)
Tel +49 30 42020091 | Mob +49 162 6843570
jmmmpais at googlemail.com | skype: jmmmpjmmmp




More information about the Pd-list mailing list