aboutsummaryrefslogtreecommitdiff
path: root/sfruit/countdown.pd
diff options
context:
space:
mode:
Diffstat (limited to 'sfruit/countdown.pd')
-rw-r--r--sfruit/countdown.pd30
1 files changed, 30 insertions, 0 deletions
diff --git a/sfruit/countdown.pd b/sfruit/countdown.pd
new file mode 100644
index 0000000..dce1ba3
--- /dev/null
+++ b/sfruit/countdown.pd
@@ -0,0 +1,30 @@
+#N canvas 474 143 383 332 10;
+#X obj 54 167 timer;
+#X obj 55 50 inlet;
+#X obj 54 191 expr $f2 - $f1;
+#X obj 54 295 outlet;
+#X obj 116 295 outlet;
+#X msg 54 275 0;
+#X obj 54 254 t b b b;
+#X msg 133 254 0;
+#X obj 55 71 t b b a;
+#X msg 55 95 1;
+#X text 55 16 upon receiving a number \, count down from it by 1/ms
+;
+#X obj 81 116 metro 50;
+#X obj 54 214 if <= 0;
+#X connect 0 0 2 0;
+#X connect 1 0 8 0;
+#X connect 2 0 12 0;
+#X connect 5 0 3 0;
+#X connect 6 0 4 0;
+#X connect 6 1 5 0;
+#X connect 6 2 7 0;
+#X connect 7 0 11 0;
+#X connect 8 0 9 0;
+#X connect 8 1 0 0;
+#X connect 8 2 2 1;
+#X connect 9 0 11 0;
+#X connect 11 0 0 1;
+#X connect 12 0 6 0;
+#X connect 12 1 3 0;