Browse Source

renamed blank_template to cam2mouse

files cleaning
Etienne Landon 7 years ago
parent
commit
5d23ab3ee0
3 changed files with 346 additions and 768 deletions
  1. 0 341
      00_ev_blank_patch_template.pd
  2. 337 418
      cam2mouse.pd
  3. 9 9
      data/unnamed_preset.txt

+ 0 - 341
00_ev_blank_patch_template.pd

@@ -1,341 +0,0 @@
-#N canvas 108 81 1397 923 10;
-#X declare -path . -path .. -path data -path ../data -path ev-in -path
-../ev-in -path ev-main -path ../ev-main -path ev-pano -path ../ev-pano
--path ev-pro -path ../ev-pro -path libs/gil -path ../libs/gil -path
-libs/kollabs -path ../libs/kollabs -path media -path ../media -path
-ev-glsl -path ../ev-glsl -lib Gem;
-#X obj 35 175 cnv 15 350 530 empty empty empty 20 12 0 14 -228992 -66577
-0;
-#X obj 41 186 gemhead;
-#X obj 73 449 pix_texture;
-#X msg 99 423 rectangle 1;
-#X obj 99 402 loadbang;
-#X obj 41 378 t a a;
-#X obj 41 585 pix_snap;
-#X obj 41 554 t b a;
-#X obj 41 647 pix_buffer_write cropbuf;
-#X obj 41 669 pix_buffer cropbuf 1;
-#X obj 41 607 t a b;
-#X msg 206 624 0;
-#X obj 304 318 s tex_size;
-#X msg 304 295 \$2 \$3;
-#X obj 94 562 r tex_size;
-#X obj 41 309 ev-in/ev_cam 1;
-#X obj 41 208 ev-main/ev_buf buf;
-#X obj 207 28 ev-main/ev_gemwin;
-#X obj 73 470 ev-pro/ev_pro_22 crop;
-#X obj 35 7 libs/kollabs/ds_logic 0;
-#X obj 35 29 libs/kollabs/ds_gui 0;
-#X text 753 276 maj mousemove avant mousedown sinon trait depuis derniere
-position;
-#X obj 395 175 cnv 15 350 400 empty empty empty 20 12 0 14 -261682
--66577 0;
-#X obj 415 199 gemhead;
-#X obj 415 261 pix_buffer_read cropbuf;
-#X obj 414 501 pix_texture;
-#X msg 573 236 0;
-#X obj 415 221 t a b;
-#X obj 415 323 pix_threshold;
-#X floatatom 465 290 5 0 0 0 - - -, f 5;
-#X floatatom 427 393 3 0 100 2 threshold - -, f 3;
-#X obj 427 410 / 100;
-#X msg 427 431 threshold \$1;
-#X floatatom 517 393 3 0 100 2 blobsize - -, f 3;
-#X obj 517 410 / 100;
-#X msg 517 431 blobSize \$1;
-#X obj 551 482 route matrix;
-#X obj 414 465 pix_multiblob 1;
-#X obj 414 523 rectangle 5.33 4;
-#X obj 544 287 loadbang;
-#X msg 544 309 0.85;
-#X obj 551 730 s isTracked;
-#X obj 551 505 unpack f f f f f f f f;
-#X obj 594 528 * 1920;
-#X obj 647 570 * 1080;
-#X obj 647 548 -;
-#X msg 647 527 1 \$1;
-#X obj 594 592 pack f f;
-#X obj 594 614 s mousePos;
-#N canvas 1 59 450 300 once 0;
-#X obj 111 123 t a b;
-#X obj 111 145 outlet;
-#X obj 111 80 inlet;
-#X msg 154 122 0;
-#X obj 198 58 inlet;
-#X msg 198 80 1;
-#X obj 111 102 spigot 1;
-#X connect 0 0 1 0;
-#X connect 0 1 3 0;
-#X connect 2 0 6 0;
-#X connect 3 0 6 1;
-#X connect 4 0 5 0;
-#X connect 5 0 6 1;
-#X connect 6 0 0 0;
-#X restore 882 441 pd once;
-#X obj 850 372 r isTracked;
-#X obj 850 394 route 0;
-#X obj 850 416 t a a;
-#N canvas 1 59 450 300 once 0;
-#X obj 111 123 t a b;
-#X obj 111 145 outlet;
-#X obj 111 80 inlet;
-#X msg 154 122 0;
-#X obj 198 58 inlet;
-#X msg 198 80 1;
-#X obj 111 102 spigot 1;
-#X connect 0 0 1 0;
-#X connect 0 1 3 0;
-#X connect 2 0 6 0;
-#X connect 3 0 6 1;
-#X connect 4 0 5 0;
-#X connect 5 0 6 1;
-#X connect 6 0 0 0;
-#X restore 1076 439 pd once;
-#X obj 1044 370 r isTracked;
-#X obj 1044 414 t a a;
-#X obj 1044 392 route 1;
-#X obj 1076 461 t b b;
-#X obj 1133 460 r mousePos;
-#X obj 1108 482 list;
-#X msg 1108 504 xdotool mousemove \$1 \$2;
-#X obj 1108 575 s toShell;
-#X obj 877 790 ggee/shell;
-#X obj 877 768 r toShell;
-#X obj 1076 528 delay 10;
-#X msg 1076 548 xdotool mousedown 1;
-#X obj 1033 675 r mousePos;
-#X obj 1008 697 list;
-#X obj 1005 645 metro 50;
-#X msg 1020 604 1;
-#X msg 849 516 0;
-#X obj 551 707 spigot;
-#X obj 582 641 key;
-#X obj 582 663 route 339;
-#X obj 662 639 gemkeyboard;
-#X obj 662 661 route 49;
-#X obj 586 685 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
-1;
-#N canvas 1 57 450 498 oldlogic 0;
-#X obj 15 40 route 0;
-#X msg 190 399 xdotool mousemove \$1 \$2;
-#X obj 212 342 pack f f;
-#X obj 187 365 list;
-#X obj 191 172 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
-1;
-#X obj 249 163 key;
-#X obj 249 185 route 339;
-#X obj 329 161 gemkeyboard;
-#X obj 329 183 route 49;
-#X obj 211 284 * 1920;
-#X obj 270 308 * 1080;
-#X obj 273 269 -;
-#X msg 271 244 1 \$1;
-#X obj 192 214 metro 50;
-#X obj 211 308 + 0;
-#X msg 62 88 0;
-#X msg 271 52 0, f 2;
-#X msg 38 108 1;
-#X obj 174 28 t a a;
-#X msg 88 188 0;
-#X obj 14 210 t b a b, f 8;
-#X obj 15 62 t b b b;
-#X obj 207 75 t b b b, f 8;
-#X msg 233 99 1;
-#X obj 135 105 t b a;
-#X obj 167 151 unpack f f;
-#X msg 124 131 1;
-#X msg 167 129 \$3 \$4;
-#X obj 14 232 delay 10;
-#X msg 239 128 xdotool mousedown 1;
-#X msg 18 264 xdotool mouseup 1;
-#X obj 207 53 spigot 1;
-#X obj 14 188 spigot 1;
-#X obj 61 464 ggee/shell;
-#X obj 135 463 print;
-#X connect 0 0 21 0;
-#X connect 0 1 18 0;
-#X connect 1 0 33 0;
-#X connect 2 0 3 1;
-#X connect 3 0 1 0;
-#X connect 4 0 13 0;
-#X connect 5 0 6 0;
-#X connect 6 0 4 0;
-#X connect 7 0 8 0;
-#X connect 8 0 4 0;
-#X connect 9 0 14 0;
-#X connect 10 0 2 1;
-#X connect 11 0 10 0;
-#X connect 12 0 11 0;
-#X connect 13 0 3 0;
-#X connect 14 0 2 0;
-#X connect 15 0 4 0;
-#X connect 16 0 31 1;
-#X connect 17 0 31 1;
-#X connect 18 0 31 0;
-#X connect 18 1 24 0;
-#X connect 19 0 32 1;
-#X connect 20 0 28 0;
-#X connect 20 2 19 0;
-#X connect 21 0 32 0;
-#X connect 21 1 17 0;
-#X connect 21 2 15 0;
-#X connect 22 0 29 0;
-#X connect 22 1 23 0;
-#X connect 22 2 16 0;
-#X connect 23 0 4 0;
-#X connect 24 0 26 0;
-#X connect 24 1 27 0;
-#X connect 25 0 9 0;
-#X connect 25 1 12 0;
-#X connect 26 0 32 1;
-#X connect 27 0 25 0;
-#X connect 28 0 30 0;
-#X connect 29 0 33 0;
-#X connect 30 0 33 0;
-#X connect 31 0 22 0;
-#X connect 32 0 20 0;
-#X restore 760 212 pd oldlogic;
-#N canvas 31 264 548 468 init 0;
-#X obj 56 92 loadbang;
-#X obj 83 138 del 1000;
-#X obj 56 114 t b b;
-#X obj 56 221 del 3000;
-#X obj 44 -23 cnv 15 400 100 empty empty IMPORTANT 20 12 0 14 -261234
--66577 0;
-#X text 49 -3 Such a declare object should always be in the main patch
-of your project \, to set the pathes to the abstractions.;
-#X text 159 140 load the preset file on startup:;
-#X obj 158 43 ev-main/ev_declare;
-#X text 165 206 (pathes relative to libs/kollabs);
-#X text 66 262 Recall scene '0' from the loaded preset file:;
-#X msg 83 170 \; /ds/0/loadfile ../../data/unnamed_preset.txt;
-#X msg 56 288 \; /ds/0/scene 0 \;;
-#X obj 60 351 declare -path . -path .. -path data -path ../data -path
-ev-in -path ../ev-in -path ev-main -path ../ev-main -path ev-pano -path
-../ev-pano -path ev-pro -path ../ev-pro -path libs/gil -path ../libs/gil
--path libs/kollabs -path ../libs/kollabs -path media -path ../media
--path ev-glsl -path ../ev-glsl -lib Gem;
-#X connect 0 0 2 0;
-#X connect 1 0 10 0;
-#X connect 2 0 3 0;
-#X connect 2 1 1 0;
-#X connect 3 0 11 0;
-#X restore 211 113 pd init;
-#X msg 882 463 \; toShell xdotool mouseup 1;
-#X msg 1008 719 \; toShell xdotool mousemove \$1 \$2;
-#X obj 958 795 print;
-#X msg 548 338 1;
-#N canvas 1 59 450 300 once 0;
-#X obj 111 123 t a b;
-#X obj 111 145 outlet;
-#X obj 111 80 inlet;
-#X msg 154 122 0;
-#X obj 198 58 inlet;
-#X msg 198 80 1;
-#X obj 111 102 spigot 1;
-#X connect 0 0 1 0;
-#X connect 0 1 3 0;
-#X connect 2 0 6 0;
-#X connect 3 0 6 1;
-#X connect 4 0 5 0;
-#X connect 5 0 6 1;
-#X connect 6 0 0 0;
-#X restore 960 160 pd once;
-#X obj 971 132 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
--1 -1;
-#X obj 1010 136 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
--1 -1;
-#X obj 958 198 print;
-#X obj 797 587 key;
-#X obj 797 609 route 339;
-#X obj 877 585 gemkeyboard;
-#X obj 877 607 route 49;
-#X msg 814 641 0;
-#X connect 1 0 16 0;
-#X connect 2 0 18 0;
-#X connect 3 0 2 0;
-#X connect 4 0 3 0;
-#X connect 5 0 7 0;
-#X connect 5 1 2 0;
-#X connect 6 0 10 0;
-#X connect 7 0 6 0;
-#X connect 7 1 6 0;
-#X connect 10 0 8 0;
-#X connect 10 1 11 0;
-#X connect 11 0 8 1;
-#X connect 13 0 12 0;
-#X connect 14 0 6 2;
-#X connect 15 0 5 0;
-#X connect 16 0 15 0;
-#X connect 16 1 13 0;
-#X connect 23 0 27 0;
-#X connect 24 0 28 0;
-#X connect 25 0 38 0;
-#X connect 26 0 24 1;
-#X connect 27 0 24 0;
-#X connect 27 1 26 0;
-#X connect 28 0 37 0;
-#X connect 29 0 28 1;
-#X connect 30 0 31 0;
-#X connect 31 0 32 0;
-#X connect 32 0 37 0;
-#X connect 33 0 34 0;
-#X connect 34 0 35 0;
-#X connect 35 0 37 0;
-#X connect 36 0 42 0;
-#X connect 37 0 25 0;
-#X connect 37 1 36 0;
-#X connect 39 0 40 0;
-#X connect 39 0 82 0;
-#X connect 40 0 28 1;
-#X connect 42 0 71 0;
-#X connect 42 2 43 0;
-#X connect 42 3 46 0;
-#X connect 43 0 47 0;
-#X connect 44 0 47 1;
-#X connect 45 0 44 0;
-#X connect 46 0 45 0;
-#X connect 47 0 48 0;
-#X connect 49 0 79 0;
-#X connect 50 0 51 0;
-#X connect 51 0 52 0;
-#X connect 51 1 49 1;
-#X connect 52 0 70 0;
-#X connect 52 1 49 0;
-#X connect 53 0 57 0;
-#X connect 54 0 56 0;
-#X connect 55 0 69 0;
-#X connect 55 1 53 0;
-#X connect 56 0 55 0;
-#X connect 56 1 53 1;
-#X connect 57 0 64 0;
-#X connect 57 1 59 0;
-#X connect 58 0 59 1;
-#X connect 59 0 60 0;
-#X connect 60 0 61 0;
-#X connect 63 0 62 0;
-#X connect 63 0 81 0;
-#X connect 64 0 65 0;
-#X connect 65 0 61 0;
-#X connect 66 0 67 1;
-#X connect 67 0 80 0;
-#X connect 68 0 67 0;
-#X connect 69 0 68 0;
-#X connect 70 0 68 0;
-#X connect 71 0 41 0;
-#X connect 72 0 73 0;
-#X connect 73 0 76 0;
-#X connect 74 0 75 0;
-#X connect 75 0 76 0;
-#X connect 76 0 71 1;
-#X connect 82 0 33 0;
-#X connect 82 0 30 0;
-#X connect 83 0 86 0;
-#X connect 84 0 83 0;
-#X connect 85 0 83 1;
-#X connect 87 0 88 0;
-#X connect 88 0 91 0;
-#X connect 89 0 90 0;
-#X connect 90 0 91 0;
-#X connect 91 0 68 0;
-#X coords 0 0 1 1 85 60 0;

