From a0bcda9d0246b7046a10c2ab51d736fc84574803 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 1 Jan 2013 18:22:38 +0000 Subject: fix examples, point out error message, and expand on that initbang only gets sent in abstractions i.e. embedded patches svn path=/trunk/; revision=16801 --- doc/pddp/initbang-help-ex2-initbang.pd | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'doc/pddp/initbang-help-ex2-initbang.pd') diff --git a/doc/pddp/initbang-help-ex2-initbang.pd b/doc/pddp/initbang-help-ex2-initbang.pd index 6fb41643..93bb2c47 100644 --- a/doc/pddp/initbang-help-ex2-initbang.pd +++ b/doc/pddp/initbang-help-ex2-initbang.pd @@ -1,15 +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; +#N canvas 87 221 428 300 10; +#X obj 1 9 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0 +14 -204280 -1 0; +#X text 8 10 [initbang] Abstraction Example No 2; +#X obj 126 166 initbang; +#X text 64 129 <- dynamically created [outlet]; +#X text 20 45 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 msg 126 189 obj 20 130 outlet; +#X obj 126 212 send pd-initbang-help-ex2-initbang.pd; +#X connect 2 0 5 0; +#X connect 5 0 6 0; -- cgit v1.2.1