#N canvas 459 40 668 496 12;
#X floatatom 214 196 4 0 0 0 - - - 0;
#X obj 214 170 + 1;
#X msg 214 66 bang;
#X obj 214 118 metro 500;
#X msg 123 124 stop;
#X obj 214 144 float;
#X obj 214 92 trigger bang bang;
#X msg 330 124 0;
#X obj 123 98 select 10;
#X text 363 118 first set value to zero, f 13;
#X text 344 92 initialization is in two steps;
#X text 337 152 (before starting the metronome);
#X obj 190 323 >= 0;
#X obj 190 349 select 0 1;
#X obj 223 404 float;
#X msg 223 375 bang;
#X obj 277 405 + 1;
#X msg 190 375 -1;
#X text 52 23 Here's a counter that counts from 1 to 10:;
#X text 410 435 updated for Pd version 0.34;
#X text 54 241 We're using one new object \, "select \, " which outputs
a bang when it gets a matching value (10). This is useful for doing
conditional computations \, such as this one which counts while its
input is 0 or positive but clears when negative:, f 73;
#X text 251 65 <= click here to start;
#X text 51 77 conditionally stop the metronome, f 13;
#X text 229 323 <= are we nonnegative? (1 if true \, 0 if false);
#X text 261 375 <= as a result either clear or increment the counter
;
#X text 268 348 <= selectively bang the first or second outlet;
#X text 293 194 select can be abbreviated as:;
#X obj 509 193 sel;
#X floatatom 190 297 4 0 0 0 - - - 0;
#X floatatom 277 431 4 0 0 0 - - - 0;
#X connect 1 0 0 0;
#X connect 1 0 5 1;
#X connect 1 0 8 0;
#X connect 2 0 6 0;
#X connect 3 0 5 0;
#X connect 4 0 3 0;
#X connect 5 0 1 0;
#X connect 6 0 3 0;
#X connect 6 1 7 0;
#X connect 7 0 5 1;
#X connect 8 0 4 0;
#X connect 12 0 13 0;
#X connect 13 0 17 0;
#X connect 13 1 15 0;
#X connect 14 0 16 0;
#X connect 15 0 14 0;
#X connect 16 0 14 1;
#X connect 16 0 29 0;
#X connect 17 0 14 0;
#X connect 28 0 12 0;
