[Gridflow-cvs] [svn] commit: r6282 - /trunk/examples/qbert.pd

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sun Sep 19 14:42:00 EDT 2010


Author: matju
Date: Sun Sep 19 14:42:00 2010
New Revision: 6282

Log:
with a bit of sound support

Modified:
    trunk/examples/qbert.pd

Modified: trunk/examples/qbert.pd
==============================================================================
--- trunk/examples/qbert.pd (original)
+++ trunk/examples/qbert.pd Sun Sep 19 14:42:00 2010
@@ -1,4 +1,4 @@
-#N canvas 370 0 623 511 10;
+#N canvas 626 0 623 511 10;
 #X obj 5 62 gemhead;
 #X msg 205 83 destroy;
 #X obj 0 0 doc_demo;
@@ -382,10 +382,8 @@
 #X restore 541 480 pd text GEM;
 #X text 483 391 old stuff :;
 #X obj 5 81 shunt;
-#X msg 199 64 dimen 640 480 \, title GridFlow/GEM \, create \, 1 \,
-lighting 0;
 #X obj 199 106 gemwin 20;
-#N canvas 0 0 450 300 text_start 0;
+#N canvas 626 140 450 300 text_start 0;
 #X obj 13 12 inlet;
 #X obj 13 235 #to_pix;
 #X obj 52 197 #text_to_image;
@@ -473,90 +471,100 @@
 #X connect 12 0 13 0;
 #X connect 13 0 9 0;
 #X restore 68 169 pd draw_qbert;
-#N canvas 82 191 450 300 draw_boule 0;
-#X obj 15 38 inlet;
-#X obj 175 25 inlet;
+#N canvas 497 187 471 530 draw_boule 0;
+#X obj 15 8 inlet;
+#X obj 174 5 inlet;
 #X obj 15 134 #to_pix;
 #X obj 15 153 pix_texture;
 #X obj 15 172 alpha;
 #X obj 63 115 loadbang;
 #X obj 15 96 colorRGB 1 1 1;
 #X obj 63 134 #in qboule.png;
-#X obj 15 252 square 1;
-#X msg 175 68 2 f # \$1 \$2;
-#X obj 175 144 #unpack;
-#X obj 175 87 #inner (2 2 f # 0.5 1 -0.5 1) \, seed (f #);
-#X obj 175 106 # * (2 f # -1.732 -1.5);
-#X obj 175 125 # + (2 f # 0 5.25);
-#X text 186 52 find a way to not copy+paste this;
-#X obj 15 233 translateXYZ 0 0 0.0002;
+#X msg 174 219 2 f # \$1 \$2;
+#X obj 174 295 #unpack;
+#X obj 174 238 #inner (2 2 f # 0.5 1 -0.5 1) \, seed (f #);
+#X obj 174 257 # * (2 f # -1.732 -1.5);
+#X text 185 203 find a way to not copy+paste this;
+#X obj 15 473 translateXYZ 0 0 0.0002;
+#X obj 174 276 # + (2 f # 0 5);
+#X obj 15 492 square 0.8;
+#X obj 207 162 line;
+#X obj 174 162 line;
+#X obj 174 181 pack;
+#X obj 174 124 unpack;
+#X obj 174 24 t a a;
+#X obj 210 24 +;
+#X obj 210 63 * 400;
+#X obj 174 143 pack;
+#X obj 207 143 pack;
+#X obj 210 43 > 1;
 #X connect 0 0 6 0;
-#X connect 1 0 9 0;
+#X connect 1 0 20 0;
 #X connect 2 0 3 0;
 #X connect 3 0 4 0;
-#X connect 4 0 15 0;
+#X connect 4 0 13 0;
 #X connect 5 0 7 0;
 #X connect 6 0 2 0;
 #X connect 7 0 2 1;
