#X text 19 36 The metro object sends a series of bangs at a constant rate. The right inlet takes the value in milliseconds between each bang. The left inlet takes a 1 or 0 \, turning the metronome on or off.;
#X obj 32 291 metro 500;
#X obj 67 285 + 1;
#X obj 70 9 metro;
#X obj 32 284 int;
#X floatatom 101 268 4 0 0 0 - - -, f 4;
#X floatatom 32 317 4 0 0;
#X obj 32 243 metro 500;
#X obj 5 6 metro;
#X floatatom 81 220 4 0 0;
#X text 104 282 These objects work together as a counter. For each bang sent by metro \, the output adds 1;
#X obj 32 103 loadbang;
#X msg 32 125 1;
#X msg 32 125 1;
#X text 92 135 nonzero number or "bang" to start;
#X text 92 135 nonzero number or "bang" to start;
#X msg 49 172 0;
#X msg 49 172 0;
#X msg 38 148 bang;
#X msg 38 148 bang;
#X msg 49 194 stop;
#X msg 49 194 stop;
#X text 99 181 zero or "stop" to stop.;
#X text 99 181 zero or "stop" to stop.;
#X text 351 332 Updated for Pd version 0.33;
#X text 150 268 right inlet sets the rate in msec per tick.;
#X text 130 220 right inlet sets the rate in msec per tick.;
#X text 377 471 Updated for Pd version 0.45;
#X text 127 243 creation argument initializes rate in msec;
#X text 121 8 - metronome;
#X connect 1 0 2 1;
#X text 23 35 The metro object sends a series of bangs at regular time
#X connect 2 0 3 0;
intervals. The right inlet takes the value in milliseconds between
#X connect 2 0 1 0;
each bang. The left inlet takes a 1 or 0 \, turning the metronome on