+ 337 - 418
cam2mouse.pd

@@ -1,428 +1,347 @@
-#N canvas 145 90 871 639 10;
-#X text 451 6 GEM object;
-#X obj 8 46 cnv 15 540 100 empty empty empty 20 12 0 14 -233017 -66577
+#N canvas 1 55 785 504 10;
+#X declare -path . -path .. -path data -path ../data -path ev-in -path
+../ev-in -path ev-main -path ../ev-main -path ev-pano -path ../ev-pano
+-path ev-pro -path ../ev-pro -path libs/gil -path ../libs/gil -path
+libs/kollabs -path ../libs/kollabs -path media -path ../media -path
+ev-glsl -path ../ev-glsl -lib Gem;
+#X obj 35 175 cnv 15 350 530 empty empty empty 20 12 0 14 -228992 -66577
 0;
-#X obj 559 47 cnv 15 280 500 empty empty empty 20 12 0 14 -228992 -66577
-0;
-#X text 71 21 Class: pix object (pix source);
-#X text 453 27 Example:;
-#X text 50 2 Synopsis: [pix_video];
-#X text 29 47 Description: open a camera and get input;
-#X obj 9 182 cnv 15 540 365 empty empty empty 20 12 0 14 -233017 -66577
-0;
-#X obj 9 149 cnv 15 540 30 empty empty empty 20 12 0 14 -195568 -66577
-0;
-#X text 18 148 Arguments:;
-#X text 17 486 Outlet 1: gemlist;
-#X text 17 198 Inlet 1: gemlist;
-#X text 16 308 Inlet 1: colorspace "RGBA|YUV|Grey": decodes the current
-film into the specified colorspace.;
-#X text 64 159 none;
-#X text 33 184 Inlet:;
-#X text 33 472 Outlet:;
-#X obj 717 460 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
-0;
-#N canvas 1 55 450 300 gemwin 1;
-#X obj 132 136 gemwin;
-#X obj 67 89 outlet;
-#X obj 67 10 inlet;
-#X msg 67 70 set destroy;
-#X msg 205 149 destroy;
-#X msg 156 71 set create;
-#X obj 67 41 route create;
-#X msg 132 112 border 0 \, dimen 1920 1080 \, offset 1920 0 \, create
-\, 1;
-#X connect 2 0 6 0;
-#X connect 3 0 1 0;
-#X connect 4 0 0 0;
-#X connect 5 0 1 0;
-#X connect 6 0 3 0;
-#X connect 6 0 7 0;
-#X connect 6 1 5 0;
-#X connect 6 1 4 0;
-#X connect 7 0 0 0;
-#X restore 722 499 pd gemwin;
-#X msg 722 477 create;
-#X text 718 456 Create window:;
-#X obj 563 86 cnv 15 230 280 empty empty empty 20 12 0 14 -24198 -66577
-0;
-#X obj 567 526 rectangle 4 3;
-#X obj 567 502 pix_texture;
-#X text 17 216 Inlet 1: device <spec>: the number or file path to the
-input device;
-#X text 16 339 Inlet 1: dimen <number> <number>: set various dimensions
-for the image (does not work on all capture devices);
-#X text 15 371 Inlet 1: enumerate: list all devices to the console
-;
-#X text 17 245 Inlet 1: driver <number>: switch between different drivers
-\, e.g. v4l \, ieee1394 \, etc.;
-#X text 16 276 Inlet 1: driver <symbol>: switch between different drivers
-\, e.g. v4l \, v4l2 \, dv...;
-#X text 13 66 [pix_video] opens a wide array of cameras \, USB to FireWire
-to capture cards \, as long as the camera is supported by your operating
-system.;
-#X obj 567 53 gemhead;
-#X msg 596 124 dimen 64 64;
-#X msg 586 99 dimen 256 128;
-#X msg 635 261 enumerate;
-#X msg 641 283 dialog;
-#X msg 604 153 colorspace RGBA;
-#X msg 609 211 device 1;
-#X msg 642 312 driver dv;
-#N canvas 515 117 572 549 properties 0;
-#X msg 41 203 enumProps;
-#X obj 31 21 cnv 15 400 80 empty empty readProperties 20 12 0 14 -233017
+#X obj 41 186 gemhead;
+#X obj 73 449 pix_texture;
+#X msg 99 423 rectangle 1;
+#X obj 99 402 loadbang;
+#X obj 41 378 t a a;
+#X obj 41 585 pix_snap;
+#X obj 41 554 t b a;
+#X obj 41 647 pix_buffer_write cropbuf;
+#X obj 41 669 pix_buffer cropbuf 1;
+#X obj 41 607 t a b;
+#X msg 206 624 0;
+#X obj 304 318 s tex_size;
+#X msg 304 295 \$2 \$3;
+#X obj 94 562 r tex_size;
+#X obj 41 309 ev-in/ev_cam 1;
+#X obj 41 208 ev-main/ev_buf buf;
+#X obj 207 28 ev-main/ev_gemwin;
+#X obj 73 470 ev-pro/ev_pro_22 crop;
+#X obj 35 7 libs/kollabs/ds_logic 0;
+#X obj 35 29 libs/kollabs/ds_gui 0;
+#X text 753 276 maj mousemove avant mousedown sinon trait depuis derniere
+position;
+#X obj 395 175 cnv 15 350 400 empty empty empty 20 12 0 14 -261682
 -66577 0;
