aboutsummaryrefslogtreecommitdiff
path: root/doc/tutorials/intro/0.bang.pd
blob: 06efcf8db7e5d9b43d16ab7a67a1323e75cc06f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#N canvas 435 180 493 371 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 34 121 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 36 283 bng 25 250 50 0 empty empty do_it! -2 -8 1 10 -24198
-1 -1;
#X obj 38 318 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 34 150 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X msg 35 196 bang;
#X obj 35 221 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X text 56 119 <--bang button;
#X text 79 197 <--you can also send "bang" using a message box;
#X text 77 282 <-- bang buttons have configurable properties \, like
color \, labels \, fonts \, size \, etc.;
#X connect 2 0 5 0;
#X connect 3 0 4 0;
#X connect 6 0 7 0;