[Gridflow-cvs] [svn] commit: r5149 - /trunk/examples/surface_tension.pd

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Thu Mar 25 01:46:58 EDT 2010


Author: matju
Date: Thu Mar 25 01:46:57 2010
New Revision: 5149

Log:
fairly faster version of this patch, uses less random numbers at once, because we don't need so many of them, and [# rand] is damn slow.

Modified:
    trunk/examples/surface_tension.pd

Modified: trunk/examples/surface_tension.pd
==============================================================================
--- trunk/examples/surface_tension.pd (original)
+++ trunk/examples/surface_tension.pd Thu Mar 25 01:46:57 2010
@@ -1,138 +1,131 @@
-#N canvas 481 120 730 701 10;
+#N canvas 492 0 730 701 10;
 #X obj 91 -43 tgl 15 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1
 ;
 #X obj 91 8 #camera;
-#X obj 38 113 t a a;
-#X msg 96 114 240 320 3 #;
 #X obj 95 92 loadbang;
-#N canvas 286 95 450 300 analysis 0;
-#X obj 46 17 inlet;
-#X obj 49 236 outlet;
-#X obj 64 67 spigot;
-#X obj 46 44 t a a;
-#X obj 114 68 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
+#N canvas 286 95 450 245 analysis 0;
+#X obj 49 12 inlet;
+#X obj 49 162 outlet;
+#X obj 82 67 spigot;
+#X obj 49 39 t a a;
+#X obj 124 68 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
 ;
-#X obj 114 15 inlet;
-#X obj 49 86 # -;
-#X obj 49 129 # - 30;
-#X obj 49 154 # max 0;
-#X obj 49 182 # * 20;
-#X obj 49 211 # min 256;
-#X obj 49 108 @! abs;
+#X obj 124 15 inlet;
+#X obj 49 105 # - 30;
+#X obj 49 124 # * 20;
+#X obj 49 86 # abs-;
+#X obj 49 143 #clip 0 256;
 #X connect 0 0 3 0;
-#X connect 2 0 6 1;
+#X connect 2 0 8 1;
 #X connect 3 0 2 0;
-#X connect 3 1 6 0;
+#X connect 3 1 8 0;
 #X connect 4 0 2 1;
 #X connect 5 0 4 0;
-#X connect 6 0 11 0;
-#X connect 7 0 8 0;
-#X connect 8 0 9 0;
-#X connect 9 0 10 0;
-#X connect 10 0 1 0;
-#X connect 11 0 7 0;
+#X connect 6 0 7 0;
+#X connect 7 0 9 0;
+#X connect 8 0 6 0;
+#X connect 9 0 1 0;
 #X restore 192 94 pd analysis;
 #X obj 275 94 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
 ;
-#X obj 123 433 r cam;
+#X obj 62 442 r cam;
 #X obj 113 67 s cam;
 #X obj 91 33 t a a b;
 #X obj 340 65 loadbang;
 #X msg 307 66 1;
 #X obj 417 85 loadbang;
 #X msg 306 88 0;
-#X obj 150 484 loadbang;
-#X msg 150 504 set_geometry 0 0 480 640 \, hidecursor;
 #X obj 338 89 delay 5000;
-#X obj 91 -17 metro 33.3667;
 #X obj -15 -84 cnv 15 640 30 empty empty empty 20 12 0 14 -233017 -66577
 0;
 #X obj -17 582 cnv 15 640 30 empty empty empty 20 12 0 14 -200249 -66577
 0;
-#X text -6 592 GridFlow 0.8.0;
-#X text 157 9 <-- open this and set your camera up;
+#X text -9 587 GridFlow 0.8.0;
 #X obj 38 92 #store;
-#X obj 71 143 # put 63;
-#X obj 71 164 # rand;
-#X obj 38 184 # +;
+#X obj 65 205 # rand;
+#X obj 38 224 # +;
 #X obj 161 144 # *>>8;
 #X obj 192 121 # inv+ 256;
-#X obj 38 211 #convolve (1 5 # 1);
-#X obj 39 233 #convolve (5 1 # 1);
-#X obj 39 306 # max -128;
-#X obj 39 325 # min 127;
-#X obj 39 344 # + 128;
-#X obj 39 365 #inner (3 3 # 3 0 1 1 3 0 0 1 3);
-#X obj 39 387 # >> 2;
-#X obj 113 383 # inv+ 255;
-#X obj 39 407 # *>>8;
-#X obj 39 431 # +;
-#X obj 70 431 # *>>8;
-#X obj 39 457 #clip;
+#X obj 38 354 # + 128;
+#X obj 38 383 #inner (3 3 # 3 0 1 1 3 0 0 1 3);
+#X obj 38 402 # >> 2;
+#X obj 112 404 # inv+ 255;
+#X obj 38 421 # *>>8;
+#X obj 38 461 # +;
+#X obj 62 461 # *>>8;
+#X obj 38 480 #clip;
 #X obj 337 209 #rgb_to_greyscale;
 #X obj 337 235 # +;
 #X obj 337 256 #convolve (1 3 # 1);