-#X connect 9 0 11 0;
-#X connect 10 0 15 1;
-#X connect 10 1 15 2;
-#X connect 11 0 12 0;
-#X connect 12 0 13 0;
-#X connect 13 0 10 0;
-#X connect 15 0 8 0;
+#X connect 8 0 10 0;
+#X connect 9 0 13 1;
+#X connect 9 1 13 2;
+#X connect 10 0 11 0;
+#X connect 11 0 14 0;
+#X connect 13 0 15 0;
+#X connect 14 0 9 0;
+#X connect 16 0 18 1;
+#X connect 17 0 18 0;
+#X connect 18 0 8 0;
+#X connect 19 0 23 0;
+#X connect 19 1 24 0;
+#X connect 20 0 19 0;
+#X connect 20 1 21 0;
+#X connect 21 0 25 0;
+#X connect 22 0 23 1;
+#X connect 22 0 24 1;
+#X connect 23 0 17 0;
+#X connect 24 0 16 0;
+#X connect 25 0 22 0;
 #X restore 5 295 pd draw_boule;
 #N canvas 522 142 471 381 boule_behaviour 0;
-#X obj 209 138 random 2;
-#X obj 19 245 outlet;
-#X obj 19 226 pack;
-#X obj 209 157 +;
+#X obj 119 108 random 2;
+#X obj 19 221 outlet;
+#X obj 19 193 pack;
+#X obj 119 127 +;
 #X obj 19 34 t b b;
-#X floatatom 210 234 5 0 0 0 - - -;
 #X obj 19 15 r qbert-clock;
-#X floatatom 91 44 5 0 0 0 - - -;
-#X obj 224 7 loadbang;
-#X obj 224 26 t b b;
-#X obj 313 52 random 2;
-#X obj 313 71 * 2;
+#X obj 124 7 loadbang;
+#X obj 124 26 t b b;
 #X obj 19 91 f;
-#X obj 63 91 + 1;
+#X obj 43 91 + 1;
 #X obj 19 110 t f f;
 #X obj 19 174 -;
-#X obj 209 176 t f f;
-#X obj 313 90 - 1;
-#X msg 251 83 0;
-#X obj 181 9 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
--1;
-#X msg 224 45 1;
-#X obj 31 139 moses 7;
+#X obj 119 146 t f f;
+#X msg 151 45 0;
+#X msg 124 45 1;
+#X obj 25 130 moses 7;
 #X connect 0 0 3 0;
 #X connect 2 0 1 0;
 #X connect 3 0 2 1;
-#X connect 3 0 15 1;
-#X connect 3 0 16 0;
-#X connect 4 0 12 0;
+#X connect 3 0 11 1;
+#X connect 3 0 12 0;
+#X connect 4 0 8 0;
 #X connect 4 1 0 0;
-#X connect 6 0 4 0;
-#X connect 8 0 9 0;
-#X connect 9 0 20 0;
-#X connect 9 1 10 0;
-#X connect 9 1 18 0;
+#X connect 5 0 4 0;
+#X connect 6 0 7 0;
+#X connect 7 0 14 0;
+#X connect 7 1 13 0;
+#X connect 8 0 10 0;
+#X connect 9 0 8 1;
 #X connect 10 0 11 0;
-#X connect 11 0 17 0;
-#X connect 12 0 7 0;
-#X connect 12 0 14 0;
-#X connect 13 0 12 1;
-#X connect 14 0 15 0;
-#X connect 14 0 21 0;
-#X connect 14 1 13 0;
-#X connect 15 0 2 0;
-#X connect 16 0 5 0;
-#X connect 16 1 3 1;
-#X connect 18 0 3 1;
-#X connect 19 0 9 0;
-#X connect 20 0 12 1;
-#X connect 21 1 9 0;
+#X connect 10 0 15 0;
+#X connect 10 1 9 0;
+#X connect 11 0 2 0;
+#X connect 12 1 3 1;
+#X connect 13 0 3 1;
+#X connect 14 0 8 1;
+#X connect 15 1 7 0;
 #X restore 89 295 pd boule_behaviour;
 #X obj 279 264 #ravel;
 #X obj 279 283 #fold +;
