aboutsummaryrefslogtreecommitdiff
path: root/buttongate-help.pd
blob: ea4d44e2f9f6c8d5b316a9c4e11b126a54bacabe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#N canvas 1 53 463 514 10;
#X obj 5 2 cnv 15 450 20 empty empty buttongate 2 11 1 18 -233017 -66577
0;
#X obj 160 287 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 160 151 loadbang;
#X msg 160 171 1;
#X obj 160 199 metro 150;
#X text 27 460 (C) Copyright 2004 Hans-Christoph Steiner <hans@at.or.at>
;
#X text 244 474 released under the GNU GPL;
#X obj 223 417 pddp/pddplink ../mapping-about.pd -text mapping-about
;
#X text 114 418 For more info:;
#X text 17 38 [buttongate] is a simple gate controlled by a HID button.
You must specify the device and the button which controls the gate.
The left inlet takes the data to be gated. The right inlet is for sending
optional control messages to the HID.;
#X obj 160 244 buttongate 0 btn_0;
#X text 18 119 The first button on the first device controls this gate:
;
#X text 15 237 data to be gated -->;
#X text 292 237 <-- msgs to [hid];
#X obj 281 288 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 310 197 refresh;
#X msg 299 176 open 2;
#X text 39 294 button pressed->;
#X text 310 293 <-- button released;
#X text 23 348 Keyboard keys can also be used to control this object.
You can get the [hid] keycode from here:;
#X obj 324 368 ev_key-list;
#X msg 422 3 pddp;
#N canvas 466 198 494 344 META 0;
#X text 12 175 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2;
#X text 12 155 AUTHOR Cyrille Henry and Hans-Christoph Steiner;
#X text 12 45 DESCRIPTION return the amplitude covered by the last
n (n>1) values;
#X text 12 75 INLET_0 anything;
#X text 12 95 INLET_1 open refresh;
#X text 12 115 OUTLET_0 anything;
#X text 12 135 OUTLET_1 anything;
#X text 12 5 KEYWORDS control user_input abstraction;
#X restore 413 489 pd META;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 10 0;
#X connect 10 0 1 0;
#X connect 10 1 14 0;
#X connect 15 0 10 1;
#X connect 16 0 10 1;