[PD] time display?

Frank Barknecht fbar at footils.org
Wed Jan 18 19:40:18 CET 2006


Hallo,
Oded Ben-Tal hat gesagt: // Oded Ben-Tal wrote:

> Thanks for your help.
> It seems that if only the symbol object could be controlled (in terms of 
> size/colour) it would be perfect for displaying time to a player in a 
> performance situation. 
> Using the number2 option (M S or H M S) has the disadvantage that it 
> doesn't look like a clock so will need a little more time to get use to. 

This one is using [knob]: 

http://cvs.sourceforge.net/viewcvs.py/*checkout*/pure-data/externals/footils/knob/clock.pd?rev=1.1

(The URL is one line!)

Personally I prefer a digital clock, I used [cnv] for this.

I also used [timer] for timing instead of metro, because it's a bit
easier to patch: Just divide by 1000 and use [div 60] and [mod 60] and
some [makefilename] tricks. (You cannot pause [timer] so you may not
want to follow this.)

See attached patch.

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
-------------- next part --------------
#N canvas 324 327 521 464 10;
#X obj 107 98 timer;
#X obj 132 74 metro 1000;
#X msg 107 29 bang;
#X obj 132 55 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X obj 107 126 / 1000;
#X obj 107 190 mod 60;
#X obj 166 188 div 60;
#X obj 282 129 cnv 15 100 60 empty \$0-time 1:36 20 12 0 14 -233017
-66577 0;
#X obj 107 152 t f f;
#X obj 107 236 makefilename;
#X msg 107 264 label \$1;
#X msg 166 211 set \$1:%.2d;
#X obj 107 303 s \$0-time;
#X connect 0 0 4 0;
#X connect 1 0 0 1;
#X connect 2 0 0 0;
#X connect 3 0 1 0;
#X connect 4 0 8 0;
#X connect 5 0 9 0;
#X connect 6 0 11 0;
#X connect 8 0 5 0;
#X connect 8 1 6 0;
#X connect 9 0 10 0;
#X connect 10 0 12 0;
#X connect 11 0 9 0;


More information about the Pd-list mailing list