aboutsummaryrefslogtreecommitdiff
path: root/Gem/examples/02.advanced
diff options
context:
space:
mode:
authorTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2019-02-07 23:07:46 +0000
committerTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2019-02-07 23:07:46 +0000
commitaa5a0048ef7a324e85a5704c0e0ea5374b5da3a9 (patch)
treef0115f7a4482f678ae13ef5a0e692a6c51e09629 /Gem/examples/02.advanced
parent2d8e19d10be55c6c7f99bb306bec3507b353f485 (diff)
Gem 6ea7a457bfdbafb64c4123cb12882643bcf4109f osx/i386
built 'master:6ea7a457bfdbafb64c4123cb12882643bcf4109f' for osx/i386
Diffstat (limited to 'Gem/examples/02.advanced')
-rw-r--r--Gem/examples/02.advanced/00.gemwin-subpatch.pd4
-rw-r--r--Gem/examples/02.advanced/01.Separator.pd4
-rw-r--r--Gem/examples/02.advanced/02.Ortho.pd2
-rw-r--r--Gem/examples/02.advanced/03.View.pd4
-rw-r--r--Gem/examples/02.advanced/03.View_OSD.pd2
-rw-r--r--Gem/examples/02.advanced/04.Fog.pd2
-rw-r--r--Gem/examples/02.advanced/05.Stereo.pd4
-rw-r--r--Gem/examples/02.advanced/06.StereoParticle.pd2
-rw-r--r--Gem/examples/02.advanced/07.Snapshot1.pd2
-rw-r--r--Gem/examples/02.advanced/08.Snapshot2.pd4
-rw-r--r--Gem/examples/02.advanced/09.SnapshotSave.pd4
-rw-r--r--Gem/examples/02.advanced/09.SnapshotSaveHD.pd4
-rw-r--r--Gem/examples/02.advanced/10.LinearPath.pd4
-rw-r--r--Gem/examples/02.advanced/11.SplinePath.pd2
-rw-r--r--Gem/examples/02.advanced/12.Hsv.pd4
-rw-r--r--Gem/examples/02.advanced/13.ModelRescale.pd4
-rw-r--r--Gem/examples/02.advanced/14.RenderOrder.pd4
-rw-r--r--Gem/examples/02.advanced/15.GemWin.pd8
-rw-r--r--Gem/examples/02.advanced/16.vertex_program.pd2
-rw-r--r--Gem/examples/02.advanced/17.fragment_program.pd2
-rw-r--r--Gem/examples/02.advanced/18.gl_shading_language.pd6
-rw-r--r--Gem/examples/02.advanced/19.pointer.pd4
-rw-r--r--Gem/examples/02.advanced/20.double-gemhead_vs_repeat.pd2
-rw-r--r--Gem/examples/02.advanced/21.basic_LSystem.pd8
-rw-r--r--Gem/examples/02.advanced/22.double-iterative.pd4
-rw-r--r--Gem/examples/02.advanced/23.SplitScreen.pd12
-rw-r--r--Gem/examples/02.advanced/snapshotHD.pd4
27 files changed, 81 insertions, 27 deletions
diff --git a/Gem/examples/02.advanced/00.gemwin-subpatch.pd b/Gem/examples/02.advanced/00.gemwin-subpatch.pd
index 5f0fc8f..4bc0123 100644
--- a/Gem/examples/02.advanced/00.gemwin-subpatch.pd
+++ b/Gem/examples/02.advanced/00.gemwin-subpatch.pd
@@ -1,4 +1,5 @@
-#N canvas 0 0 725 412 10;
+#N canvas 6 61 725 412 10;
+#X declare -lib Gem;
#N canvas 95 194 290 179 Gem.init 0;
#X obj 83 30 loadbang;
#X msg 83 67 reset;
@@ -58,4 +59,5 @@ understands.;
anymore...;
#X text 249 113 for the sake of simplicity \, from now on the examples
will use the subpatch on the left side to control the Gem-window.;
+#X obj 618 8 declare -lib Gem;
#X connect 0 0 1 0;
diff --git a/Gem/examples/02.advanced/01.Separator.pd b/Gem/examples/02.advanced/01.Separator.pd
index 06d4c7a..c3ded3c 100644
--- a/Gem/examples/02.advanced/01.Separator.pd
+++ b/Gem/examples/02.advanced/01.Separator.pd
@@ -1,4 +1,5 @@
-#N canvas 215 32 781 537 10;
+#N canvas 215 61 781 537 10;
+#X declare -lib Gem;
#X obj 607 137 separator;
#X msg 697 200 1;
#X msg 734 199 0;
@@ -100,6 +101,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 100 134 pd gemwin;
+#X obj 668 8 declare -lib Gem;
#X connect 0 0 37 0;
#X connect 1 0 30 0;
#X connect 2 0 30 0;
diff --git a/Gem/examples/02.advanced/02.Ortho.pd b/Gem/examples/02.advanced/02.Ortho.pd
index 329b2f8..d53a616 100644
--- a/Gem/examples/02.advanced/02.Ortho.pd
+++ b/Gem/examples/02.advanced/02.Ortho.pd
@@ -1,4 +1,5 @@
#N canvas 396 100 600 500 10;
+#X declare -lib Gem;
#X obj 358 140 gemhead;
#X floatatom 377 222 0 0 0 0 - - -;
#X obj 358 256 rotateXYZ;
@@ -71,6 +72,7 @@
#X restore 18 95 pd gemwin;
#X text 142 32 one model is in "perspective" mode;
#X text 159 54 the other is in "orthographic" mode;
+#X obj 488 8 declare -lib Gem;
#X connect 0 0 12 0;
#X connect 1 0 2 1;
#X connect 2 0 14 0;
diff --git a/Gem/examples/02.advanced/03.View.pd b/Gem/examples/02.advanced/03.View.pd
index 835e551..b6c6b6f 100644
--- a/Gem/examples/02.advanced/03.View.pd
+++ b/Gem/examples/02.advanced/03.View.pd
@@ -1,4 +1,5 @@
-#N canvas 55 43 729 499 10;
+#N canvas 55 61 729 499 10;
+#X declare -lib Gem;
#X obj 309 426 gemhead;
#X obj 179 426 gemhead 1;
#X obj 179 464 world_light;
@@ -72,6 +73,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 29 200 pd gemwin;
+#X obj 618 8 declare -lib Gem;
#X connect 0 0 3 0;
#X connect 1 0 2 0;
#X connect 4 0 22 0;
diff --git a/Gem/examples/02.advanced/03.View_OSD.pd b/Gem/examples/02.advanced/03.View_OSD.pd
index 8f9e547..16f755c 100644
--- a/Gem/examples/02.advanced/03.View_OSD.pd
+++ b/Gem/examples/02.advanced/03.View_OSD.pd
@@ -1,4 +1,5 @@
#N canvas 50 151 946 464 10;
+#X declare -lib Gem;
#N canvas 50 173 290 229 Gem.init 0;
#X obj 71 191 outlet;
#X obj 71 81 loadbang;
@@ -292,6 +293,7 @@ and cetera...;
#X obj 604 88 tgl 15 1 empty empty empty 17 7 0 10 -262144 -1 -1 2
2;
#X text 632 87 <- should the view affect light position or not;
+#X obj 828 8 declare -lib Gem;
#X connect 0 0 32 0;
#X connect 2 0 11 0;
#X connect 3 0 2 0;
diff --git a/Gem/examples/02.advanced/04.Fog.pd b/Gem/examples/02.advanced/04.Fog.pd
index 28991af..327fdb9 100644
--- a/Gem/examples/02.advanced/04.Fog.pd
+++ b/Gem/examples/02.advanced/04.Fog.pd
@@ -1,4 +1,5 @@
#N canvas 275 99 721 506 10;
+#X declare -lib Gem;
#X floatatom 414 85 0 0 0 0 - - -;
#X obj 385 44 gemhead;
#X floatatom 403 165 0 0 0 0 - - -;
@@ -82,6 +83,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 40 258 pd gemwin;
+#X obj 608 8 declare -lib Gem;
#X connect 0 0 6 3;
#X connect 1 0 6 0;
#X connect 2 0 7 1;
diff --git a/Gem/examples/02.advanced/05.Stereo.pd b/Gem/examples/02.advanced/05.Stereo.pd
index ec6edc0..f2e9113 100644
--- a/Gem/examples/02.advanced/05.Stereo.pd
+++ b/Gem/examples/02.advanced/05.Stereo.pd
@@ -1,4 +1,5 @@
-#N canvas 31 50 600 504 10;
+#N canvas 31 61 600 504 10;
+#X declare -lib Gem;
#X obj 426 54 gemhead;
#X floatatom 464 134 0 0 0 0 - - -;
#X obj 464 307 gemhead 1;
@@ -81,6 +82,7 @@ stereo";
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 58 207 pd gemwin;
+#X obj 488 8 declare -lib Gem;
#X connect 0 0 6 0;
#X connect 1 0 7 2;
#X connect 2 0 3 0;
diff --git a/Gem/examples/02.advanced/06.StereoParticle.pd b/Gem/examples/02.advanced/06.StereoParticle.pd
index 80b1f06..b5c86b8 100644
--- a/Gem/examples/02.advanced/06.StereoParticle.pd
+++ b/Gem/examples/02.advanced/06.StereoParticle.pd
@@ -1,4 +1,5 @@
#N canvas 396 160 600 500 10;
+#X declare -lib Gem;
#X obj 198 50 gemhead;
#X obj 198 82 part_head;
#X obj 198 136 part_color;
@@ -72,6 +73,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 31 187 pd gemwin;
+#X obj 488 8 declare -lib Gem;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 20 0;
diff --git a/Gem/examples/02.advanced/07.Snapshot1.pd b/Gem/examples/02.advanced/07.Snapshot1.pd
index 55b7776..72ad567 100644
--- a/Gem/examples/02.advanced/07.Snapshot1.pd
+++ b/Gem/examples/02.advanced/07.Snapshot1.pd
@@ -1,4 +1,5 @@
#N canvas 396 100 600 375 10;
+#X declare -lib Gem;
#X obj 210 252 gemhead;
#X obj 210 312 model ../data/venus.obj;
#X text 117 4 snap a portion of the graphics window into a texture
@@ -74,6 +75,7 @@ drawing!;
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 30 137 pd gemwin;
+#X obj 488 8 declare -lib Gem;
#X connect 0 0 3 0;
#X connect 3 0 1 0;
#X connect 4 0 10 0;
diff --git a/Gem/examples/02.advanced/08.Snapshot2.pd b/Gem/examples/02.advanced/08.Snapshot2.pd
index ef84f34..70f894a 100644
--- a/Gem/examples/02.advanced/08.Snapshot2.pd
+++ b/Gem/examples/02.advanced/08.Snapshot2.pd
@@ -1,4 +1,5 @@
-#N canvas 389 0 635 537 10;
+#N canvas 389 61 635 537 10;
+#X declare -lib Gem;
#X obj 64 405 gemhead;
#X obj 64 509 model ../data/venus.obj;
#X text 115 2 snap a portion of the graphics window into a texture
@@ -110,6 +111,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 18 206 pd gemwin;
+#X obj 528 8 declare -lib Gem;
#X connect 0 0 25 0;
#X connect 3 0 4 0;
#X connect 4 0 11 0;
diff --git a/Gem/examples/02.advanced/09.SnapshotSave.pd b/Gem/examples/02.advanced/09.SnapshotSave.pd
index 92bc2eb..537461e 100644
--- a/Gem/examples/02.advanced/09.SnapshotSave.pd
+++ b/Gem/examples/02.advanced/09.SnapshotSave.pd
@@ -1,4 +1,5 @@
#N canvas 54 216 940 412 10;
+#X declare -lib Gem;
#N canvas 338 262 290 225 Gem.init 0;
#X obj 83 30 loadbang;
#X msg 161 76 reset;
@@ -60,7 +61,7 @@ ensure that all that you want is already rendered onto the screen.
1;
#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;
@@ -103,6 +104,7 @@ ensure that all that you want is already rendered onto the screen.
#X obj 60 362 color 0 1 0;
#X obj 60 382 sphere 0.5;
#X obj 652 326 pix_write;
+#X obj 828 8 declare -lib Gem;
#X connect 0 0 34 0;
#X connect 1 0 2 0;
#X connect 2 0 5 0;
diff --git a/Gem/examples/02.advanced/09.SnapshotSaveHD.pd b/Gem/examples/02.advanced/09.SnapshotSaveHD.pd
index b14083b..171729b 100644
--- a/Gem/examples/02.advanced/09.SnapshotSaveHD.pd
+++ b/Gem/examples/02.advanced/09.SnapshotSaveHD.pd
@@ -1,4 +1,5 @@
-#N canvas 73 51 832 392 10;
+#N canvas 73 61 832 392 10;
+#X declare -lib Gem;
#X msg 26 26 create \, 1;
#X msg 39 53 destroy;
#X obj 340 29 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
@@ -28,6 +29,7 @@ pixels);
resolution is limited by your openGL-implementation!;
#X msg 342 90 symbol /tmp/foo.tif;
#X text 485 93 <- save as another imagefile.;
+#X obj 718 8 declare -lib Gem;
#X connect 0 0 6 0;
#X connect 1 0 6 0;
#X connect 2 0 17 1;
diff --git a/Gem/examples/02.advanced/10.LinearPath.pd b/Gem/examples/02.advanced/10.LinearPath.pd
index 1a75686..bf36f59 100644
--- a/Gem/examples/02.advanced/10.LinearPath.pd
+++ b/Gem/examples/02.advanced/10.LinearPath.pd
@@ -1,4 +1,5 @@
#N canvas 372 134 624 496 10;
+#X declare -lib Gem;
#X floatatom 481 249 0 0 0 0 - - -;
#X msg 422 21 1;
#X msg 455 21 0;
@@ -8,7 +9,7 @@
#X obj 350 364 square;
#N canvas 21 297 600 400 arrays 0;
#N canvas 0 0 450 300 (subpatch) 0;
-#X array array2 15 float 0;
+#X array array2 18 float 0;
#X array array3 24 float 0;
#X coords 0 1 15 -1 400 300 1;
#X restore 63 4 graph;
@@ -70,6 +71,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 54 151 pd gemwin;
+#X obj 518 8 declare -lib Gem;
#X connect 0 0 14 0;
#X connect 1 0 12 0;
#X connect 2 0 12 0;
diff --git a/Gem/examples/02.advanced/11.SplinePath.pd b/Gem/examples/02.advanced/11.SplinePath.pd
index 3938ed8..a6c8af6 100644
--- a/Gem/examples/02.advanced/11.SplinePath.pd
+++ b/Gem/examples/02.advanced/11.SplinePath.pd
@@ -1,4 +1,5 @@
#N canvas 355 106 641 505 10;
+#X declare -lib Gem;
#X floatatom 492 288 0 0 0 0 - - -;
#X msg 421 55 1;
#X msg 461 55 0;
@@ -70,6 +71,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 33 171 pd gemwin;
+#X obj 528 8 declare -lib Gem;
#X connect 0 0 12 0;
#X connect 1 0 13 0;
#X connect 2 0 13 0;
diff --git a/Gem/examples/02.advanced/12.Hsv.pd b/Gem/examples/02.advanced/12.Hsv.pd
index 28379a2..9efc92f 100644
--- a/Gem/examples/02.advanced/12.Hsv.pd
+++ b/Gem/examples/02.advanced/12.Hsv.pd
@@ -1,4 +1,5 @@
#N canvas 433 87 762 506 12;
+#X declare -lib Gem;
#X obj 248 352 gemhead;
#X obj 248 412 color;
#X msg 559 202 1 1 1;
@@ -35,7 +36,7 @@
#X restore 26 133 pd Gem.init;
#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;
@@ -79,6 +80,7 @@
-8 0 10 -262144 -1 -1 0 1;
#X obj 532 112 hsl 128 15 0 1 0 0 \$0-value empty value -2 -8 0 10
-262144 -1 -1 0 1;
+#X obj 638 8 declare -lib Gem;
#X connect 0 0 1 0;
#X connect 1 0 4 0;
#X connect 2 0 7 0;
diff --git a/Gem/examples/02.advanced/13.ModelRescale.pd b/Gem/examples/02.advanced/13.ModelRescale.pd
index 3da2927..5ba96ea 100644
--- a/Gem/examples/02.advanced/13.ModelRescale.pd
+++ b/Gem/examples/02.advanced/13.ModelRescale.pd
@@ -1,4 +1,5 @@
-#N canvas 8 40 682 502 12;
+#N canvas 8 61 682 502 12;
+#X declare -lib Gem;
#X floatatom 241 220 0 0 0 0 - - -;
#X obj 208 268 translate;
#X msg 275 220 0 0 1;
@@ -78,6 +79,7 @@
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 34 124 pd gemwin;
#X text 228 51 before the 'open' occurs;
+#X obj 558 8 declare -lib Gem;
#X connect 0 0 1 1;
#X connect 1 0 16 0;
#X connect 2 0 1 2;
diff --git a/Gem/examples/02.advanced/14.RenderOrder.pd b/Gem/examples/02.advanced/14.RenderOrder.pd
index a199d0b..620eaa6 100644
--- a/Gem/examples/02.advanced/14.RenderOrder.pd
+++ b/Gem/examples/02.advanced/14.RenderOrder.pd
@@ -1,4 +1,5 @@
-#N canvas 0 0 986 385 10;
+#N canvas 6 61 986 385 10;
+#X declare -lib Gem;
#X text 276 35 Blue Sphere;
#N canvas 95 194 290 179 Gem.init 0;
#X obj 118 18 loadbang;
@@ -120,6 +121,7 @@ becomes "behind" \, the rendering order has to be changed. do this
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 72 168 pd gemwin;
+#X obj 878 8 declare -lib Gem;
#X connect 1 0 34 0;
#X connect 2 0 4 0;
#X connect 3 0 5 0;
diff --git a/Gem/examples/02.advanced/15.GemWin.pd b/Gem/examples/02.advanced/15.GemWin.pd
index a414b15..c86f264 100644
--- a/Gem/examples/02.advanced/15.GemWin.pd
+++ b/Gem/examples/02.advanced/15.GemWin.pd
@@ -1,4 +1,5 @@
-#N canvas 51 56 650 553 10;
+#N canvas 51 61 650 553 10;
+#X declare -lib Gem;
#X obj 53 224 gemwin;
#X obj 38 397 gemmouse;
#X obj 109 206 r gemwin_mess;
@@ -22,7 +23,7 @@
-66577 0;
#X msg 253 49 title Graphic's_Environment_for_Multimedia;
#X msg 286 94 title \$1;
-#X symbolatom 286 72 10 0 0;
+#X symbolatom 286 72 10 0 0 0 - - -;
#X text 359 94 type your own title;
#X obj 253 125 s gemwin_mess;
#X obj 247 259 cnv 15 380 120 empty empty dimensions+positioning 20
@@ -45,7 +46,7 @@
#X text 548 330 borders !;
#X obj 247 391 cnv 15 380 80 empty empty full-screen 20 0 0 14 -233017
-66577 0;
-#X obj 257 409 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
+#X obj 257 409 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X msg 257 428 \; gemwin_mess fullscreen \$1;
#X text 276 407 fullscreen/windowed;
@@ -55,6 +56,7 @@
#X text 458 415 dimensions & offsets;
#X text 468 432 mean nothing in;
#X text 463 448 fullscreen mode !;
+#X obj 528 518 declare -lib Gem;
#X connect 1 2 4 0;
#X connect 2 0 0 0;
#X connect 4 0 5 0;
diff --git a/Gem/examples/02.advanced/16.vertex_program.pd b/Gem/examples/02.advanced/16.vertex_program.pd
index 3d940b4..ec237d1 100644
--- a/Gem/examples/02.advanced/16.vertex_program.pd
+++ b/Gem/examples/02.advanced/16.vertex_program.pd
@@ -1,4 +1,5 @@
#N canvas 27 90 540 557 10;
+#X declare -lib Gem;
#X obj 404 142 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 235 42 gemhead;
@@ -147,6 +148,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 54 83 pd gemwin;
+#X obj 38 138 declare -lib Gem;
#X connect 0 0 26 0;
#X connect 1 0 25 0;
#X connect 2 0 41 0;
diff --git a/Gem/examples/02.advanced/17.fragment_program.pd b/Gem/examples/02.advanced/17.fragment_program.pd
index 2b1ce3b..5b5de14 100644
--- a/Gem/examples/02.advanced/17.fragment_program.pd
+++ b/Gem/examples/02.advanced/17.fragment_program.pd
@@ -1,4 +1,5 @@
#N canvas 27 90 540 557 10;
+#X declare -lib Gem;
#X obj 404 142 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 235 42 gemhead;
@@ -101,6 +102,7 @@
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X restore 70 104 pd Gem.init;
+#X obj 428 8 declare -lib Gem;
#X connect 0 0 9 0;
#X connect 1 0 20 0;
#X connect 2 0 8 0;
diff --git a/Gem/examples/02.advanced/18.gl_shading_language.pd b/Gem/examples/02.advanced/18.gl_shading_language.pd
index 2953738..2ebc459 100644
--- a/Gem/examples/02.advanced/18.gl_shading_language.pd
+++ b/Gem/examples/02.advanced/18.gl_shading_language.pd
@@ -1,4 +1,5 @@
-#N canvas 54 22 842 789 10;
+#N canvas 54 61 842 789 10;
+#X declare -lib Gem;
#X obj 225 24 gemhead 1;
#X obj 225 47 world_light;
#X obj 77 112 gemhead;
@@ -89,7 +90,7 @@ example should work;
#X obj 335 114 symbol ../data/Toon;
#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;
@@ -130,6 +131,7 @@ example should work;
#X msg 39 29 lighting \$1;
#X obj 39 10 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
;
+#X obj 738 8 declare -lib Gem;
#X connect 0 0 1 0;
#X connect 2 0 3 0;
#X connect 3 0 37 0;
diff --git a/Gem/examples/02.advanced/19.pointer.pd b/Gem/examples/02.advanced/19.pointer.pd
index 7db5c4f..25f5713 100644
--- a/Gem/examples/02.advanced/19.pointer.pd
+++ b/Gem/examples/02.advanced/19.pointer.pd
@@ -1,4 +1,5 @@
-#N canvas 102 54 864 638 10;
+#N canvas 102 61 864 638 10;
+#X declare -lib Gem;
#X obj 209 223 gemhead;
#X obj 241 277 t a a a;
#X obj 264 320 cube 1;
@@ -182,6 +183,7 @@ means that the examples below are equivalent:;
#X connect 1 0 2 0;
#X connect 2 0 0 0;
#X restore 44 36 pd Gem.init;
+#X obj 748 8 declare -lib Gem;
#X connect 0 0 13 0;
#X connect 1 0 22 0;
#X connect 1 1 2 0;
diff --git a/Gem/examples/02.advanced/20.double-gemhead_vs_repeat.pd b/Gem/examples/02.advanced/20.double-gemhead_vs_repeat.pd
index 364f002..4b55328 100644
--- a/Gem/examples/02.advanced/20.double-gemhead_vs_repeat.pd
+++ b/Gem/examples/02.advanced/20.double-gemhead_vs_repeat.pd
@@ -1,4 +1,5 @@
#N canvas 265 100 742 519 10;
+#X declare -lib Gem;
#X obj 93 144 gemhead;
#X obj 93 205 b;
#X obj 93 124 tgl 15 1 empty empty empty 17 7 0 10 -262144 -1 -1 1
@@ -143,6 +144,7 @@ the a single [gemhead] many times;
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 53 69 pd gemwin;
+#X obj 628 8 declare -lib Gem;
#X connect 0 0 33 0;
#X connect 1 0 9 0;
#X connect 2 0 0 0;
diff --git a/Gem/examples/02.advanced/21.basic_LSystem.pd b/Gem/examples/02.advanced/21.basic_LSystem.pd
index f1b399f..5b23388 100644
--- a/Gem/examples/02.advanced/21.basic_LSystem.pd
+++ b/Gem/examples/02.advanced/21.basic_LSystem.pd
@@ -1,4 +1,5 @@
-#N canvas 515 27 647 743 10;
+#N canvas 515 61 647 743 10;
+#X declare -lib Gem;
#X obj 15 16 gemhead;
#X obj 76 483 GEMglPushMatrix;
#X obj 96 462 GEMglPopMatrix;
@@ -35,8 +36,8 @@ it to the corresponding primitives;
#X text 397 502 <- size of the system;
#X msg 15 164 F \, [ \, - \, F \, ] \, F \, [ \, + \, F \, ] \, F;
#X text 12 640 This is a basic implementation of Lindenmayer System
-(LSystem) in GEM. Wikipedia is a good place for information about
-Lsystems;
+(LSystem) in GEM. Wikipedia is a good place for information about Lsystems
+;
#X obj 15 351 gemlist;
#X obj 47 110 s \$0-gemlist;
#X obj 35 372 gemlist;
@@ -94,6 +95,7 @@ F;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 377 40 pd Gem.init;
+#X obj 528 8 declare -lib Gem;
#X connect 0 0 21 0;
#X connect 3 0 24 0;
#X connect 4 0 18 0;
diff --git a/Gem/examples/02.advanced/22.double-iterative.pd b/Gem/examples/02.advanced/22.double-iterative.pd
index 218c30f..fd6a48d 100644
--- a/Gem/examples/02.advanced/22.double-iterative.pd
+++ b/Gem/examples/02.advanced/22.double-iterative.pd
@@ -1,4 +1,5 @@
-#N canvas 0 0 473 588 10;
+#N canvas 6 61 473 588 10;
+#X declare -lib Gem;
#X obj 32 103 gemhead;
#X obj 106 235 gemlist;
#X msg 106 192 20;
@@ -87,6 +88,7 @@
#X text 386 416 <- fun 2;
#X text 389 457 <- fun 3;
#X text 136 30 double iterative process;
+#X obj 368 8 declare -lib Gem;
#X connect 0 0 6 0;
#X connect 1 0 7 0;
#X connect 2 0 3 0;
diff --git a/Gem/examples/02.advanced/23.SplitScreen.pd b/Gem/examples/02.advanced/23.SplitScreen.pd
index 8c8a237..a1f6406 100644
--- a/Gem/examples/02.advanced/23.SplitScreen.pd
+++ b/Gem/examples/02.advanced/23.SplitScreen.pd
@@ -1,4 +1,5 @@
-#N canvas 26 51 799 698 10;
+#N canvas 26 61 799 698 10;
+#X declare -lib Gem;
#N canvas 22 50 213 300 Gem.init 0;
#X obj 71 191 outlet;
#X obj 71 81 loadbang;
@@ -13,7 +14,7 @@
#X restore 24 75 pd Gem.init;
#N canvas 330 97 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;
@@ -245,9 +246,9 @@
1;
#X obj 263 17 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
-#X obj 263 263 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
+#X obj 263 263 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
-#X obj 588 278 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
+#X obj 588 278 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 423 540 ortho;
#X obj 246 664 square 1;
@@ -259,7 +260,8 @@
#X text 18 240 in the left-hand "screen".;
#X obj 454 23 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
-262144 -1 -1 0 256;
-#X floatatom 141 549 5 0 0 0 - - -, f 5;
+#X floatatom 141 549 5 0 0 0 - - -;
+#X obj 38 298 declare -lib Gem;
#X connect 0 0 1 0;
#X connect 2 0 11 0;
#X connect 3 0 2 0;
diff --git a/Gem/examples/02.advanced/snapshotHD.pd b/Gem/examples/02.advanced/snapshotHD.pd
index 1e3d1bd..6495634 100644
--- a/Gem/examples/02.advanced/snapshotHD.pd
+++ b/Gem/examples/02.advanced/snapshotHD.pd
@@ -1,4 +1,5 @@
-#N canvas 143 49 609 575 10;
+#N canvas 143 61 609 575 10;
+#X declare -lib Gem;
#X obj 152 105 gemframebuffer;
#X obj 179 148 translateXYZ 0 0 -4;
#X obj 152 126 t a a;
@@ -49,6 +50,7 @@
#X obj 152 343 t b a b b b;
#X obj 167 374 t a b a;
#X text 453 523 (c) Jack/RYBN 2011;
+#X obj 478 8 declare -lib Gem;
#X connect 0 0 2 0;
#X connect 0 1 12 1;
#X connect 1 0 5 0;