[PD-cvs] externals/hcs/hid keygate-help.pd,NONE,1.1 keygate.pd,NONE,1.1 buttongate-help.pd,1.1,1.2 buttongate.pd,1.1,1.2

Hans-Christoph Steiner eighthave at users.sourceforge.net
Thu Nov 25 03:42:51 CET 2004


Update of /cvsroot/pure-data/externals/hcs/hid
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30890

Modified Files:
	buttongate-help.pd buttongate.pd 
Added Files:
	keygate-help.pd keygate.pd 
Log Message:
created [buttongate] and [keygate] following [gate]

--- NEW FILE: keygate.pd ---
#N canvas 326 22 530 481 10;
#X obj 44 36 inlet;
#X obj 44 365 outlet;
#X obj 44 334 spigot;
#X text 109 401 (C) Copyright 2004 Hans-Christoph Steiner <hans at at.or.at>
;
#X text 326 415 released under the GNU GPL;
#X text 16 444 $Author: eighthave $;
#X text 16 461 $Date: 2004/11/25 02:42:49 $;
#X text 16 427 $Revision: 1.1 $;
#X obj 132 26 loadbang;
#X text 5 6 [keygate];
#X obj 182 333 spigot;
#X obj 182 365 outlet;
#X obj 273 204 - 1;
#X obj 273 224 abs;
#X obj 236 27 keyname;
#X msg 132 60 0;
#X msg 183 60 1;
#X obj 243 181 t f f;
#X obj 243 157 f;
#X obj 243 107 sel \$1;
#X obj 243 86 symbol;
#X obj 236 57 trigger bang float;
#X connect 0 0 2 0;
#X connect 0 0 10 0;
#X connect 2 0 1 0;
#X connect 8 0 15 0;
#X connect 8 0 16 0;
#X connect 10 0 11 0;
#X connect 12 0 13 0;
#X connect 13 0 10 1;
#X connect 14 0 21 0;
#X connect 14 1 20 1;
#X connect 15 0 2 1;
#X connect 16 0 10 1;
#X connect 17 0 2 1;
#X connect 17 1 12 0;
#X connect 18 0 17 0;
#X connect 19 0 18 0;
#X connect 20 0 19 0;
#X connect 21 0 20 0;
#X connect 21 1 18 1;

--- NEW FILE: keygate-help.pd ---
#N canvas 525 201 473 470 10;
#X obj 5 2 cnv 15 450 20 empty empty [keygate] 2 11 1 18 -233017 -66577
0;
#X obj 160 257 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 160 121 loadbang;
#X msg 160 141 1;
#X obj 160 169 metro 150;
#X text 33 416 (C) Copyright 2004 Hans-Christoph Steiner <hans at at.or.at>
;
#X text 250 430 released under the GNU GPL;
#X obj 237 369 all_about_hid;
#X text 128 370 For more info:;
#X text 15 207 data to be gated -->;
#X obj 281 258 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 40 300 keyname;
#X symbolatom 84 320 10 0 0 0 - - -;
#X text 162 320 <-- check here for the keyname symbol;
#X obj 160 214 keygate f;
#X text 17 38 [keygate] is a simple gate controlled by a keyboard.
You must specify the name of the key which controls the gate. The left
inlet takes the data to be gated.;
#X text 18 89 The "f" key on the any keyboard controls this gate:;
#X text 310 263 <-- key released;
#X text 41 264 key pressed -->;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 14 0;
#X connect 11 1 12 0;
#X connect 14 0 1 0;
#X connect 14 1 10 0;

Index: buttongate.pd
===================================================================
RCS file: /cvsroot/pure-data/externals/hcs/hid/buttongate.pd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** buttongate.pd	15 Nov 2004 04:05:39 -0000	1.1
--- buttongate.pd	25 Nov 2004 02:42:49 -0000	1.2
***************
*** 1,27 ****
! #N canvas 367 43 501 384 10;
! #X obj 224 82 hid \$1;
! #X obj 224 24 inlet;
! #X obj 224 107 route key;
! #X obj 224 137 route \$2;
  #X obj 104 26 inlet;
