aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/initbang-help-ex1-loadbang.pd
diff options
context:
space:
mode:
Diffstat (limited to 'doc/pddp/initbang-help-ex1-loadbang.pd')
-rw-r--r--doc/pddp/initbang-help-ex1-loadbang.pd44
1 files changed, 26 insertions, 18 deletions
diff --git a/doc/pddp/initbang-help-ex1-loadbang.pd b/doc/pddp/initbang-help-ex1-loadbang.pd
index a8b251c6..b7434d22 100644
--- a/doc/pddp/initbang-help-ex1-loadbang.pd
+++ b/doc/pddp/initbang-help-ex1-loadbang.pd
@@ -1,18 +1,26 @@
-#N canvas 104 284 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 1;
-#X msg 157 203 obj 20 50 outlet;
-#X obj 157 226 s pd-initbang-help-ex1-loadbang.pd;
-#X obj 157 180 loadbang;
-#X text 67 48 This abstraction uses [loadbang] below to create the
-[outlet] seen at left. The [loadbang] object only gets triggered after
-all objects and connections in the parent patch have been created.
-;
-#X text 67 98 This poses a problem if you want to save the patch with
-a connection from this abstraction's outlet in the parent patch to
-the [print from_loadbang] object below it. The next time you open the
-patch \, Pd will attempt to connect those objects BEFORE the [outlet]
-gets created \, and you will get an error.;
-#X connect 2 0 3 0;
-#X connect 4 0 2 0;
+#N canvas 735 240 543 348 10;
+#X obj 10 10 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12
+0 14 -204280 -1 0;
+#X text 17 11 [initbang] Abstraction Example No 1;
+#X msg 17 285 obj 20 50 outlet;
+#X obj 17 228 loadbang;
+#X text 91 142 This poses a problem if you want to save the patch with
+a connection from this abstraction's outlet in the parent patch to
+the [print from_loadbang] object below it. The next time you open the
+patch \, Pd will attempt to connect those objects BEFORE the [outlet]
+gets created \, and you will get an error.;
+#X obj 17 252 trigger bang bang;
+#X obj 250 308 print [initbang];
+#X text 91 72 This abstraction uses [loadbang] below to create the
+[outlet] seen at left. The [loadbang] object sends its bang after everything
+is done loading \, that means after all objects \, connections \, etc.
+in the parent patch have been created.;
+#X msg 138 265 the error above shows that loadbang creates the outlet
+too late;
+#X text 71 50 <- dynamically created [outlet];
+#X obj 17 308 send pd-initbang-help-ex1-loadbang.pd;
+#X connect 2 0 10 0;
+#X connect 3 0 5 0;
+#X connect 5 0 2 0;
+#X connect 5 1 8 0;
+#X connect 8 0 6 0;