-#X obj 39 47 hradio 15 1 0 8 \$0-propreadId \$0-propreadId empty 0
--8 0 10 -262144 -1 -1 0;
-#X obj 40 70 cnv 15 260 20 empty \$0-propreadName <none> 10 9 0 14
--203904 -66577 0;
-#N canvas 185 50 450 537 PropertyLogic 0;
-#N canvas 1408 84 774 460 id2property 0;
-#X obj 353 106 r \$0-info;
-#X obj 353 130 route proplist;
-#X obj 353 152 route read numread;
-#X obj 405 176 t b f;
-#X obj 353 174 list;
-#X obj 353 219 list prepend;
-#X msg 353 196 \$1;
-#X obj 353 239 t l l;
-#X obj 95 197 list prepend;
-#X obj 525 176 t b f;
-#X obj 473 174 list;
-#X obj 473 219 list prepend;
-#X msg 473 196 \$1;
-#X obj 473 239 t l l;
-#X obj 473 152 route write numwrite;
-#X obj 95 69 inlet readID;
-#X obj 225 70 inlet writeID;
-#X obj 123 378 outlet readName;
-#X obj 253 356 outlet writeName;
-#X obj 95 176 t b f;
-#X obj 95 219 list split;
-#X obj 123 266 symbol;
-#X msg 123 241 symbol \$1;
-#X obj 225 197 list prepend;
-#X obj 225 176 t b f;
-#X obj 225 219 list split;
-#X obj 253 266 symbol;
-#X msg 253 241 symbol \$1;
-#X obj 95 91 route float;
-#X obj 225 92 route float;
-#X msg 432 333 number \$1;
-#X msg 552 333 number \$1;
-#X obj 432 353 s \$0-propreadId;
-#X obj 552 353 s \$0-propwriteId;
-#X obj 602 254 t f f;
-#X msg 602 232 0;
-#X obj 602 211 loadbang;
+#X obj 415 199 gemhead;
+#X obj 415 261 pix_buffer_read cropbuf;
+#X obj 414 501 pix_texture;
+#X msg 573 236 0;
+#X obj 415 221 t a b;
+#X obj 415 323 pix_threshold;
+#X floatatom 465 290 5 0 0 0 - - -, f 5;
+#X floatatom 427 393 3 0 100 2 threshold - -, f 3;
+#X obj 427 410 / 100;
+#X msg 427 431 threshold \$1;
+#X floatatom 517 393 3 0 100 2 blobsize - -, f 3;
+#X obj 517 410 / 100;
+#X msg 517 431 blobSize \$1;
+#X obj 551 482 route matrix;
+#X obj 414 465 pix_multiblob 1;
+#X obj 414 523 rectangle 5.33 4;
+#X obj 544 287 loadbang;
+#X msg 544 309 0.85;
+#X obj 551 730 s isTracked;
+#X obj 551 505 unpack f f f f f f f f;
+#X obj 647 548 -;
+#X msg 647 527 1 \$1;
+#X obj 594 592 pack f f;
+#X obj 594 614 s mousePos;
+#N canvas 1 59 450 300 once 0;
+#X obj 111 123 t a b;
+#X obj 111 145 outlet;
+#X obj 111 80 inlet;
+#X msg 154 122 0;
+#X obj 198 58 inlet;
+#X msg 198 80 1;
+#X obj 111 102 spigot 1;
 #X connect 0 0 1 0;
