aboutsummaryrefslogtreecommitdiff
path: root/doc/tutorials/intro/08.bang.pd
blob: e7a0affaf2100acafab43ca611c629690720a7c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#N canvas 435 180 496 390 10;
#X text 164 19 bang;
#X text 27 47 In Pd \, "bang" means "do something". What that "something"
is depends on the object receiving the bang.;
#X obj 32 159 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 32 188 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X msg 32 248 bang;
#X obj 32 273 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X text 54 157 <--bang button;
#X text 76 249 <--you can also send "bang" using a message box;
#X text 28 105 Here \, this toggle changes state when it receives a
bang:;
#X connect 2 0 3 0;
#X connect 4 0 5 0;