@@ -769,9 +777,11 @@
 #X obj 5 10 inlet;
 #X obj 333 208 bng 15 250 50 0 empty empty empty 17 7 0 10 -261234
 -1 -1;
-#X obj 279 112 inlet;
+#X obj 279 12 inlet;
 #X obj 330 51 r \$0-start;
 #X obj 350 207 r \$0-start;
+#X obj 192 29 b;
+#X obj 192 48 s \$0-son-pieds;
 #X connect 0 0 1 0;
 #X connect 1 0 3 0;
 #X connect 1 1 2 0;
@@ -809,8 +819,10 @@
 #X connect 28 0 18 0;
 #X connect 29 0 19 1;
 #X connect 30 0 5 0;
+#X connect 30 0 33 0;
 #X connect 31 0 20 0;
 #X connect 32 0 29 0;
+#X connect 33 0 34 0;
 #X restore 32 100 pd play;
 #X obj 77 250 #see \, margins 0 0 0 0;
 #X text 96 363 insert coin;
@@ -833,28 +845,139 @@
 #X obj 464 243 hradio 15 1 1 5 empty empty level 0 -8 0 10 -204800
 -1 -1 4;
 #X obj 464 260 + 1;
+#X obj 506 177 dac~;
+#X obj 516 150 catch~ son;
+#X obj 511 85 loadbang;
+#X msg 511 104 dsp 1;
+#X obj 511 123 s pd;
+#X msg 199 64 dimen 576 480 \, title GridFlow/GEM \, create \, 1 \,
+lighting 0;
+#N canvas 256 87 993 425 son 0;
+#X obj 14 76 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
+-1;
+#X obj 14 386 throw~ son;
+#X obj 14 119 #in;
+#X obj 14 234 #cast f;
+#X obj 14 31 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
+;
+#X obj 30 141 # % 65536;
+#X obj 29 164 # - 32768;
+#X msg 39 119 open grid /tmp/colem.rawaudio \, headerless 4410 1 1
+\, type s;
+#X obj 14 210 #redim (8820 1);
+#X obj 14 281 #to~;
+#X obj 14 48 metro 200;
+#X obj 14 260 # / (f 32768);
+#X obj 120 210 readsf~;
+#X obj 119 246 *~ 0.0625;
+#X msg 120 191 open /home/matju/src/gridflow/qbert.rawaudio 0 200 1
+2 l \, 1;
+#X obj 14 188 #scale_by (2 1);
+#X obj 190 86 soundfiler;
+#N canvas 0 0 576 359 (subpatch) 0;
+#X array son001 66000 float 2;
+#X coords 0 1 66000 -1 200 35 1 0 0;
+#X restore 776 25 graph;
+#X obj 215 281 line~;
+#X obj 215 243 r \$0-son-pieds;
+#X obj 190 6 loadbang;
+#X msg 215 262 56000 \, 67025 500;
+#X msg 338 302 0 \, 44100 2000;
+#X obj 338 215 r \$0-son-intro;
+#N canvas 0 0 450 300 (subpatch) 0;
+#X array son002 55000 float 2;
+#X coords 0 1 55000 -1 200 35 1 0 0;
+#X restore 775 73 graph;
+#X msg 459 17 read -resize -raw 46000 1 2 l -maxsize 66000 /home/matju/src/gridflow/qbert.rawaudio
+son001;
+#X msg 397 58 write -wave qbert-001.wav son001;
+#X obj 428 321 line~;
+#X obj 428 340 tabread~ son002;
+#X obj 215 300 tabread~ son001;
+#X msg 428 302 0 \, 66150 3000;
+#N canvas 0 0 450 300 (subpatch) 0;
+#X array son003 62988 float 2;
+#X coords 0 1 62988 -1 200 35 1 0 0;
+#X restore 775 123 graph;
+#X msg 431 149 write -wave qbert-002.wav son002;
+#X msg 190 44 read qbert/qbert-00\$1.wav son00\$1;
+#X obj 190 25 for 1 4 1;
+#X obj 160 16 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
+-1;
+#X msg 395 89 read -resize -raw 12500 1 2 l -maxsize 55000 /home/matju/src/gridflow/qbert-002.raw
+son002;
+#X obj 528 321 line~;
+#X obj 528 340 tabread~ son003;
+#X msg 528 302 0 \, 66150 3000;
+#X obj 338 234 - 1;
+#X obj 338 272 sel 0 1;
+#X obj 338 253 mod 3;
+#X connect 0 0 2 0;
+#X connect 2 0 15 0;
+#X connect 3 0 11 0;
+#X connect 4 0 10 0;
+#X connect 5 0 6 0;
+#X connect 7 0 2 0;
+#X connect 8 0 3 0;
+#X connect 10 0 0 0;
+#X connect 11 0 9 0;
+#X connect 12 0 13 0;
+#X connect 14 0 12 0;
+#X connect 15 0 8 0;
+#X connect 18 0 29 0;
+#X connect 19 0 21 0;
+#X connect 20 0 34 0;
+#X connect 21 0 18 0;
+#X connect 22 0 18 0;
+#X connect 23 0 40 0;
+#X connect 25 0 16 0;
+#X connect 26 0 16 0;
+#X connect 27 0 28 0;
+#X connect 28 0 1 0;
+#X connect 29 0 1 0;
+#X connect 30 0 27 0;
+#X connect 32 0 16 0;
+#X connect 33 0 16 0;
+#X connect 34 0 33 0;
+#X connect 35 0 34 0;
+#X connect 36 0 16 0;
+#X connect 37 0 38 0;
+#X connect 38 0 1 0;
+#X connect 39 0 37 0;
+#X connect 40 0 42 0;
+#X connect 41 0 22 0;
+#X connect 41 1 30 0;
+#X connect 41 2 39 0;
+#X connect 42 0 41 0;
+#X restore 536 177 pd son;
+#X obj 476 305 s \$0-son-intro;
 #X connect 0 0 16 0;
