[PD] PD n00b: counter kludge

matthijs at devdsp.net matthijs at devdsp.net
Tue Jul 22 15:16:33 CEST 2003


Hi list,

The attached patch is my attempt at creating a counter that switches
between two values after every x bangs (6, in this case).

It works, but I was wondering if someone knew of a less kludgy way to do
it.

Especially since this method doesn't always work ?????

-- 
take care,

Matthijs de Jonge
http://devdsp.net - news and resources for computer musicians
-------------- next part --------------
#N canvas 138 101 397 386 10;
#X obj 165 -1 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 188 -1 loadbang;
#X obj 178 26 metro 200;
#X text 295 18 counter: switch after 6;
#X floatatom 73 326 5 0 0 0 - - -;
#X msg 64 170 64;
#X msg 107 170 76;
#X obj 204 69 + 1;
#X obj 178 69 int;
#X floatatom 203 89 5 0 0 0 - - -;
#X msg 271 44 0;
#X obj 202 127 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X floatatom 202 144 5 0 0 0 - - -;
#X obj 108 276 *;
#X obj 202 161 - 1;
#X obj 202 181 abs;
#X floatatom 202 202 5 0 0 0 - - -;
#X obj 64 279 *;
#X obj 73 305 +;
#X obj 203 106 select 7;
#X connect 0 0 2 0;
#X connect 1 0 2 0;
#X connect 2 0 8 0;
#X connect 5 0 17 0;
#X connect 6 0 13 0;
#X connect 7 0 8 1;
#X connect 7 0 9 0;
#X connect 8 0 7 0;
#X connect 9 0 19 0;
#X connect 10 0 7 0;
#X connect 11 0 12 0;
#X connect 12 0 13 1;
#X connect 12 0 14 0;
#X connect 13 0 18 1;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 16 0 17 1;
#X connect 17 0 18 0;
#X connect 18 0 4 0;
#X connect 19 0 10 0;
#X connect 19 0 11 0;
#X connect 19 0 6 0;
#X connect 19 0 5 0;


More information about the Pd-list mailing list