-#X connect 1 0 2 0;
-#X connect 2 0 4 0;
-#X connect 2 1 3 0;
-#X connect 2 2 14 0;
-#X connect 3 0 5 1;
-#X connect 3 1 30 0;
-#X connect 4 0 6 0;
-#X connect 5 0 7 0;
-#X connect 6 0 5 0;
-#X connect 7 0 8 1;
-#X connect 7 1 5 1;
-#X connect 8 0 20 0;
-#X connect 9 0 11 1;
-#X connect 9 1 31 0;
-#X connect 10 0 12 0;
-#X connect 11 0 13 0;
-#X connect 12 0 11 0;
-#X connect 13 0 23 1;
-#X connect 13 1 11 1;
-#X connect 14 0 10 0;
-#X connect 14 1 9 0;
-#X connect 15 0 28 0;
-#X connect 16 0 29 0;
-#X connect 19 0 8 0;
-#X connect 19 1 20 1;
-#X connect 20 1 22 0;
-#X connect 21 0 17 0;
-#X connect 22 0 21 0;
-#X connect 23 0 25 0;
-#X connect 24 0 23 0;
-#X connect 24 1 25 1;
-#X connect 25 1 27 0;
-#X connect 26 0 18 0;
-#X connect 27 0 26 0;
-#X connect 28 0 19 0;
-#X connect 29 0 24 0;
-#X connect 30 0 32 0;
-#X connect 31 0 33 0;
-#X connect 34 0 30 0;
-#X connect 34 1 31 0;
-#X connect 35 0 34 0;
-#X connect 36 0 35 0;
-#X restore 188 192 pd id2property;
-#X obj 320 407 list prepend set;
-#X obj 320 429 list trim;
-#X obj 320 451 t b a;
-#N canvas 437 141 450 300 getProp 0;
-#X obj 44 177 s \$0-propreadName;
-#X msg 44 156 label \$1;
-#X msg 165 156 get \$1;
-#X obj 44 81 inlet;
-#X obj 165 178 outlet;
-#X obj 290 57 r \$0-info;
-#X obj 290 79 route prop;
-#N canvas 3 50 450 300 sroute 0;
-#X obj 73 12 inlet;
-#X obj 312 9 inlet;
-#X obj 73 113 outlet;
-#X obj 73 34 list split 1;
-#X obj 73 56 select s;
-#X obj 73 78 list prepend;
-#X connect 0 0 3 0;
-#X connect 1 0 4 1;
-#X connect 3 0 4 0;
-#X connect 3 1 5 1;
-#X connect 4 0 5 0;
-#X connect 5 0 2 0;
-#X restore 290 113 pd sroute;
-#X obj 44 123 t s s s;
-#X msg 290 226 label \$1;
-#X obj 290 247 s \$0-propreadValue;
-#X obj 290 135 route float;
-#X obj 290 157 makefilename %g;
-#X obj 106 29 loadbang;
-#X obj 106 51 t b b;
-#X msg 106 73 symbol <none>;
-#X msg 196 74 symbol --;
-#X connect 1 0 0 0;
-#X connect 2 0 4 0;
-#X connect 3 0 8 0;
-#X connect 5 0 6 0;
-#X connect 6 0 7 0;
-#X connect 7 0 11 0;
-#X connect 8 0 1 0;
-#X connect 8 1 2 0;
-#X connect 8 2 7 1;
-#X connect 9 0 10 0;
-#X connect 11 0 12 0;
-#X connect 12 0 9 0;
-#X connect 13 0 14 0;
-#X connect 14 0 15 0;
-#X connect 14 1 16 0;
-#X connect 15 0 1 0;
-#X connect 16 0 9 0;
-#X restore 320 318 pd getProp;
-#X obj 172 158 r \$0-propreadId;
-#X obj 282 158 r \$0-propwriteId;
-#N canvas 432 95 450 467 setProp 0;
-#X msg 44 156 label \$1;
-#X msg 165 156 get \$1;
-#X obj 44 31 inlet;
-#X obj 218 324 outlet;
-#X obj 290 57 r \$0-info;
-#X obj 290 79 route prop;
-#N canvas 4 50 450 300 sroute 0;
-#X obj 73 12 inlet;
-#X obj 312 9 inlet;
-#X obj 73 113 outlet;
-#X obj 73 34 list split 1;
-#X obj 73 56 select s;
-#X obj 73 78 list prepend;
-#X connect 0 0 3 0;
-#X connect 1 0 4 1;
-#X connect 3 0 4 0;
-#X connect 3 1 5 1;
+#X connect 0 1 3 0;
+#X connect 2 0 6 0;
+#X connect 3 0 6 1;
 #X connect 4 0 5 0;