-#X connect 1 0 18 0;
+#X connect 1 0 17 0;
 #X connect 3 0 10 0;
-#X connect 4 0 17 0;
+#X connect 4 0 43 0;
 #X connect 6 0 8 0;
 #X connect 8 0 7 0;
-#X connect 10 0 28 0;
-#X connect 16 0 19 0;
-#X connect 16 1 20 0;
-#X connect 17 0 18 0;
-#X connect 21 0 23 0;
-#X connect 23 0 26 0;
-#X connect 24 0 16 1;
-#X connect 26 0 35 0;
-#X connect 27 0 6 0;
-#X connect 27 0 28 1;
-#X connect 28 0 20 1;
-#X connect 29 0 30 0;
-#X connect 30 0 35 0;
-#X connect 31 0 32 0;
-#X connect 32 0 21 0;
-#X connect 33 0 32 0;
-#X connect 35 0 25 0;
-#X connect 37 0 38 0;
-#X connect 38 0 36 0;
+#X connect 10 0 27 0;
+#X connect 16 0 18 0;
+#X connect 16 1 19 0;
+#X connect 20 0 22 0;
+#X connect 22 0 25 0;
+#X connect 23 0 16 1;
+#X connect 25 0 34 0;
+#X connect 26 0 6 0;
+#X connect 26 0 27 1;
+#X connect 27 0 19 1;
+#X connect 28 0 29 0;
+#X connect 29 0 34 0;
+#X connect 30 0 31 0;
+#X connect 31 0 20 0;
+#X connect 32 0 31 0;
+#X connect 34 0 24 0;
+#X connect 36 0 37 0;
+#X connect 37 0 35 0;
+#X connect 37 0 45 0;
+#X connect 39 0 38 0;
+#X connect 39 0 38 1;
+#X connect 40 0 41 0;
+#X connect 41 0 42 0;
+#X connect 43 0 17 0;



More information about the Gridflow-cvs mailing list