[PD] Make timer / clock

Frank Barknecht fbar at footils.org
Fri May 6 15:01:37 CEST 2005


Hallo,
sara kolster hat gesagt: // sara kolster wrote:

> I want to make a clock [stopwatch] which counts down from [for example] 
> 30 minutes till zero, but I have a very hard time making it. For so far 
> I made a counter with a metro of 1000 which counts the seconds and 
> connected a select 60 to count the minutes. 

Actually it's better to not use [select] here, but [mod 60]. Combined
with [div] you get a very simple clock for minutes and seconds: 

 [r seconds]
 |
 [t   f    f]
 |         |
 [div 60]  [mod 60]
 |         |
 "minutes" "seconds"

Ciao
-- 
 Frank Barknecht                               _ ______footils.org__
             
          _ __latest track: "scans" _ http://footils.org/cms/show/41




More information about the Pd-list mailing list