aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/initbang-help-ex2-initbang.pd
diff options
context:
space:
mode:
Diffstat (limited to 'doc/pddp/initbang-help-ex2-initbang.pd')
-rw-r--r--doc/pddp/initbang-help-ex2-initbang.pd15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/pddp/initbang-help-ex2-initbang.pd b/doc/pddp/initbang-help-ex2-initbang.pd
new file mode 100644
index 00000000..6fb41643
--- /dev/null
+++ b/doc/pddp/initbang-help-ex2-initbang.pd
@@ -0,0 +1,15 @@
+#N canvas 81 215 428 300 10;
+#X obj 0 0 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
+14 -204280 -1 0;
+#X text 7 1 [initbang] Abstraction Example No 2;
+#X obj 157 191 s pd-initbang-help-ex2-initbang.pd;
+#X obj 157 145 initbang;
+#X text 74 109 <- dynamically created [outlet];
+#X msg 157 168 obj 20 110 outlet;
+#X text 19 36 This abstraction just shows a simple example of how [initbang]
+works. Since [initbang] is used below (instead of [loadbang]) \, the
+outlet gets created before the parent patch initializes. This ensures
+that connections get created properly when the parent patch is opened.
+;
+#X connect 3 0 5 0;
+#X connect 5 0 2 0;