-#X connect 5 0 2 0;
-#X restore 290 113 pd sroute;
-#X obj 290 135 route float;
-#X obj 44 177 s \$0-propwriteName;
-#X obj 290 247 s \$0-propwriteValue;
-#X msg 290 226 set \$1;
-#X obj 50 276 r \$0-propwriteValue;
-#X obj 50 298 route float;
-#X obj 50 320 pack 0 s;
-#X msg 50 342 set \$2 \$1;
-#X obj 44 73 t s s s s;
-#X obj 127 27 loadbang;
-#X obj 127 49 t b b;
-#X msg 127 71 symbol <none>;
-#X connect 0 0 8 0;
-#X connect 1 0 3 0;
-#X connect 2 0 15 0;
+#X connect 5 0 6 1;
+#X connect 6 0 0 0;
+#X restore 882 441 pd once;
+#X obj 850 372 r isTracked;
+#X obj 850 394 route 0;
+#X obj 850 416 t a a;
+#N canvas 1 59 450 300 once 0;
+#X obj 111 123 t a b;
+#X obj 111 145 outlet;
+#X obj 111 80 inlet;
+#X msg 154 122 0;
+#X obj 198 58 inlet;
+#X msg 198 80 1;
+#X obj 111 102 spigot 1;
+#X connect 0 0 1 0;
+#X connect 0 1 3 0;
+#X connect 2 0 6 0;
+#X connect 3 0 6 1;
 #X connect 4 0 5 0;
