aboutsummaryrefslogtreecommitdiff
path: root/doc/tutorials/intro/10.counters.pd
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorials/intro/10.counters.pd')
-rw-r--r--doc/tutorials/intro/10.counters.pd44
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/tutorials/intro/10.counters.pd b/doc/tutorials/intro/10.counters.pd
new file mode 100644
index 00000000..30d3941a
--- /dev/null
+++ b/doc/tutorials/intro/10.counters.pd
@@ -0,0 +1,44 @@
+#N canvas 400 118 624 449 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 -261681 -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;