! #X obj 104 245 outlet;
! #X obj 104 214 spigot;
! #X text 9 278 (C) Copyright 2004 Hans-Christoph Steiner <hans at at.or.at>
  ;
! #X text 226 292 released under the GNU GPL;
! #X text 16 329 $Author$;
! #X text 16 346 $Date$;
! #X text 16 312 $Revision$;
! #X obj 319 21 loadbang;
! #X msg 319 42 1;
! #X obj 224 170 unpack f f;
  #X text 5 6 [buttongate];
  #X connect 0 0 2 0;
  #X connect 1 0 0 0;
  #X connect 2 0 3 0;
! #X connect 3 0 14 0;
  #X connect 4 0 6 0;
  #X connect 6 0 5 0;
! #X connect 12 0 13 0;
! #X connect 13 0 0 0;
! #X connect 14 0 6 1;
--- 1,42 ----
! #N canvas 367 43 525 408 10;
! #X obj 303 81 hid \$1;
! #X obj 303 24 inlet;
! #X obj 303 106 route key;
! #X obj 303 127 route \$2;
  #X obj 104 26 inlet;
! #X obj 104 295 outlet;
! #X obj 104 264 spigot;
! #X text 10 324 (C) Copyright 2004 Hans-Christoph Steiner <hans at at.or.at>
  ;
! #X text 226 340 released under the GNU GPL;
! #X text 16 371 $Author$;
! #X text 16 388 $Date$;
! #X text 16 354 $Revision$;
! #X obj 192 16 loadbang;
! #X obj 303 147 unpack f f;
  #X text 5 6 [buttongate];
+ #X obj 242 263 spigot;
+ #X obj 242 295 outlet;
+ #X obj 333 195 - 1;
+ #X obj 333 215 abs;
+ #X msg 192 50 0;
+ #X msg 243 50 1;
+ #X obj 303 168 t f f;
  #X connect 0 0 2 0;
  #X connect 1 0 0 0;
  #X connect 2 0 3 0;
! #X connect 3 0 13 0;
  #X connect 4 0 6 0;
+ #X connect 4 0 15 0;
  #X connect 6 0 5 0;
! #X connect 12 0 19 0;
! #X connect 12 0 20 0;
! #X connect 13 0 21 0;
! #X connect 15 0 16 0;
! #X connect 17 0 18 0;
! #X connect 18 0 15 1;
! #X connect 19 0 6 1;
! #X connect 20 0 15 1;
! #X connect 20 0 0 0;
! #X connect 21 0 6 1;
! #X connect 21 1 17 0;

Index: buttongate-help.pd
===================================================================
RCS file: /cvsroot/pure-data/externals/hcs/hid/buttongate-help.pd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** buttongate-help.pd	15 Nov 2004 04:05:39 -0000	1.1
--- buttongate-help.pd	25 Nov 2004 02:42:49 -0000	1.2
***************
*** 1,24 ****
! #N canvas 11 255 460 423 10;
! #X obj 5 2 cnv 15 450 20 empty empty buttongate] 2 11 1 18 -233017
  -66577 0;
! #X obj 98 306 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
  -1;
! #X obj 98 149 loadbang;
! #X msg 98 169 1;
! #X obj 98 197 metro 150;
! #X text 27 380 (C) Copyright 2004 Hans-Christoph Steiner <hans at at.or.at>
  ;
! #X text 244 394 released under the GNU GPL;
! #X obj 327 332 all_about_hid;
! #X text 218 333 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 98 242 buttongate 0 btn_0;
  #X text 18 119 The first button on the first device controls this gate:
  ;
  #X connect 2 0 3 0;
  #X connect 3 0 4 0;
  #X connect 4 0 10 0;
  #X connect 10 0 1 0;
--- 1,38 ----
! #N canvas 345 96 473 510 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 470 (C) Copyright 2004 Hans-Christoph Steiner <hans at at.or.at>
  ;
! #X text 244 484 released under the GNU GPL;
! #X obj 223 417 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 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;





More information about the Pd-cvs mailing list