+#X connect 5 0 6 1;
+#X connect 6 0 0 0;
+#X restore 1076 439 pd once;
+#X obj 1044 370 r isTracked;
+#X obj 1044 414 t a a;
+#X obj 1044 392 route 1;
+#X obj 1076 461 t b b;
+#X obj 1133 460 r mousePos;
+#X obj 1108 482 list;
+#X msg 1108 504 xdotool mousemove \$1 \$2;
+#X obj 1108 575 s toShell;
+#X obj 877 790 ggee/shell;
+#X obj 877 768 r toShell;
+#X obj 1076 528 delay 10;
+#X msg 1076 548 xdotool mousedown 1;
+#X obj 1033 675 r mousePos;
+#X obj 1008 697 list;
+#X obj 1005 645 metro 50;
+#X msg 1020 604 1;
+#X msg 849 516 0;
+#X obj 551 707 spigot;
+#X obj 582 641 key;
+#X obj 582 663 route 339;
+#X obj 662 639 gemkeyboard;
+#X obj 662 661 route 49;
+#X obj 586 685 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
+1;
+#N canvas 1 57 450 498 oldlogic 0;
+#X obj 15 40 route 0;
+#X msg 190 399 xdotool mousemove \$1 \$2;
+#X obj 212 342 pack f f;
+#X obj 187 365 list;
+#X obj 191 172 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X obj 249 163 key;
+#X obj 249 185 route 339;
+#X obj 329 161 gemkeyboard;
+#X obj 329 183 route 49;
+#X obj 211 284 * 1920;
+#X obj 270 308 * 1080;
+#X obj 273 269 -;
+#X msg 271 244 1 \$1;
+#X obj 192 214 metro 50;
+#X obj 211 308 + 0;
+#X msg 62 88 0;
+#X msg 271 52 0, f 2;
+#X msg 38 108 1;
+#X obj 174 28 t a a;
+#X msg 88 188 0;
+#X obj 14 210 t b a b, f 8;
+#X obj 15 62 t b b b;
+#X obj 207 75 t b b b, f 8;
+#X msg 233 99 1;
+#X obj 135 105 t b a;
+#X obj 167 151 unpack f f;
+#X msg 124 131 1;
+#X msg 167 129 \$3 \$4;
+#X obj 14 232 delay 10;
+#X msg 239 128 xdotool mousedown 1;
+#X msg 18 264 xdotool mouseup 1;
+#X obj 207 53 spigot 1;
+#X obj 14 188 spigot 1;
+#X obj 61 464 ggee/shell;
+#X obj 135 463 print;
+#X connect 0 0 21 0;
+#X connect 0 1 18 0;
+#X connect 1 0 33 0;
+#X connect 2 0 3 1;
+#X connect 3 0 1 0;
+#X connect 4 0 13 0;
 #X connect 5 0 6 0;
-#X connect 6 0 7 0;
-#X connect 7 0 10 0;
-#X connect 10 0 9 0;
-#X connect 11 0 12 0;
-#X connect 12 0 13 0;
-#X connect 13 0 14 0;
-#X connect 14 0 3 0;
-#X connect 15 0 0 0;
-#X connect 15 1 1 0;
-#X connect 15 2 6 1;
-#X connect 15 3 13 1;
-#X connect 16 0 17 0;
-#X connect 17 0 18 0;
-#X connect 18 0 0 0;
-#X restore 199 315 pd setProp;
-#X obj 199 404 list prepend set;
-#X obj 199 426 list trim;
-#X obj 199 448 t b a;
-#X obj 199 361 list prepend get;
-#X obj 199 339 route get set;
-#X obj 309 361 list prepend set;
-#X obj 199 477 s \$0-propset;
-#X obj 320 480 s \$0-propget;
-#X obj 54 38 inlet;
-#X obj 54 66 s \$0-ctl;
-#X connect 0 0 4 0;
-#X connect 0 1 7 0;
-#X connect 1 0 2 0;
-#X connect 2 0 3 0;
-#X connect 3 0 15 0;
-#X connect 3 1 15 0;
-#X connect 4 0 12 0;
-#X connect 5 0 0 0;
-#X connect 6 0 0 1;
-#X connect 7 0 12 0;
-#X connect 8 0 9 0;
-#X connect 9 0 10 0;
-#X connect 10 0 14 0;
-#X connect 10 1 14 0;
-#X connect 11 0 1 0;
+#X connect 6 0 4 0;
+#X connect 7 0 8 0;
+#X connect 8 0 4 0;
+#X connect 9 0 14 0;
+#X connect 10 0 2 1;
+#X connect 11 0 10 0;
 #X connect 12 0 11 0;
-#X connect 12 1 13 0;
-#X connect 13 0 8 0;
-#X connect 16 0 17 0;
-#X restore 41 526 pd PropertyLogic;
-#X obj 310 70 cnv 15 100 20 empty \$0-propreadValue -- 10 9 0 14 -261234
--66577 0;
-#X obj 31 111 cnv 15 400 80 empty empty writeProperties 20 12 0 14
--233017 -66577 0;
-#X obj 39 137 hradio 15 1 0 8 \$0-propwriteId \$0-propwriteId empty
-0 -8 0 10 -262144 -1 -1 0;
-#X obj 40 160 cnv 15 260 20 empty \$0-propwriteName <none> 10 9 0 14
--203904 -66577 0;
-#X obj 311 160 nbx 5 20 -1e+37 1e+37 0 0 \$0-propwriteValue \$0-propwriteValue
-empty 0 -8 0 14 -204786 -1 -1 0 256;
-#X msg 66 315 get 50_fields;
-#X msg 83 392 set quality 5;
-#X obj 66 294 r \$0-propget;
-#X obj 83 372 r \$0-propset;
-#X msg 87 340 get Hue Saturation;
-#X text 208 340 you can query several properties at once;
-#X text 146 295 query a (readable) property via a message "get <propname>"
-;
-#X text 161 372 set a (writable) property via a message "set <prop>
-<value>";
-#X text 70 224 this will return 2 lists of readable and writeable properties
-through the "info" outlet of [pix_video].;
-#X text 72 257 NOTE that propertynames are always single symbols that
-might contain spaces (and other weird characters);
-#X text 103 203 INIT: query names of all available properties;
-#X text 83 423 ATOMIC setting of multiple properties;
-#X msg 99 441 clearProps;
-#X msg 99 503 applyProps;
-#X msg 99 481 setProps Hue 10;
-#X msg 99 461 setProps Contrast 40;
-#X text 247 443 clear the current property list;
-#X text 247 461 add values to the property list (don't apply yet);
-#X text 247 479 add values to the property list (don't apply yet);
-#X text 247 499 apply current property list;
-#X connect 0 0 4 0;
-#X connect 10 0 4 0;
-#X connect 11 0 4 0;
-#X connect 12 0 10 0;
-#X connect 13 0 11 0;
-#X connect 14 0 4 0;
-#X connect 22 0 4 0;
+#X connect 13 0 3 0;
+#X connect 14 0 2 0;
+#X connect 15 0 4 0;
+#X connect 16 0 31 1;
+#X connect 17 0 31 1;
+#X connect 18 0 31 0;
+#X connect 18 1 24 0;
+#X connect 19 0 32 1;
+#X connect 20 0 28 0;
+#X connect 20 2 19 0;
+#X connect 21 0 32 0;
+#X connect 21 1 17 0;
+#X connect 21 2 15 0;
+#X connect 22 0 29 0;
+#X connect 22 1 23 0;
+#X connect 22 2 16 0;
 #X connect 23 0 4 0;
