aboutsummaryrefslogtreecommitdiff
path: root/Gem/examples/04.pix
diff options
context:
space:
mode:
Diffstat (limited to 'Gem/examples/04.pix')
-rw-r--r--Gem/examples/04.pix/01.image.pd2
-rw-r--r--Gem/examples/04.pix/02.multiimage.pd2
-rw-r--r--Gem/examples/04.pix/04.ImageInPlace.pd2
-rw-r--r--Gem/examples/04.pix/05.film.pd8
-rw-r--r--Gem/examples/04.pix/05.movie.pd4
-rw-r--r--Gem/examples/04.pix/06.PixRect.pd2
-rw-r--r--Gem/examples/04.pix/07.PixSet.pd2
-rw-r--r--Gem/examples/04.pix/08.PixDump.pd4
-rw-r--r--Gem/examples/04.pix/09.Histogram.pd4
-rw-r--r--Gem/examples/04.pix/10.PixDataSimple.pd2
-rw-r--r--Gem/examples/04.pix/11.PixDataComplex.pd2
-rw-r--r--Gem/examples/04.pix/12.add.pd2
-rw-r--r--Gem/examples/04.pix/12.blending.pd4
-rw-r--r--Gem/examples/04.pix/12.composite.pd2
-rw-r--r--Gem/examples/04.pix/12.pix_multiply.pd2
-rw-r--r--Gem/examples/04.pix/13.maskDancer.pd4
-rw-r--r--Gem/examples/04.pix/14.takeAlpha.pd2
-rw-r--r--Gem/examples/04.pix/15.pix_alpha.pd2
-rw-r--r--Gem/examples/04.pix/16.alphaGrey.pd8
-rw-r--r--Gem/examples/04.pix/16.pix_2grey.pd2
-rw-r--r--Gem/examples/04.pix/17.pix_gain.pd2
-rw-r--r--Gem/examples/04.pix/18.Curves.pd8
-rw-r--r--Gem/examples/04.pix/19.colorMatrix.pd4
-rw-r--r--Gem/examples/04.pix/20.convolve.pd4
-rw-r--r--Gem/examples/04.pix/22.biquad.pd4
-rw-r--r--Gem/examples/04.pix/23.gravity.pd4
-rw-r--r--Gem/examples/04.pix/24.time-filtering.pd2
-rw-r--r--Gem/examples/04.pix/25.buffer.pd4
-rw-r--r--Gem/examples/04.pix/26.framebuffer_readback.pd10
-rw-r--r--Gem/examples/04.pix/27.bitmap_font.pd2
30 files changed, 83 insertions, 23 deletions
diff --git a/Gem/examples/04.pix/01.image.pd b/Gem/examples/04.pix/01.image.pd
index 0abd4a9..30ad9cf 100644
--- a/Gem/examples/04.pix/01.image.pd
+++ b/Gem/examples/04.pix/01.image.pd
@@ -1,4 +1,5 @@
#N canvas 452 108 681 502 12;
+#X declare -lib Gem;
#X text 172 376 click on the pix_image object to display the loaded
image with imgview;
#X obj 179 199 gemhead;
@@ -47,6 +48,7 @@ However \, pix_draw is easier to use in an example patch.;
#X obj 264 284 / 100;
#X floatatom 213 261 0 0 0 0 - - -;
#X obj 213 284 / 100;
+#X obj 552 5 declare -lib Gem;
#X connect 1 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 2 0;
diff --git a/Gem/examples/04.pix/02.multiimage.pd b/Gem/examples/04.pix/02.multiimage.pd
index 5f0c519..16b20c8 100644
--- a/Gem/examples/04.pix/02.multiimage.pd
+++ b/Gem/examples/04.pix/02.multiimage.pd
@@ -1,4 +1,5 @@
#N canvas 411 137 739 504 12;
+#X declare -lib Gem;
#X msg 345 170 1;
#X msg 345 202 0;
#X obj 278 200 gemhead;
@@ -39,6 +40,7 @@
#X text 21 209 Create window and render;
#X obj 278 313 pix_texture;
#X obj 278 335 square 3;
+#X obj 612 5 declare -lib Gem;
#X connect 0 0 6 1;
#X connect 1 0 6 1;
#X connect 2 0 6 0;
diff --git a/Gem/examples/04.pix/04.ImageInPlace.pd b/Gem/examples/04.pix/04.ImageInPlace.pd
index 72e6f0b..c704883 100644
--- a/Gem/examples/04.pix/04.ImageInPlace.pd
+++ b/Gem/examples/04.pix/04.ImageInPlace.pd
@@ -1,4 +1,5 @@
#N canvas 314 61 654 599 12;
+#X declare -lib Gem;
#X msg 489 227 1;
#X msg 489 259 0;
#X obj 375 254 gemhead;
@@ -52,6 +53,7 @@ between the various images.;
#X restore 25 113 pd gemwin;
#X msg 25 89 create;
#X text 21 69 Create window and render;
+#X obj 532 5 declare -lib Gem;
#X connect 0 0 5 1;
#X connect 1 0 5 1;
#X connect 2 0 5 0;
diff --git a/Gem/examples/04.pix/05.film.pd b/Gem/examples/04.pix/05.film.pd
index 8332716..417f1b0 100644
--- a/Gem/examples/04.pix/05.film.pd
+++ b/Gem/examples/04.pix/05.film.pd
@@ -1,4 +1,5 @@
-#N canvas 61 44 827 553 12;
+#N canvas 61 61 827 553 12;
+#X declare -lib Gem;
#X obj 90 186 gemhead;
#X floatatom 220 155 5 0 0 0 - - -;
#X msg 150 156 auto \$1;
@@ -26,8 +27,8 @@ using "pix_rgba". this will be a no-cost operation if the pix_buf already
is in RGBA.;
#X text 36 334 you might notice a significant performance-enhancement
by just turning the [pix_rgba] off (via the toggle). however \, not
-[pix_rgba] is expensive but actually the [pix_convolve] (which appears to do
-nothing when initialized with "0 0 0 0 1 0 0 0 0". When [pix_rgba]
+[pix_rgba] is expensive but actually the [pix_convolve] (which appears
+to do nothing when initialized with "0 0 0 0 1 0 0 0 0". When [pix_rgba]
is "off" \, the [pix_convolve] will be bypassed \, and therefore be
very fast.;
#X restore 635 187 pd README;
@@ -93,6 +94,7 @@ very fast.;
not RGBA \, [pix_convolve] might not be able to process the image and
therefore will do nothing \, which will dramatically "increase" performance)
;
+#X obj 682 5 declare -lib Gem;
#X connect 0 0 12 0;
#X connect 1 0 12 1;
#X connect 2 0 12 0;
diff --git a/Gem/examples/04.pix/05.movie.pd b/Gem/examples/04.pix/05.movie.pd
index a6227d3..ac950bb 100644
--- a/Gem/examples/04.pix/05.movie.pd
+++ b/Gem/examples/04.pix/05.movie.pd
@@ -1,4 +1,5 @@
-#N canvas 133 25 637 554 12;
+#N canvas 133 61 637 554 12;
+#X declare -lib Gem;
#X obj 157 59 gemhead;
#X floatatom 336 167 0 0 0 0 - - -;
#X obj 157 385 rotateXYZ;
@@ -61,6 +62,7 @@ for this;
#X restore 510 453 pd gemwin;
#X msg 510 430 create;
#X text 506 413 Create window:;
+#X obj 512 5 declare -lib Gem;
#X connect 0 0 8 0;
#X connect 1 0 8 1;
#X connect 2 0 3 0;
diff --git a/Gem/examples/04.pix/06.PixRect.pd b/Gem/examples/04.pix/06.PixRect.pd
index 93f5fba..a280d3e 100644
--- a/Gem/examples/04.pix/06.PixRect.pd
+++ b/Gem/examples/04.pix/06.PixRect.pd
@@ -1,4 +1,5 @@
#N canvas 183 99 635 638 12;
+#X declare -lib Gem;
#X obj 179 176 gemhead;
#X obj 179 587 pix_texture;
#X msg 291 536 1 0 0;
@@ -58,6 +59,7 @@
#X msg 25 89 create;
#X text 21 69 Create window and render;
#X text 118 26 draw a rectangle onto an image;
+#X obj 502 5 declare -lib Gem;
#X connect 0 0 11 0;
#X connect 1 0 3 0;
#X connect 2 0 26 2;
diff --git a/Gem/examples/04.pix/07.PixSet.pd b/Gem/examples/04.pix/07.PixSet.pd
index 19aca07..b188d55 100644
--- a/Gem/examples/04.pix/07.PixSet.pd
+++ b/Gem/examples/04.pix/07.PixSet.pd
@@ -1,4 +1,5 @@
#N canvas 243 272 754 536 10;
+#X declare -lib Gem;
#X obj 143 110 gemhead;
#X text 99 37 ========;
#X msg 149 366 quality 0;
@@ -54,6 +55,7 @@
#X restore 455 433 pd gemwin;
#X msg 455 409 create;
#X text 451 389 Create window and render;
+#X obj 642 5 declare -lib Gem;
#X connect 0 0 22 0;
#X connect 2 0 23 0;
#X connect 4 0 2 0;
diff --git a/Gem/examples/04.pix/08.PixDump.pd b/Gem/examples/04.pix/08.PixDump.pd
index a21b273..7571e2e 100644
--- a/Gem/examples/04.pix/08.PixDump.pd
+++ b/Gem/examples/04.pix/08.PixDump.pd
@@ -1,4 +1,5 @@
-#N canvas 53 47 761 536 10;
+#N canvas 53 61 761 536 10;
+#X declare -lib Gem;
#X obj 143 110 gemhead;
#X obj 143 203 pix_dump;
#X text 101 24 pix_dump;
@@ -52,6 +53,7 @@
#X msg 460 74 create;
#X text 456 54 Create window and render;
#X obj 143 135 pix_image ../data/blob2.tif;
+#X obj 652 5 declare -lib Gem;
#X connect 0 0 25 0;
#X connect 1 0 5 0;
#X connect 1 1 11 0;
diff --git a/Gem/examples/04.pix/09.Histogram.pd b/Gem/examples/04.pix/09.Histogram.pd
index 5922a8e..b3f0552 100644
--- a/Gem/examples/04.pix/09.Histogram.pd
+++ b/Gem/examples/04.pix/09.Histogram.pd
@@ -1,4 +1,5 @@
-#N canvas 0 0 764 557 10;
+#N canvas 6 61 764 557 10;
+#X declare -lib Gem;
#N canvas 412 247 681 394 tables 0;
#N canvas 0 0 450 300 (subpatch) 0;
#X array red 256 float 0;
@@ -75,6 +76,7 @@ rgb);
#X msg 25 89 create;
#X text 21 69 Create window and render;
#X obj 34 217 pix_multiimage ../data/temp*.JPG 2;
+#X obj 652 5 declare -lib Gem;
#X connect 1 0 27 0;
#X connect 2 0 9 0;
#X connect 6 0 27 1;
diff --git a/Gem/examples/04.pix/10.PixDataSimple.pd b/Gem/examples/04.pix/10.PixDataSimple.pd
index 36bb4e6..9220482 100644
--- a/Gem/examples/04.pix/10.PixDataSimple.pd
+++ b/Gem/examples/04.pix/10.PixDataSimple.pd
@@ -1,4 +1,5 @@
#N canvas 284 93 594 539 10;
+#X declare -lib Gem;
#X obj 46 186 gemwin;
#X obj 319 173 gemhead;
#X obj 258 329 pix_data;
@@ -50,6 +51,7 @@
#X obj 419 253 random 1000;
#X obj 419 270 / 1000;
#X obj 419 288 t f f;
+#X obj 482 5 declare -lib Gem;
#X connect 1 0 27 0;
#X connect 2 1 13 1;
#X connect 3 0 0 0;
diff --git a/Gem/examples/04.pix/11.PixDataComplex.pd b/Gem/examples/04.pix/11.PixDataComplex.pd
index cb8d846..d1aac8c 100644
--- a/Gem/examples/04.pix/11.PixDataComplex.pd
+++ b/Gem/examples/04.pix/11.PixDataComplex.pd
@@ -1,4 +1,5 @@
#N canvas 331 86 929 574 10;
+#X declare -lib Gem;
#X obj 30 159 gemwin;
#X obj 372 135 gemhead;
#X obj 372 164 pix_image ../data/fractal.JPG;
@@ -60,6 +61,7 @@
#X floatatom 537 423 5 0 0 0 - - -;
#X obj 537 473 * 0.2;
#X obj 537 369 f;
+#X obj 822 5 declare -lib Gem;
#X connect 1 0 2 0;
#X connect 2 0 3 1;
#X connect 3 1 14 1;
diff --git a/Gem/examples/04.pix/12.add.pd b/Gem/examples/04.pix/12.add.pd
index 2b5dc7f..e585c10 100644
--- a/Gem/examples/04.pix/12.add.pd
+++ b/Gem/examples/04.pix/12.add.pd
@@ -1,4 +1,5 @@
#N canvas 542 198 681 468 10;
+#X declare -lib Gem;
#X obj 270 175 pix_image ../data/dancer.JPG;
#X obj 270 342 pix_texture;
#X obj 270 383 square;
@@ -40,6 +41,7 @@
#X msg 25 106 create;
#X text 21 79 Create window and render;
#X text 135 60 blending \, using pixel addition;
+#X obj 572 5 declare -lib Gem;
#X connect 0 0 8 0;
#X connect 1 0 2 0;
#X connect 3 0 2 1;
diff --git a/Gem/examples/04.pix/12.blending.pd b/Gem/examples/04.pix/12.blending.pd
index 5f8f982..d97c7b1 100644
--- a/Gem/examples/04.pix/12.blending.pd
+++ b/Gem/examples/04.pix/12.blending.pd
@@ -1,4 +1,5 @@
-#N canvas 138 0 775 371 10;
+#N canvas 138 61 775 371 10;
+#X declare -lib Gem;
#X obj 254 305 pix_texture;
#X obj 290 112 gemhead 20;
#X obj 254 65 gemhead;
@@ -158,6 +159,7 @@ image and will refresh the output when banged.;
#X restore 25 113 pd gemwin;
#X msg 25 89 create;
#X text 21 69 Create window and render;
+#X obj 662 5 declare -lib Gem;
#X connect 0 0 5 0;
#X connect 1 0 16 0;
#X connect 2 0 15 0;
diff --git a/Gem/examples/04.pix/12.composite.pd b/Gem/examples/04.pix/12.composite.pd
index ce3a790..2d6ec49 100644
--- a/Gem/examples/04.pix/12.composite.pd
+++ b/Gem/examples/04.pix/12.composite.pd
@@ -1,4 +1,5 @@
#N canvas 246 168 681 468 10;
+#X declare -lib Gem;
#X obj 270 175 pix_image ../data/dancer.JPG;
#X obj 270 338 pix_texture;
#X obj 270 379 square;
@@ -41,6 +42,7 @@
#X restore 25 123 pd gemwin;
#X msg 25 105 create;
#X text 21 79 Create window and render;
+#X obj 572 5 declare -lib Gem;
#X connect 0 0 7 0;
#X connect 1 0 2 0;
#X connect 3 0 2 1;
diff --git a/Gem/examples/04.pix/12.pix_multiply.pd b/Gem/examples/04.pix/12.pix_multiply.pd
index cc1992a..01bfcda 100644
--- a/Gem/examples/04.pix/12.pix_multiply.pd
+++ b/Gem/examples/04.pix/12.pix_multiply.pd
@@ -1,4 +1,5 @@
#N canvas 58 175 600 500 10;
+#X declare -lib Gem;
#X obj 288 247 pix_image ../data/dancer.JPG;
#X obj 270 153 gemhead;
#X obj 270 188 pix_image ../data/fractal.JPG;
@@ -45,6 +46,7 @@
#X msg 25 89 create;
#X text 21 69 Create window and render;
#X obj 270 379 square 3;
+#X obj 492 5 declare -lib Gem;
#X connect 0 0 4 1;
#X connect 1 0 2 0;
#X connect 2 0 4 0;
diff --git a/Gem/examples/04.pix/13.maskDancer.pd b/Gem/examples/04.pix/13.maskDancer.pd
index 957a941..2c6b398 100644
--- a/Gem/examples/04.pix/13.maskDancer.pd
+++ b/Gem/examples/04.pix/13.maskDancer.pd
@@ -1,4 +1,5 @@
-#N canvas 4 20 600 500 10;
+#N canvas 6 61 600 500 10;
+#X declare -lib Gem;
#X obj 270 278 pix_mask;
#X obj 288 247 pix_image ../data/dancer.JPG;
#X obj 270 153 gemhead;
@@ -44,6 +45,7 @@
#X restore 25 133 pd gemwin;
#X msg 25 109 create;
#X text 21 89 Create window and render;
+#X obj 482 5 declare -lib Gem;
#X connect 0 0 3 0;
#X connect 1 0 0 1;
#X connect 2 0 4 0;
diff --git a/Gem/examples/04.pix/14.takeAlpha.pd b/Gem/examples/04.pix/14.takeAlpha.pd
index 535056c..1680e90 100644
--- a/Gem/examples/04.pix/14.takeAlpha.pd
+++ b/Gem/examples/04.pix/14.takeAlpha.pd
@@ -1,4 +1,5 @@
#N canvas 426 68 613 402 10;
+#X declare -lib Gem;
#X obj 257 92 gemhead;
#X obj 343 168 gemhead;
#X obj 257 244 pix_takealpha;
@@ -47,6 +48,7 @@
#X obj 343 210 t a a;
#X obj 257 125 pix_image ../data/temp2.JPG;
#X obj 343 190 pix_image ../data/fractalAlpha.TIF;
+#X obj 502 5 declare -lib Gem;
#X connect 0 0 19 0;
#X connect 1 0 20 0;
#X connect 2 0 10 0;
diff --git a/Gem/examples/04.pix/15.pix_alpha.pd b/Gem/examples/04.pix/15.pix_alpha.pd
index de645f2..657416a 100644
--- a/Gem/examples/04.pix/15.pix_alpha.pd
+++ b/Gem/examples/04.pix/15.pix_alpha.pd
@@ -1,4 +1,5 @@
#N canvas 78 67 719 587 10;
+#X declare -lib Gem;
#X obj 332 30 gemhead;
#X obj 332 371 pix_texture;
#X msg 375 394 4;
@@ -66,6 +67,7 @@
#X restore 25 113 pd gemwin;
#X msg 25 89 create;
#X text 21 69 Create window and render;
+#X obj 612 5 declare -lib Gem;
#X connect 0 0 3 0;
#X connect 1 0 5 0;
#X connect 2 0 5 1;
diff --git a/Gem/examples/04.pix/16.alphaGrey.pd b/Gem/examples/04.pix/16.alphaGrey.pd
index 9d5405b..620dcbf 100644
--- a/Gem/examples/04.pix/16.alphaGrey.pd
+++ b/Gem/examples/04.pix/16.alphaGrey.pd
@@ -1,4 +1,5 @@
-#N canvas 28 0 713 500 10;
+#N canvas 28 61 713 500 10;
+#X declare -lib Gem;
#X obj 135 336 pix_texture;
#X obj 135 393 square 2;
#X obj 135 171 pix_image ../data/fractalAlpha.TIF;
@@ -14,7 +15,7 @@
#X text 261 55 grey's out all pixels \, of which the alpha-channel
is above a certain threshold;
#X obj 240 269 hsl 128 15 -1 1 0 0 empty empty empty 20 8 0 8 -262144
--1 -1 3100 1;
+-1 -1 0 1;
#X msg 237 246 0;
#X msg 266 246 0.5;
#X obj 20 39 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 -66577
@@ -23,7 +24,7 @@ is above a certain threshold;
#X obj 135 139 gemhead;
#N canvas 340 107 682 322 gemwin 0;
#X obj 102 122 tgl 15 0 \$0-gemstart \$0-gemstart empty 17 7 0 10 -262144
--1 -1 1 1;
+-1 -1 0 1;
#X obj 102 161 r \$0-gemstart;
#X obj 102 182 select 1 0;
#X msg 102 214 create \, 1;
@@ -62,6 +63,7 @@ is above a certain threshold;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 28 61 pd gemwin;
#X floatatom 237 288 5 -1 1 0 - - -;
+#X obj 602 5 declare -lib Gem;
#X connect 0 0 1 0;
#X connect 2 0 4 0;
#X connect 3 0 0 0;
diff --git a/Gem/examples/04.pix/16.pix_2grey.pd b/Gem/examples/04.pix/16.pix_2grey.pd
index e2552c1..1ec4f97 100644
--- a/Gem/examples/04.pix/16.pix_2grey.pd
+++ b/Gem/examples/04.pix/16.pix_2grey.pd
@@ -1,4 +1,5 @@
#N canvas 204 170 691 547 10;
+#X declare -lib Gem;
#X obj 308 140 gemhead;
#X obj 308 374 pix_texture;
#X obj 308 402 square 2;
@@ -37,6 +38,7 @@
#X text 21 159 Create window and render;
#X text 64 81 greys out all pixels (but pixel-values are still in RGBA)
;
+#X obj 582 5 declare -lib Gem;
#X connect 0 0 3 0;
#X connect 1 0 2 0;
#X connect 3 0 4 0;
diff --git a/Gem/examples/04.pix/17.pix_gain.pd b/Gem/examples/04.pix/17.pix_gain.pd
index 3149650..f956776 100644
--- a/Gem/examples/04.pix/17.pix_gain.pd
+++ b/Gem/examples/04.pix/17.pix_gain.pd
@@ -1,4 +1,5 @@
#N canvas 111 106 885 510 10;
+#X declare -lib Gem;
#X floatatom 664 182 0 0 0 0 - - -;
#X obj 664 210 / 100;
#X floatatom 610 163 0 0 0 0 - - -;
@@ -52,6 +53,7 @@ openGL-hardware-acceleration...;
#X restore 25 113 pd gemwin;
#X msg 25 89 create;
#X text 21 69 Create window and render;
+#X obj 772 5 declare -lib Gem;
#X connect 0 0 1 0;
#X connect 1 0 10 2;
#X connect 1 0 13 0;
diff --git a/Gem/examples/04.pix/18.Curves.pd b/Gem/examples/04.pix/18.Curves.pd
index ca02c91..ade6bc4 100644
--- a/Gem/examples/04.pix/18.Curves.pd
+++ b/Gem/examples/04.pix/18.Curves.pd
@@ -1,4 +1,5 @@
-#N canvas 119 33 764 634 10;
+#N canvas 119 61 764 634 10;
+#X declare -lib Gem;
#N canvas 285 0 681 629 tables 0;
#N canvas 0 0 450 300 (subpatch) 0;
#X array red 256 float 0;
@@ -26,8 +27,8 @@
#X obj 30 272 gemhead;
#X obj 30 468 pix_texture;
#N canvas 0 0 450 300 (subpatch) 0;
-#X array rgba 67 float 0;
-#X coords 0 256 66 0 256 140 1;
+#X array rgba 256 float 0;
+#X coords 0 256 255 0 256 140 1;
#X restore 217 70 graph;
#X text 78 8 pix_curve: adjust the colour of an image;
#X text 291 227 separate tables for r \, g \, b and a;
@@ -161,6 +162,7 @@ to be called....;
#X restore 16 195 pd gemwin;
#X msg 16 171 create;
#X text 12 151 Create window and render;
+#X obj 652 5 declare -lib Gem;
#X connect 1 0 29 0;
#X connect 2 0 21 0;
#X connect 13 0 28 0;
diff --git a/Gem/examples/04.pix/19.colorMatrix.pd b/Gem/examples/04.pix/19.colorMatrix.pd
index c53ab1a..ba706bb 100644
--- a/Gem/examples/04.pix/19.colorMatrix.pd
+++ b/Gem/examples/04.pix/19.colorMatrix.pd
@@ -1,4 +1,5 @@
-#N canvas 10 20 769 486 10;
+#N canvas 10 61 769 486 10;
+#X declare -lib Gem;
#X obj 252 258 gemhead;
#X obj 252 313 pix_image ../data/fractal.JPG;
#X obj 252 343 pix_colormatrix;
@@ -48,6 +49,7 @@
#X restore 46 186 pd gemwin;
#X msg 46 162 create;
#X text 42 142 Create window and render;
+#X obj 662 5 declare -lib Gem;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 6 0;
diff --git a/Gem/examples/04.pix/20.convolve.pd b/Gem/examples/04.pix/20.convolve.pd
index bf3999f..420f768 100644
--- a/Gem/examples/04.pix/20.convolve.pd
+++ b/Gem/examples/04.pix/20.convolve.pd
@@ -1,4 +1,5 @@
-#N canvas 150 20 846 728 12;
+#N canvas 150 61 846 728 12;
+#X declare -lib Gem;
#X obj 575 515 s matrix;
#X obj 502 516 s scale;
#X msg 502 483 1;
@@ -74,6 +75,7 @@
#X obj 241 571 /;
#X text 43 650 a good start for the scale is the sum of all the elements
;
+#X obj 722 685 declare -lib Gem;
#X connect 2 0 1 0;
#X connect 5 0 4 0;
#X connect 8 0 7 0;
diff --git a/Gem/examples/04.pix/22.biquad.pd b/Gem/examples/04.pix/22.biquad.pd
index 6e9934e..6e5f8cc 100644
--- a/Gem/examples/04.pix/22.biquad.pd
+++ b/Gem/examples/04.pix/22.biquad.pd
@@ -1,4 +1,5 @@
-#N canvas 269 10 753 499 10;
+#N canvas 269 61 753 499 10;
+#X declare -lib Gem;
#X msg 360 312 set;
#X floatatom 401 209 4 0 0 0 - - -;
#X floatatom 442 209 4 0 0 0 - - -;
@@ -75,6 +76,7 @@
#X msg 25 89 create;
#X text 21 69 Create window and render;
#X obj 35 247 pix_multiimage ../data/temp*.JPG 2;
+#X obj 642 5 declare -lib Gem;
#X connect 0 0 38 0;
#X connect 1 0 14 0;
#X connect 2 0 3 0;
diff --git a/Gem/examples/04.pix/23.gravity.pd b/Gem/examples/04.pix/23.gravity.pd
index 9821f94..20d828e 100644
--- a/Gem/examples/04.pix/23.gravity.pd
+++ b/Gem/examples/04.pix/23.gravity.pd
@@ -1,4 +1,5 @@
-#N canvas 0 0 626 514 10;
+#N canvas 6 61 626 514 10;
+#X declare -lib Gem;
#X floatatom 107 437 5 0 0 0 - - -;
#X floatatom 160 436 5 0 0 0 - - -;
#X floatatom 219 435 5 0 0 0 - - -;
@@ -76,6 +77,7 @@
#X restore 25 63 pd gemwin;
#X msg 25 39 create;
#X text 21 19 Create window and render;
+#X obj 512 5 declare -lib Gem;
#X connect 3 0 40 0;
#X connect 3 1 0 0;
#X connect 3 2 1 0;
diff --git a/Gem/examples/04.pix/24.time-filtering.pd b/Gem/examples/04.pix/24.time-filtering.pd
index c1ca697..4a0e402 100644
--- a/Gem/examples/04.pix/24.time-filtering.pd
+++ b/Gem/examples/04.pix/24.time-filtering.pd
@@ -1,4 +1,5 @@
#N canvas 228 84 794 352 10;
+#X declare -lib Gem;
#X floatatom 279 191 5 0 0 0 - - -;
#X obj 266 241 pix_tIIR 2 2;
#X obj 279 211 * 0.01;
@@ -63,6 +64,7 @@
#X restore 25 113 pd gemwin;
#X msg 25 89 create;
#X text 21 69 Create window and render;
+#X obj 672 5 declare -lib Gem;
#X connect 0 0 2 0;
#X connect 1 0 21 0;
#X connect 2 0 1 1;
diff --git a/Gem/examples/04.pix/25.buffer.pd b/Gem/examples/04.pix/25.buffer.pd
index 857cdaf..1c38826 100644
--- a/Gem/examples/04.pix/25.buffer.pd
+++ b/Gem/examples/04.pix/25.buffer.pd
@@ -1,4 +1,5 @@
-#N canvas 0 0 832 589 10;
+#N canvas 6 61 832 589 10;
+#X declare -lib Gem;
#X obj 62 327 gemhead;
#X obj 62 369 pix_texture;
#X obj 62 392 square 4;
@@ -89,6 +90,7 @@ pixels;
#X text 287 20 [pix_buffer];
#X msg 353 181 open ../data/fractal.JPG 5;
#X text 524 182 load an image into a certain storage-buffer;
+#X obj 722 5 declare -lib Gem;
#X connect 0 0 36 0;
#X connect 1 0 2 0;
#X connect 3 0 4 0;
diff --git a/Gem/examples/04.pix/26.framebuffer_readback.pd b/Gem/examples/04.pix/26.framebuffer_readback.pd
index 696793d..6aa3114 100644
--- a/Gem/examples/04.pix/26.framebuffer_readback.pd
+++ b/Gem/examples/04.pix/26.framebuffer_readback.pd
@@ -1,4 +1,5 @@
-#N canvas 0 0 826 651 10;
+#N canvas 6 61 826 651 10;
+#X declare -lib Gem;
#X msg 112 86 create \, 1;
#X obj 112 131 gemwin;
#X obj 311 112 pix_buffer \$0-framebuffer 2;
@@ -45,11 +46,12 @@ pix (where you can apply effects and all kind of weird things);
#X text 562 308 fetch framebuffer-pix;
#X text 535 379 apply some nifty FX;
#X text 73 597 note \, that there are more efficient ways to apply
-FX to framebuffers (notably openGL-shaders: see examples/10.glsl/
-for more information);
-#X obj 425 358 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
+FX to framebuffers (notably openGL-shaders: see examples/10.glsl/ for
+more information);
+#X obj 425 358 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 410 380 pix_kaleidoscope;
+#X obj 722 5 declare -lib Gem;
#X connect 0 0 1 0;
#X connect 3 0 4 0;
#X connect 5 0 1 0;
diff --git a/Gem/examples/04.pix/27.bitmap_font.pd b/Gem/examples/04.pix/27.bitmap_font.pd
index 6a4bb0b..877461b 100644
--- a/Gem/examples/04.pix/27.bitmap_font.pd
+++ b/Gem/examples/04.pix/27.bitmap_font.pd
@@ -1,4 +1,5 @@
#N canvas 56 222 901 508 10;
+#X declare -lib Gem;
#X obj 191 413 pix_texture;
#X obj 463 158 gemwin;
#X msg 506 135 0 \, destroy;
@@ -103,6 +104,7 @@
#X obj 191 483 rectangle 32 -2;
#X text 501 84 2 click on this patch (to focuses it) and type something
with your keyboard;
+#X obj 782 5 declare -lib Gem;
#X connect 0 0 44 0;
#X connect 2 0 1 0;
#X connect 3 0 0 0;