blob: 9e8d4640817c8b0af82d60f089b134600ca0c136 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#N canvas 10 40 624 464 12;
#X obj 10 10 cnv 15 400 40 empty empty counters 20 12 0 24 -228992
-66577 0;
#X obj 156 362 cnv 15 100 60 empty empty empty 20 12 0 14 -261039 -66577
0;
#X obj 174 382 f;
#X obj 209 382 + 1;
#X obj 157 219 float;
#X floatatom 120 246 5 0 0 0 - - -;
#X msg 121 137 1;
#X obj 120 219 +;
#X msg 157 189 0;
#X msg 133 160 -1;
#X text 167 138 increment;
#X text 172 161 decrement;
#X text 195 187 reset;
#X floatatom 346 244 5 0 0 0 - - -;
#X msg 404 180 0;
#X text 395 137 increment;
#X obj 346 216 float;
#X obj 404 216 + 1;
#X msg 347 138 bang;
#X text 278 377 DANGER! infinite loop!;
#X text 20 78 Counters are used a lot when programming Pd. Here are
two examples of simple counters that you will see frequently.;
#X text 442 180 reset;
#X text 20 276 Pd is designed to be as flexible and open as possible.
This means that it will let you crash your computer. For example \,
never start a counter like this \, it will crash your computer!;
#X connect 2 0 3 0;
#X connect 3 0 2 0;
#X connect 4 0 7 1;
#X connect 6 0 7 0;
#X connect 7 0 4 0;
#X connect 7 0 5 0;
#X connect 8 0 4 0;
#X connect 8 0 7 0;
#X connect 9 0 7 0;
#X connect 14 0 17 0;
#X connect 14 0 16 0;
#X connect 16 0 13 0;
#X connect 16 0 17 0;
#X connect 17 0 16 1;
#X connect 18 0 16 0;
|