-#X connect 24 0 4 0;
-#X connect 25 0 4 0;
-#X restore 336 430 pd properties;
-#X obj 618 459 t a a;
-#X obj 618 480 print info;
-#X obj 655 459 s \$0-info;
-#X obj 586 376 t a a;
-#N canvas 166 121 570 420 device 0;
-#X obj 204 60 cnv 20 20 20 empty \$0-open-canvas 1 4 10 0 16 -233017
--1 0;
-#X obj 60 61 hradio 18 1 0 8 empty empty empty 0 -6 0 8 -225271 -1
--1 1;
-#X obj 60 13 inlet;
-#X msg 160 254 label \$1;
-#X obj 160 232 makefilename %d;
-#X obj 60 108 int;
-#X obj 60 337 outlet;
-#X obj 160 277 send \$0-open-canvas;
-#X msg 130 170 device \$1;
-#X obj 60 130 t b f;
-#X obj 130 192 t a a;
-#X obj 130 298 list prepend set;
-#X obj 130 320 list trim;
-#X obj 160 211 route device;
-#X obj 130 116 loadbang;
-#X msg 130 138 0;
-#X connect 1 0 5 0;
-#X connect 2 0 1 0;
-#X connect 3 0 7 0;
+#X connect 24 0 26 0;
+#X connect 24 1 27 0;
+#X connect 25 0 9 0;
+#X connect 25 1 12 0;
+#X connect 26 0 32 1;
+#X connect 27 0 25 0;
+#X connect 28 0 30 0;
+#X connect 29 0 33 0;
+#X connect 30 0 33 0;
+#X connect 31 0 22 0;
+#X connect 32 0 20 0;
+#X restore 760 212 pd oldlogic;
+#N canvas 31 264 548 468 init 0;
+#X obj 56 92 loadbang;
+#X obj 83 138 del 1000;
+#X obj 56 114 t b b;
+#X obj 56 221 del 3000;
+#X obj 44 -23 cnv 15 400 100 empty empty IMPORTANT 20 12 0 14 -261234
+-66577 0;
+#X text 49 -3 Such a declare object should always be in the main patch
+of your project \, to set the pathes to the abstractions.;
+#X text 159 140 load the preset file on startup:;
+#X obj 158 43 ev-main/ev_declare;
+#X text 165 206 (pathes relative to libs/kollabs);
+#X text 66 262 Recall scene '0' from the loaded preset file:;
+#X msg 83 170 \; /ds/0/loadfile ../../data/unnamed_preset.txt;
+#X msg 56 288 \; /ds/0/scene 0 \;;
+#X obj 60 351 declare -path . -path .. -path data -path ../data -path
+ev-in -path ../ev-in -path ev-main -path ../ev-main -path ev-pano -path
+../ev-pano -path ev-pro -path ../ev-pro -path libs/gil -path ../libs/gil
+-path libs/kollabs -path ../libs/kollabs -path media -path ../media
+-path ev-glsl -path ../ev-glsl -lib Gem;
+#X connect 0 0 2 0;
+#X connect 1 0 10 0;
+#X connect 2 0 3 0;
+#X connect 2 1 1 0;
+#X connect 3 0 11 0;
+#X restore 211 113 pd init;
+#X msg 882 463 \; toShell xdotool mouseup 1;
+#X msg 1008 719 \; toShell xdotool mousemove \$1 \$2;
+#X obj 958 795 print;
+#X msg 548 338 1;
+#N canvas 1 59 450 300 once 0;
+#X obj 111 123 t a b;
+#X obj 111 145 outlet;
+#X obj 111 80 inlet;
+#X msg 154 122 0;
+#X obj 198 58 inlet;
+#X msg 198 80 1;
+#X obj 111 102 spigot 1;
+#X connect 0 0 1 0;
+#X connect 0 1 3 0;
+#X connect 2 0 6 0;
+#X connect 3 0 6 1;
+#X connect 4 0 5 0;
+#X connect 5 0 6 1;
+#X connect 6 0 0 0;
+#X restore 960 160 pd once;
+#X obj 971 132 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X obj 1010 136 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X obj 958 198 print;
+#X obj 797 587 key;
+#X obj 797 609 route 339;
+#X obj 877 585 gemkeyboard;
+#X obj 877 607 route 49;
+#X msg 814 641 0;
+#X msg 197 428 set \$2 \$3;
+#X msg 197 450 640 480;
+#X msg 249 359 device 0;
+#X obj 594 528 * 800;
+#X obj 647 570 * 600;
+#X connect 1 0 16 0;
+#X connect 2 0 18 0;
+#X connect 2 1 90 0;
+#X connect 3 0 2 0;
 #X connect 4 0 3 0;
