[PD] GEM-Reverse counter

Frank Barknecht fbar at footils.org
Thu Mar 23 00:52:02 CET 2006


Hallo,
Carlos Caires hat gesagt: // Carlos Caires wrote:

> is there a way to have a counter with forward and backward countdown? i.e rotate a square from 0 to 360 and then back to 0.

Yes, if you built your counters the usual way, that is [f 0]x[+ 1],
just send a "-1" to the rightmost inlet to count backwards. See
attached patch.

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
-------------- next part --------------
#N canvas 0 0 450 300 10;
#X obj 174 141 f 0;
#X obj 204 141 + 1;
#X msg 297 104 1;
#X msg 220 103 -1;
#X msg 174 60 bang;
#X floatatom 174 168 5 0 0 0 - - -;
#X obj 101 104 metro 500;
#X obj 101 85 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X msg 297 80 forward;
#X msg 220 81 backwards;
#X obj 177 188 hsl 128 15 -30 30 0 0 empty empty empty -2 -6 0 8 -262144
-1 -1 6773 1;
#X msg 184 83 0;
#X connect 0 0 1 0;
#X connect 0 0 5 0;
#X connect 1 0 0 1;
#X connect 2 0 1 1;
#X connect 3 0 1 1;
#X connect 4 0 0 0;
#X connect 5 0 10 0;
#X connect 6 0 0 0;
#X connect 7 0 6 0;
#X connect 8 0 2 0;
#X connect 9 0 3 0;
#X connect 11 0 0 0;


More information about the Pd-list mailing list