/usr/share/gem/examples/04.pix/25.buffer.pd is in gem-doc 1:0.93.3-13.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | #N canvas 0 0 832 589 10;
#X obj 62 327 gemhead;
#X obj 62 369 pix_texture;
#X obj 62 392 square 4;
#X obj 316 316 gemhead;
#X obj 316 342 pix_film;
#X obj 316 387 t a b;
#X obj 361 430 i;
#X obj 388 430 + 1;
#X obj 361 408 spigot;
#X obj 398 364 t b b;
#X msg 398 387 1;
#X msg 455 388 0;
#X obj 398 339 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 419 339 start recording into the buffer;
#X msg 398 296 open \$1;
#X obj 398 275 openpanel;
#X obj 398 257 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 477 240 ../data/anim-1.mov;
#X msg 477 260 ../data/alea.mpg;
#X msg 478 216 ../data/homer.avi;
#X obj 477 282 symbol;
#X floatatom 155 321 5 0 0 0 - - -;
#X text 195 320 index;
#X msg 408 408 0;
#X obj 571 401 gemhead;
#X obj 571 427 pix_image ../data/fractal.JPG;
#X floatatom 423 497 5 0 0 0 - - -;
#X msg 405 318 auto 1;
#X msg 457 319 0;
#X obj 361 456 moses 10;
#X floatatom 663 406 5 0 0 0 - - -;
#X msg 663 386 5;
#X text 467 493 put the next image into "myImages" @ index;
#X msg 140 390 set yourImages;
#X msg 212 490 set yourImages;
#X text 213 473 set the storage-name;
#X obj 62 349 pix_buffer_read myImages;
#X obj 316 515 pix_buffer_write myImages;
#X obj 571 453 pix_buffer_write myImages;
#X text 291 539 write an image into a certain storage-buffer;
#X text 15 422 read an image from a certain storage-buffer;
#X text 17 302 get an image from the pix_buffer;
#X obj 33 227 pix_buffer yourImages 10;
#X obj 20 69 cnv 15 200 70 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 454 304 gemwin 0;
#X obj 132 136 gemwin;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X obj 67 41 route create;
#X msg 67 70 set destroy;
#X msg 182 68 set create;
#X msg 132 112 create \, 1;
#X msg 238 112 destroy;
#N canvas 87 154 247 179 Gem.init 0;
#X obj 118 46 loadbang;
#X msg 118 81 reset;
#X obj 118 113 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 289 80 pd Gem.init;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 6 0;
#X connect 3 1 5 0;
#X connect 3 1 7 0;
#X connect 4 0 1 0;
#X connect 5 0 1 0;
#X connect 6 0 0 0;
#X connect 7 0 0 0;
#X connect 8 0 0 0;
#X restore 25 113 pd gemwin;
#X msg 25 89 create;
#X text 21 69 Create window and render;
#X text 284 32 ============;
#X text 236 48 store/get images into/from a buffer;
#X msg 226 77 bang;
#X floatatom 226 174 5 0 0 0 - - -;
#X text 265 77 get the size of the depot;
#X msg 237 116 allocate 128 64 4;
#X text 371 104 pre-allocate each image-buffer to hold at east 128*64*4
pixels;
#X text 388 155 a storage-place for "10" pix-images called "myImages"
;
#X obj 226 153 pix_buffer myImages 10;
#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 connect 0 0 36 0;
#X connect 1 0 2 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 37 0;
#X connect 5 1 8 0;
#X connect 6 0 7 0;
#X connect 6 0 29 0;
#X connect 7 0 6 1;
#X connect 8 0 6 0;
#X connect 9 0 10 0;
#X connect 9 1 23 0;
#X connect 10 0 8 1;
#X connect 11 0 8 1;
#X connect 11 0 31 0;
#X connect 12 0 9 0;
#X connect 14 0 4 0;
#X connect 14 0 12 0;
#X connect 14 0 27 0;
#X connect 14 0 28 0;
#X connect 15 0 14 0;
#X connect 16 0 15 0;
#X connect 17 0 20 0;
#X connect 18 0 20 0;
#X connect 19 0 20 0;
#X connect 20 0 14 0;
#X connect 21 0 36 1;
#X connect 23 0 6 1;
#X connect 24 0 25 0;
#X connect 25 0 38 0;
#X connect 26 0 37 1;
#X connect 27 0 4 0;
#X connect 28 0 4 1;
#X connect 29 0 26 0;
#X connect 29 1 11 0;
#X connect 30 0 38 1;
#X connect 31 0 30 0;
#X connect 33 0 36 0;
#X connect 34 0 37 0;
#X connect 36 0 1 0;
#X connect 44 0 45 0;
#X connect 45 0 44 0;
#X connect 49 0 55 0;
#X connect 52 0 55 0;
#X connect 55 0 50 0;
#X connect 57 0 55 0;
|