[Gridflow-cvs] [svn] commit: r5176 - in /trunk: abstractions/#in.pd abstractions/#out.pd doc/flow_classes/#in-help.pd doc/flow_classes/#out-help.pd

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sat Mar 27 13:42:19 EDT 2010


Author: matju
Date: Sat Mar 27 13:42:17 2010
New Revision: 5176

Log:
 * [#in] [#out] output "not_open" in outlet 1, to answer a message in closed mode
 * [#in] load has a $2 as a shortcut for open $1, cast $2, bang, close

Modified:
    trunk/abstractions/#in.pd
    trunk/abstractions/#out.pd
    trunk/doc/flow_classes/#in-help.pd
    trunk/doc/flow_classes/#out-help.pd

Modified: trunk/abstractions/#in.pd
==============================================================================
--- trunk/abstractions/#in.pd (original)
+++ trunk/abstractions/#in.pd Sat Mar 27 13:42:17 2010
@@ -1,66 +1,64 @@
 #N canvas 610 66 481 430 10;
 #X obj 19 20 inlet;
-#X obj 169 377 outlet;
-#X obj 286 399 outlet;
-#X obj 28 106 args *;
+#X obj 302 284 outlet;
+#X obj 365 284 outlet;
+#X obj 53 230 args *;
 #N canvas 116 23 450 300 \$0-placeholder 0;
-#X obj 0 0 r 1006-in;
-#X obj 0 40 s 1006-out;
+#X obj 0 0 r 1017-in;
+#X obj 0 40 s 1017-out;
 #X obj 0 20 gf.not_open;
 #X connect 0 0 2 0;
 #X connect 2 0 1 0;
-#X restore 169 239 pd \$0-placeholder;
-#X obj 169 220 s \$0-in;
-#X obj 169 258 r \$0-out;
-#X obj 232 116 route bang;
-#X msg 232 136 bang;
-#X text 266 137 hack.;
-#X obj 19 157 gf.io_generate \$0 in;
-#X msg 54 132 bang;
-#X msg 90 117 open \$1 \, bang \, close;
-#X obj 19 78 list;
-#X obj 90 98 list;
-#X obj 175 300 spigot 1;
-#X obj 175 281 route bang;
-#X msg 175 319 rewind \, bang;
-#X obj 19 59 route open close load loop set float;
+#X restore 302 146 pd \$0-placeholder;
+#X obj 302 127 s \$0-in;
+#X obj 302 165 r \$0-out;
+#X text 249 78 hack.;
+#X obj 19 259 gf.io_generate \$0 in;
+#X obj 19 150 list;
+#X obj 308 207 spigot 1;
+#X obj 308 188 route bang;
+#X msg 308 226 rewind \, bang;
 #X msg 161 78 seek \$1;
-#X msg 196 97 seek \$1 \, bang;
-#X obj 169 358 route2 grid not_open;
-#X msg 236 377 bang;
-#X obj 19 176 s pd-\$0-placeholder;
-#X obj 175 338 s \$0-self;
+#X msg 192 97 seek \$1 \, bang;
+#X obj 19 278 s pd-\$0-placeholder;
+#X obj 308 245 s \$0-self;
 #X obj 57 20 r \$0-self;
-#X obj 90 136 s \$0-self;
-#X obj 229 300 r \$0-loop;
-#X obj 125 97 s \$0-loop;
-#X connect 0 0 18 0;
-#X connect 3 0 10 0;
-#X connect 6 0 16 0;
-#X connect 6 0 21 0;
-#X connect 7 0 8 0;
-#X connect 7 1 5 0;
-#X connect 8 0 5 0;
-#X connect 10 0 23 0;
+#X obj 88 187 s \$0-self;
+#X obj 362 207 r \$0-loop;
+#X obj 123 109 s \$0-loop;
+#X obj 227 78 b;
+#X obj 53 201 b;
+#X obj 19 59 route open close load loop set float bang;
+#X obj 88 130 list split 2;
+#X msg 157 149 open \$1 \, bang \, close;
+#X msg 88 168 open \$1 \, cast \$2 \, bang \, close;
+#X obj 302 265 route2 grid;
+#X connect 0 0 23 0;
+#X connect 3 0 8 0;
+#X connect 6 0 11 0;
+#X connect 6 0 27 0;
+#X connect 8 0 15 0;
+#X connect 9 0 8 0;
+#X connect 10 0 12 0;
 #X connect 11 0 10 0;
-#X connect 12 0 26 0;
-#X connect 13 0 10 0;
-#X connect 14 0 12 0;
-#X connect 15 0 17 0;
-#X connect 16 0 15 0;
-#X connect 17 0 24 0;
-#X connect 18 0 13 0;
-#X connect 18 1 11 0;
-#X connect 18 2 14 0;
-#X connect 18 3 28 0;
-#X connect 18 4 19 0;
-#X connect 18 5 20 0;
-#X connect 18 6 7 0;
-#X connect 19 0 5 0;
-#X connect 20 0 5 0;
-#X connect 21 0 1 0;
-#X connect 21 1 22 0;
-#X connect 21 2 2 0;
-#X connect 22 0 2 0;
+#X connect 12 0 16 0;
+#X connect 13 0 5 0;
+#X connect 14 0 5 0;
+#X connect 17 0 23 0;
+#X connect 19 0 10 1;
+#X connect 21 0 5 0;
+#X connect 22 0 8 0;
+#X connect 23 0 9 0;
+#X connect 23 1 22 0;
+#X connect 23 2 24 0;
+#X connect 23 3 20 0;
+#X connect 23 4 13 0;
+#X connect 23 5 14 0;
+#X connect 23 6 21 0;
+#X connect 23 7 5 0;
+#X connect 24 0 26 0;
+#X connect 24 2 25 0;
 #X connect 25 0 18 0;
-#X connect 27 0 15 1;
+#X connect 26 0 18 0;
+#X connect 27 0 1 0;
+#X connect 27 1 2 0;

Modified: trunk/abstractions/#out.pd
==============================================================================
--- trunk/abstractions/#out.pd (original)
+++ trunk/abstractions/#out.pd Sat Mar 27 13:42:17 2010
@@ -1,11 +1,11 @@
-#N canvas 678 294 470 356 10;
+#N canvas 678 294 543 356 10;
 #X obj 99 10 inlet;
-#X obj 288 213 outlet;
+#X obj 288 253 outlet;
 #X obj 320 18 args *;
 #N canvas 116 23 450 300 \$0-placeholder 0;
-#X obj 0 0 r 1090-in;
-#X obj 0 40 s 1090-out;
-#X obj 0 20 gf.not_open;
+#X obj 0 0 r 1339-in;
+#X obj 0 40 s 1339-out;
+#X obj 0 20 #io.x11 out;
 #X connect 0 0 2 0;
 #X connect 2 0 1 0;
 #X restore 288 175 pd \$0-placeholder;
@@ -14,7 +14,7 @@
 #X obj 288 118 route bang;
 #X msg 288 137 bang;
 #X text 325 139 hack.;
-#X obj 99 59 route open close autoclose;
+#X obj 99 58 route open close autoclose;
 #X obj 252 118 t a a;
 #X obj 99 283 spigot;
 #X obj 25 216 route bang;
@@ -22,17 +22,20 @@
 #X obj 128 229 #finished;
 #X obj 128 184 route2 grid list float;
 #X msg 99 302 close;
-#X obj 320 60 gf.io_generate \$0 out;
 #X msg 150 78 bang;
-#X obj 320 79 s pd-\$0-placeholder;
+#X obj 382 87 s pd-\$0-placeholder;
+#X obj 382 68 gf.io_generate \$0 out;
+#X obj 382 49 t a;
+#X obj 288 213 route2 not_open;
+#X obj 330 253 outlet;
 #X connect 0 0 9 0;
-#X connect 2 0 17 0;
-#X connect 5 0 1 0;
+#X connect 2 0 20 0;
+#X connect 5 0 21 0;
 #X connect 6 0 7 0;
 #X connect 6 1 4 0;
 #X connect 7 0 4 0;
-#X connect 9 0 17 0;
-#X connect 9 1 18 0;
+#X connect 9 0 20 0;
+#X connect 9 1 17 0;
 #X connect 9 2 12 0;
 #X connect 9 3 10 0;
 #X connect 10 0 15 0;
@@ -47,5 +50,8 @@
 #X connect 15 1 14 0;
 #X connect 15 2 14 0;
 #X connect 16 0 9 0;
-#X connect 17 0 19 0;
-#X connect 18 0 17 0;
+#X connect 17 0 20 0;
+#X connect 19 0 18 0;
+#X connect 20 0 19 0;
+#X connect 21 0 22 0;
+#X connect 21 1 1 0;

Modified: trunk/doc/flow_classes/#in-help.pd
==============================================================================
--- trunk/doc/flow_classes/#in-help.pd (original)
+++ trunk/doc/flow_classes/#in-help.pd Sat Mar 27 13:42:17 2010
@@ -1,16 +1,13 @@
-#N canvas 679 0 632 642 10;
-#X obj 354 172 #out window;
+#N canvas 594 0 632 685 10;
 #X text 13 34 This object imports a grid \, usually an image \, video
 or live stream.;
 #X msg 362 126 open working.jpg;
 #X obj 354 106 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1
 -1;
 #X text 55 181 <--click here;
-#X text 232 759 "loop 0" - turns off the loop option. The video stops
+#X text 232 755 "loop 0" - turns off the loop option. The video stops
 once it reaches the end.;
-#X text 232 1060 Signals the end of a file and when a file is unreadable.
-;
-#X text 232 1038 Displays the resulting grid when connected to [#out
+#X text 232 1024 Displays the resulting grid when connected to [#out
 window];
 #N canvas 82 93 663 454 quicktime 0;
 #X text 9 9 The following messages can be used to set parameters for
@@ -75,7 +72,6 @@
 #X obj 17 120 metro 33.3;
 #X obj 356 234 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1
 -1;
-#X obj 356 280 #out window;
 #X obj 356 258 #in sewing.jpg;
 #X text 378 234 <--click here;
 #X text 183 947 For info about messages specifically for quickTime
@@ -148,41 +144,41 @@
 #X text 68 265 <-- sends a bang upon reaching;
 #X text 97 278 the end of the file;
 #X obj 17 305 #out window \, title video;
-#X text 232 724 "loop 1" - Restarts a video each time it reaches the
+#X text 232 720 "loop 1" - Restarts a video each time it reaches the
 end (default setting).;
 #X obj 41 248 route bang;
 #X msg 24 147 open violoncelle.mov;
 #X obj 0 0 doc_h;
-#X obj 3 450 doc_i 1;
-#X obj 3 1008 doc_o 2;
-#X obj 14 480 doc_ii 0;
-#X obj 14 1038 doc_oo 0;
-#X obj 14 1060 doc_oo 1;
+#X obj 3 446 doc_i 1;
+#X obj 3 994 doc_o 2;
+#X obj 14 476 doc_ii 0;
+#X obj 14 1024 doc_oo 0;
+#X obj 14 1046 doc_oo 1;
 #X obj 3 332 doc_c 1..2;
-#X text 164 389 auto-open with auto-detect of the format-handler;
+#X text 165 389 auto-open with auto-detect of the format-handler;
 #X text 207 409 auto-open with manual choice of the format-handler
 ;
-#X obj 97 794 doc_m i0 open;
-#X obj 97 851 doc_m i0 set;
-#X obj 97 667 doc_m i0 close;
-#X obj 97 829 doc_m i0 rewind;
-#X obj 97 724 doc_m i0 loop;
-#X obj 97 645 doc_m i0 float int;
-#X obj 97 1038 doc_m o0 grid;
-#X obj 97 1060 doc_m o1 bang;
-#X obj 3 1127 doc_also;
-#X obj 103 1127 #out;
-#X obj 32 370 #in;
-#X obj 33 391 #in filename.suffix;
+#X obj 97 790 doc_m i0 open;
+#X obj 97 847 doc_m i0 set;
+#X obj 97 663 doc_m i0 close;
+#X obj 97 825 doc_m i0 rewind;
+#X obj 97 720 doc_m i0 loop;
+#X obj 97 641 doc_m i0 float int;
+#X obj 97 1024 doc_m o0 grid;
+#X obj 97 1046 doc_m o1 bang;
+#X obj 3 1226 doc_also;
+#X obj 103 1226 #out;
+#X obj 34 371 #in;
+#X obj 34 391 #in filename.suffix;
 #X obj 34 411 #in handler filename.suffix;
-#X text 64 369 nothing opened \, you have to open by yourself;
-#X text 232 794 \$1=filename. sends it as a resource to [#in]. For
+#X text 66 370 nothing opened \, you have to open by yourself;
+#X text 232 790 \$1=filename. sends it as a resource to [#in]. For
 example: "open sewing.jpg".;
-#X obj 97 480 doc_m i0 bang;
-#X obj 97 1082 doc_m o1 float int;
-#X text 232 1082 frame number of the frame currently being viewed.
+#X obj 97 476 doc_m i0 bang;
+#X obj 97 1081 doc_m o1 float int;
+#X text 232 1081 frame number of the frame currently being viewed.
 Applies to formats that have frame numbers \, i.e. video.;
-#X text 232 480 A bang reads a frame and sends it through the outlet.
+#X text 232 476 A bang reads a frame and sends it through the outlet.
 Since frames from videos and live streams are read as a series of individual
 grids \, successive bangs advance through the frames. A bang reads
 a frame and sends it through the outlet. Since frames from videos and
@@ -193,44 +189,58 @@
 are several pictures in the same file \, but if the end of file is
 reached instead \, it will rewind and send the first picture again.
 ;
-#X obj 0 1147 doc_f;
-#X text 232 667 Closes the video input device. Only necessary when
+#X obj 0 1246 doc_f;
+#X text 232 663 Closes the video input device. Only necessary when
 you are using a live capture device.;
-#X text 232 829 Will rewind video to the beginning.;
-#X text 232 851 select the video frame numbered \$1 \, where 0 is the
+#X text 232 825 Will rewind video to the beginning.;
+#X text 232 847 select the video frame numbered \$1 \, where 0 is the
 first frame. A bang must be sent to [#in] in order to display the frame.
 this only works with video file formats.;
-#X text 232 645 same as set \$1 \, bang;
-#X obj 97 702 doc_m i0 load;
-#X text 232 702 shortcut for open \$1 \, bang \, close;
-#X connect 2 0 9 0;
-#X connect 3 0 9 0;
-#X connect 9 0 0 0;
-#X connect 10 0 17 0;
-#X connect 11 0 17 0;
-#X connect 12 0 17 0;
-#X connect 13 0 17 0;
-#X connect 15 0 17 0;
-#X connect 17 0 36 0;
-#X connect 17 1 14 0;
-#X connect 17 1 38 0;
+#X text 232 641 same as set \$1 \, bang;
+#X obj 97 698 doc_m i0 load;
+#X text 232 698 shortcut for open \$1 \, bang \, close;
+#X obj 97 1116 doc_m o1 not_open;
+#X text 232 1046 Signals that the requested operation cannot be performed
+because the end of the file was reached.;
+#X text 232 1116 Signals that the requested operation cannot be performed
+because [#in] is in closed mode. This could mean a «close» message
+was previously sent \, or no «open» (or equivalent) was ever done
+\, or the file was not found \, or the file was read-protected \, or
+the device is locked by another object or application that opened it
+(busy) \, or any other reason.;
+#X obj 139 1226 #camera;
+#X obj 354 172 #out window \, title working;
+#X obj 356 280 #out window \, title sewing;
+#X connect 1 0 7 0;
+#X connect 2 0 7 0;
+#X connect 7 0 76 0;
+#X connect 8 0 15 0;
+#X connect 9 0 15 0;
+#X connect 10 0 15 0;
+#X connect 11 0 15 0;
+#X connect 13 0 15 0;
+#X connect 15 0 33 0;
+#X connect 15 1 12 0;
+#X connect 15 1 35 0;
+#X connect 17 0 18 0;
+#X connect 18 0 15 0;
 #X connect 19 0 20 0;
-#X connect 20 0 17 0;
-#X connect 21 0 23 0;
-#X connect 23 0 22 0;
-#X connect 32 0 17 0;
-#X connect 38 0 16 0;
-#X connect 39 0 17 0;
-#X connect 49 1 63 0;
-#X connect 50 1 71 0;
+#X connect 20 0 77 0;
+#X connect 29 0 15 0;
+#X connect 35 0 14 0;
+#X connect 36 0 15 0;
+#X connect 46 1 60 0;
+#X connect 47 1 68 0;
+#X connect 48 1 66 0;
+#X connect 49 1 67 0;
+#X connect 50 1 34 0;
+#X connect 50 1 4 0;
 #X connect 51 1 69 0;
-#X connect 52 1 70 0;
-#X connect 53 1 37 0;
-#X connect 53 1 5 0;
-#X connect 54 1 72 0;
-#X connect 55 1 7 0;
-#X connect 56 1 6 0;
-#X connect 57 1 58 0;
-#X connect 64 1 67 0;
-#X connect 65 1 66 0;
-#X connect 73 1 74 0;
+#X connect 52 1 5 0;
+#X connect 53 1 73 0;
+#X connect 54 1 55 0;
+#X connect 54 1 75 0;
+#X connect 61 1 64 0;
+#X connect 62 1 63 0;
+#X connect 70 1 71 0;
+#X connect 72 1 74 0;

Modified: trunk/doc/flow_classes/#out-help.pd
==============================================================================
--- trunk/doc/flow_classes/#out-help.pd (original)
+++ trunk/doc/flow_classes/#out-help.pd Sat Mar 27 13:42:17 2010
@@ -1,4 +1,4 @@
-#N canvas 674 0 632 642 10;
+#N canvas 594 0 632 715 10;
 #X obj 15 325 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
 -1;
 #X text 10 71 Displaying a grid:;
@@ -19,22 +19,19 @@
 #X obj 15 302 #out window \, title example;
 #X obj 127 100 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1
 -1;
-#X obj 133 796 #record;
-#X msg 366 228 open somefile.jpg;
+#X obj 133 886 #record;
 #X text 232 654 "open filename.format" (ex: "open somefile.jpg") sets
 the filename to write to.;
 #X obj 351 96 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1
 -1;
 #X obj 351 190 #in;
-#X obj 351 266 #out;
 #X msg 127 262 hidecursor;
 #X text 196 261 <-- linux only;
 #X text 232 632 "hidecursor" (linux only) hides the mouse cursor.;
 #X obj 0 0 doc_h;
 #X obj 3 371 doc_c n;
-#X obj 3 796 doc_also;
-#X obj 3 734 doc_o 1;
-#N canvas 140 137 570 615 More 1;
+#X obj 3 886 doc_also;
+#N canvas 140 70 570 615 More 0;
 #X text 203 143 open default display for screenshot;
 #X msg 82 197 open videodev /dev/video0;
 #X text 277 196 open a video device;
@@ -95,7 +92,7 @@
 #X obj 97 597 doc_m i0 close;
 #X obj 97 632 doc_m i0 hidecursor;
 #X obj 97 689 doc_m i0 rewind;
-#X obj 103 796 #in;
+#X obj 103 886 #in;
 #X text 188 426 auto-open with auto-detect of the format-handler;
 #X text 226 451 auto-open with manual choice of the format-handler
 ;
@@ -104,7 +101,7 @@
 #X obj 46 428 #out filename.suffix;
 #X obj 46 449 #out handler filename.suffix;
 #X obj 97 553 doc_m i0 autoclose;
-#X obj 0 816 doc_f;
+#X obj 0 906 doc_f;
 #X obj 97 764 doc_m o0 bang;
 #X msg 15 117 load working.jpg;
 #X msg 127 117 load sewing.jpg;
@@ -114,26 +111,38 @@
 #X text 232 575 "autoclose 0": doesn't.;
 #X text 232 518 write one frame (or in the case of [#out grid] \, one
 grid of any kind).;
-#X connect 4 0 45 0;
+#X obj 351 266 #out;
+#X msg 365 235 open somefile.jpg \, autoclose;
+#X obj 97 789 doc_m o1 not_open;
+#X obj 3 734 doc_o 2;
+#X obj 14 789 doc_oo 1;
+#X text 232 789 Signals that the requested operation cannot be performed
+because [#in] is in closed mode. This could mean a "close" message
+was previously sent \, or no "open" (or equivalent) was ever done \,
+or the file was not found \, or the file was read-protected \, or the
+device is locked by another object or application that opened it (busy)
+\, or any other reason.;
+#X connect 4 0 42 0;
 #X connect 5 0 11 0;
 #X connect 6 0 11 0;
 #X connect 7 0 11 0;
 #X connect 11 0 0 0;
-#X connect 12 0 46 0;
-#X connect 14 0 18 0;
-#X connect 16 0 47 0;
-#X connect 17 0 18 0;
-#X connect 19 0 11 0;
-#X connect 24 1 35 0;
-#X connect 24 1 13 0;
-#X connect 30 1 50 0;
-#X connect 31 1 15 0;
-#X connect 32 1 8 0;
-#X connect 33 1 21 0;
-#X connect 34 1 3 0;
-#X connect 42 1 48 0;
-#X connect 42 1 49 0;
-#X connect 44 1 9 0;
-#X connect 45 0 5 0;
-#X connect 46 0 5 0;
-#X connect 47 0 17 0;
+#X connect 12 0 43 0;
+#X connect 15 0 44 0;
+#X connect 16 0 48 0;
+#X connect 17 0 11 0;
+#X connect 22 1 32 0;
+#X connect 22 1 13 0;
+#X connect 27 1 47 0;
+#X connect 28 1 14 0;
+#X connect 29 1 8 0;
+#X connect 30 1 19 0;
+#X connect 31 1 3 0;
+#X connect 39 1 45 0;
+#X connect 39 1 46 0;
+#X connect 41 1 9 0;
+#X connect 42 0 5 0;
+#X connect 43 0 5 0;
+#X connect 44 0 16 0;
+#X connect 49 0 48 0;
+#X connect 50 1 53 0;



More information about the Gridflow-cvs mailing list