aboutsummaryrefslogtreecommitdiff
path: root/pd/doc/5.reference/metro.pd
blob: f848e5820e52b2a8d49a8097cdbd2b0d9b3869a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#N canvas 39 7 634 372 12;
#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 67 285 + 1;
#X obj 32 284 int;
#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 text 92 135 nonzero number or "bang" to start;
#X msg 49 172 0;
#X msg 38 148 bang;
#X msg 49 194 stop;
#X text 99 181 zero or "stop" to stop.;
#X text 351 332 Updated for Pd version 0.33;
#X text 130 220 right inlet sets the rate in msec per tick.;
#X text 127 243 creation argument initializes rate in msec;
#X connect 1 0 2 1;
#X connect 2 0 3 0;
#X connect 2 0 1 0;
#X connect 4 0 2 0;
#X connect 6 0 4 1;
#X connect 8 0 9 0;
#X connect 9 0 4 0;
#X connect 11 0 4 0;
#X connect 12 0 4 0;
#X connect 13 0 4 0;