From df54d3d3d4aab0481ab8a0e9ad23c97ac039ddf9 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 19 Apr 2010 05:02:31 +0000 Subject: make [hid] into a libdir-ish folder like earplug~ and freeverb~, and make sure hid-help.pd gets installed svn path=/trunk/externals/hcs/hid/; revision=13454 --- buttongate-help.pd | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 buttongate-help.pd (limited to 'buttongate-help.pd') diff --git a/buttongate-help.pd b/buttongate-help.pd new file mode 100644 index 0000000..ae6c733 --- /dev/null +++ b/buttongate-help.pd @@ -0,0 +1,40 @@ +#N canvas 345 96 463 514 10; +#X declare -lib hid; +#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 470 (C) Copyright 2004 Hans-Christoph Steiner +; +#X text 244 484 released under the GNU GPL; +#X obj 223 417 pddp/pddplink ../all_about_hid.pd -text all_about_hid; +#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 obj 422 3 pddp/pddplink http://puredata.info/dev/pddp -text pddp; +#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; -- cgit v1.2.1