-#X connect 5 0 9 0;
-#X connect 8 0 10 0;
-#X connect 9 0 6 0;
-#X connect 9 1 8 0;
-#X connect 10 0 11 0;
-#X connect 10 1 13 0;
-#X connect 11 0 12 0;
-#X connect 12 0 6 0;
-#X connect 13 0 4 0;
-#X connect 14 0 15 0;
-#X connect 15 0 8 0;
-#X coords 0 -1 1 1 165 20 1 60 60;
-#X restore 609 187 pd device;
-#X obj 36 565 cnv 15 400 30 empty empty empty 20 12 0 14 -260097 -66577
-0;
-#X text 48 565 NOTE: usually you cannot use a camera more than once
-at the same time!;
-#X obj 563 413 cnv 15 80 30 empty empty empty 20 12 0 14 -24198 -66577
-0;
-#X obj 567 418 pix_video;
-#X obj 657 393 print videoctl;
-#X obj 647 346 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
-1;
-#X msg 665 345 driver \$1;
-#X text 686 286 (if available);
-#X text 16 388 Inlet 1: dialog: open a dialog to configure the input
-device (depending on driver / Operating System);
-#X text 18 501 Outlet 2: info (for enumerating devices \, querying
-properties \, ...);
-#X text 15 423 Inlet 1: enumProps \, get \, set \, clearProps \, setProps
-\, applyProps: interact with driver/device properties;
-#X obj 657 374 r \$0-ctl;
-#X text 54 600 you can use [pix_buffer] to distribute the same pix
-to different parts of your render-chain;
-#X msg 625 235 device /dev/fw1;
-#X connect 17 0 18 0;
-#X connect 18 0 17 0;
-#X connect 22 0 21 0;
-#X connect 29 0 46 0;
-#X connect 30 0 41 0;
-#X connect 31 0 41 0;
-#X connect 32 0 41 0;
-#X connect 33 0 41 0;
-#X connect 34 0 41 0;
-#X connect 35 0 41 0;
-#X connect 36 0 41 0;
-#X connect 38 0 39 0;
-#X connect 38 1 40 0;
-#X connect 41 0 46 0;
-#X connect 41 1 47 0;
-#X connect 42 0 35 0;
-#X connect 46 0 22 0;
-#X connect 46 1 38 0;
+#X connect 5 0 7 0;
+#X connect 5 1 2 0;
+#X connect 6 0 10 0;
+#X connect 7 0 6 0;
+#X connect 7 1 6 0;
+#X connect 10 0 8 0;
+#X connect 10 1 11 0;
+#X connect 11 0 8 1;
+#X connect 13 0 12 0;
+#X connect 14 0 6 2;
+#X connect 15 0 5 0;
+#X connect 16 0 15 0;
+#X connect 16 1 13 0;
+#X connect 23 0 27 0;
+#X connect 24 0 28 0;
+#X connect 25 0 38 0;
+#X connect 26 0 24 1;
+#X connect 27 0 24 0;
+#X connect 27 1 26 0;
+#X connect 28 0 37 0;
+#X connect 29 0 28 1;
+#X connect 30 0 31 0;
+#X connect 31 0 32 0;
+#X connect 32 0 37 0;
+#X connect 33 0 34 0;
+#X connect 34 0 35 0;
+#X connect 35 0 37 0;
+#X connect 36 0 42 0;
+#X connect 37 0 25 0;
+#X connect 37 1 36 0;
+#X connect 39 0 40 0;
+#X connect 39 0 80 0;
+#X connect 40 0 28 1;
+#X connect 42 0 69 0;
+#X connect 42 2 93 0;
+#X connect 42 3 44 0;
+#X connect 43 0 94 0;
+#X connect 44 0 43 0;
+#X connect 45 0 46 0;
+#X connect 47 0 77 0;
 #X connect 48 0 49 0;
-#X connect 49 0 41 0;
-#X connect 54 0 41 0;
-#X connect 56 0 41 0;
+#X connect 49 0 50 0;
+#X connect 49 1 47 1;
+#X connect 50 0 68 0;
+#X connect 50 1 47 0;
+#X connect 51 0 55 0;
+#X connect 52 0 54 0;
+#X connect 53 0 67 0;
+#X connect 53 1 51 0;
+#X connect 54 0 53 0;
+#X connect 54 1 51 1;
+#X connect 55 0 62 0;
+#X connect 55 1 57 0;
+#X connect 56 0 57 1;
+#X connect 57 0 58 0;
+#X connect 58 0 59 0;
+#X connect 61 0 60 0;
+#X connect 61 0 79 0;
+#X connect 62 0 63 0;
+#X connect 63 0 59 0;
+#X connect 64 0 65 1;
+#X connect 65 0 78 0;
+#X connect 66 0 65 0;
+#X connect 67 0 66 0;
+#X connect 68 0 66 0;
+#X connect 69 0 41 0;
+#X connect 70 0 71 0;
+#X connect 71 0 74 0;
+#X connect 72 0 73 0;
+#X connect 73 0 74 0;
+#X connect 74 0 69 1;
+#X connect 80 0 33 0;
+#X connect 80 0 30 0;
+#X connect 81 0 84 0;
+#X connect 82 0 81 0;
+#X connect 83 0 81 1;
+#X connect 85 0 86 0;
+#X connect 86 0 89 0;
+#X connect 87 0 88 0;
+#X connect 88 0 89 0;
+#X connect 89 0 66 0;
+#X connect 90 0 91 0;
+#X connect 92 0 15 1;
+#X connect 93 0 45 0;
+#X connect 94 0 45 1;
+#X coords 0 0 1 1 85 60 0;

+ 9 - 9
data/unnamed_preset.txt

@@ -38,14 +38,14 @@
 /ev/pro/crop/shade/bottom 0
 /ev/pro/crop/shade/right 0
 /ev/pro/crop/shade/top 0
-/ev/pro/crop/texture/bottom/right/y 0
-/ev/pro/crop/texture/bottom/right/x 640
-/ev/pro/crop/texture/bottom/left/y 0
-/ev/pro/crop/texture/bottom/left/x 0
-/ev/pro/crop/texture/top/right/y 480
-/ev/pro/crop/texture/top/right/x 640
-/ev/pro/crop/texture/top/left/y 480
-/ev/pro/crop/texture/top/left/x 0
+/ev/pro/crop/texture/bottom/right/y 70
+/ev/pro/crop/texture/bottom/right/x 600
+/ev/pro/crop/texture/bottom/left/y 70
+/ev/pro/crop/texture/bottom/left/x 115
+/ev/pro/crop/texture/top/right/y 385
+/ev/pro/crop/texture/top/right/x 580
+/ev/pro/crop/texture/top/left/y 405
+/ev/pro/crop/texture/top/left/x 150
 /ev/pro/crop/vertex/bottom/right/y -4
 /ev/pro/crop/vertex/bottom/right/x 4
 /ev/pro/crop/vertex/bottom/left/y -4
@@ -78,4 +78,4 @@
 /ev/buf/buf/scale/x 1
 /ev/cam/1/state 1
 /ev/cam/1/flip/vertical 0
-/ev/cam/1/flip/horizontal 0
+/ev/cam/1/flip/horizontal 1