-#X obj 337 278 #convolve (3 1 # 1);
-#X obj 337 324 # min 255;
-#X obj 337 345 #greyscale_to_rgb;
-#X obj 116 547 #out window;
+#X obj 337 275 #convolve (3 1 # 1);
+#X obj 337 313 # min 255;
+#X obj 337 332 #greyscale_to_rgb;
 #X text 1 -85 surface_tension.pd;
-#X obj 39 478 #scale_by 2;
-#X obj 71 185 # - 31;
-#X obj 337 301 # *>>8 27;
-#X obj 39 287 # *>>8 25;
+#X obj 65 224 # - 31;
+#X obj 337 294 # *>>8 27;
+#X obj 38 313 # *>>8 25;
 #X text 1 -71 Copyright 2004 Mathieu Bouchard;
-#X obj 39 261 # + 5;
-#X connect 0 0 17 0;
-#X connect 1 0 9 0;
-#X connect 2 0 25 0;
-#X connect 2 1 23 0;
-#X connect 3 0 22 1;
-#X connect 4 0 3 0;
+#X obj 38 294 # + 5;
+#X text 143 8 <-- open this and set your camera to 240*320;
+#X msg 96 111 240 320 3 #;
+#X obj 38 547 #out window;
+#X obj 38 499 #scale_by 2;
+#X msg 52 523 border 0 \, move 0 1280;
+#X obj 38 332 #clip -128 127;
+#X obj 38 256 #convolve (1 5 # 1);
+#X obj 38 275 #convolve (5 1 # 1);
+#X obj 91 -17 metro 100;
+#X obj 38 113 t a b;
+#X msg 65 186 7777 # 63;
+#X text 70 169 we don't need so many random numbers;
+#X connect 0 0 49 0;
+#X connect 1 0 7 0;
+#X connect 2 0 42 0;
+#X connect 3 0 20 0;
+#X connect 3 0 29 0;
+#X connect 4 0 3 1;
 #X connect 5 0 27 0;
-#X connect 5 0 40 0;
-#X connect 6 0 5 1;
-#X connect 7 0 38 0;
-#X connect 9 0 5 0;
-#X connect 9 1 8 0;
-#X connect 9 2 22 0;
-#X connect 10 0 11 0;
-#X connect 11 0 6 0;
-#X connect 12 0 16 0;
-#X connect 13 0 6 0;
-#X connect 14 0 15 0;
-#X connect 15 0 46 0;
-#X connect 16 0 13 0;
-#X connect 17 0 1 0;
-#X connect 22 0 2 0;
-#X connect 23 0 24 0;
-#X connect 24 0 49 0;
-#X connect 25 0 28 0;
-#X connect 26 0 22 1;
+#X connect 7 0 3 0;
+#X connect 7 1 6 0;
+#X connect 7 2 16 0;
+#X connect 8 0 9 0;
+#X connect 9 0 4 0;
+#X connect 10 0 12 0;
+#X connect 11 0 4 0;
+#X connect 12 0 11 0;
+#X connect 16 0 50 0;
+#X connect 17 0 36 0;
+#X connect 18 0 47 0;
+#X connect 19 0 16 1;
+#X connect 20 0 19 1;
+#X connect 21 0 22 0;
+#X connect 22 0 23 0;
+#X connect 23 0 25 0;
+#X connect 24 0 25 1;
+#X connect 25 0 26 0;
+#X connect 26 0 28 0;
 #X connect 27 0 26 1;
-#X connect 28 0 29 0;
-#X connect 29 0 53 0;
+#X connect 28 0 44 0;
+#X connect 29 0 30 0;
 #X connect 30 0 31 0;
-#X connect 31 0 26 0;
 #X connect 31 0 32 0;
-#X connect 32 0 33 0;
+#X connect 32 0 37 0;
+#X connect 33 0 30 1;
 #X connect 33 0 34 0;
-#X connect 34 0 36 0;
-#X connect 35 0 36 1;
-#X connect 36 0 37 0;
-#X connect 37 0 39 0;
-#X connect 38 0 37 1;
-#X connect 39 0 48 0;
-#X connect 40 0 41 0;
-#X connect 41 0 42 0;
-#X connect 42 0 43 0;
-#X connect 43 0 50 0;
-#X connect 44 0 41 1;
-#X connect 44 0 45 0;
-#X connect 45 0 35 0;
-#X connect 45 0 38 1;
-#X connect 48 0 46 0;
-#X connect 49 0 25 1;
-#X connect 50 0 44 0;
-#X connect 51 0 30 0;
-#X connect 53 0 51 0;
+#X connect 34 0 24 0;
+#X connect 34 0 27 1;
+#X connect 36 0 18 1;
+#X connect 37 0 33 0;
+#X connect 38 0 46 0;
+#X connect 40 0 38 0;
+#X connect 42 0 16 1;
+#X connect 44 0 43 0;
+#X connect 45 0 43 0;
+#X connect 46 0 19 0;
+#X connect 46 0 21 0;
+#X connect 47 0 48 0;
+#X connect 48 0 40 0;
+#X connect 49 0 1 0;
+#X connect 50 0 18 0;
+#X connect 50 1 51 0;
+#X connect 51 0 17 0;



More information about the Gridflow-cvs mailing list