[Gridflow-cvs] [svn] commit: r3857 - in /trunk/doc: index.pd make_index.tcl

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Wed Jun 11 15:06:13 EDT 2008


Author: matju
Date: Wed Jun 11 15:06:12 2008
New Revision: 3857

Log:
add some defaults for some classes that require args

Modified:
    trunk/doc/index.pd
    trunk/doc/make_index.tcl

Modified: trunk/doc/index.pd
==============================================================================
--- trunk/doc/index.pd (original)
+++ trunk/doc/index.pd Wed Jun 11 15:06:12 2008
@@ -1,285 +1,285 @@
 #N canvas 0 0 640 480 10 ;
-#X obj 159 50 #;
+#X obj 157 50 # +;
 #X text 200 50 plain numeric operators on grids: + - * / etc;
-#X obj -9 82 #apply_colormap_channelwise;
+#X obj -11 82 #apply_colormap_channelwise;
 #X text 200 82 apply color correction tables separately on each channel;
-#X obj 61 114 #background_model;
+#X obj 59 114 #background_model;
 #X text 200 114 ?;
-#X obj 131 146 #border;
+#X obj 129 146 #border;
 #X text 200 146 add padding on sides of a grid;
-#X obj 131 178 #camera;
+#X obj 129 178 #camera;
 #X text 200 178 control panel for opening cameras;
-#X obj 145 210 #cast;
+#X obj 129 210 #cast i;
 #X text 200 210 convert grid from one number type to another;
-#X obj 117 242 #centroid;
+#X obj 115 242 #centroid;
 #X text 200 242 find centroid (weighted average) of the coordinates of a grid;
-#X obj 131 274 #change;
+#X obj 129 274 #change;
 #X text 200 274 send grid only if different from previous grid;
-#X obj 117 306 #checkers;
+#X obj 115 306 #checkers;
 #X text 200 306 make image of chequered background in two tones of grey;
-#X obj 145 338 #clip;
+#X obj 143 338 #clip;
 #X text 200 338 min and max;
-#X obj 9 370 #color;
+#X obj 24 370 #color;
 #X text 200 370 GUI for selecting a colour;
-#X obj 117 442 #contrast;
+#X obj 115 442 #contrast;
 #X text 200 442 ?;
-#X obj 117 474 #convolve;
+#X obj 115 474 #convolve;
 #X text 200 474 compute convolution product of a grid (blur and edge-detection);
-#X obj 152 506 #dim;
+#X obj 150 506 #dim;
 #X text 200 506 get the size (dimensions) of a grid;
-#X obj 89 538 #downscale_by;
+#X obj 87 538 #downscale_by;
 #X text 200 538 reduce the size of an image by a whole factor;
-#X obj 103 570 #draw_image;
+#X obj 101 570 #draw_image;
 #X text 200 570 picture-in-picture;
-#X obj 96 602 #draw_points;
+#X obj 94 602 #draw_points;
 #X text 200 602 (future use);
-#X obj 89 634 #draw_polygon;
+#X obj 87 634 #draw_polygon;
 #X text 200 634 draw polygon in an image;
-#X obj 110 666 #draw_rect;
+#X obj 108 666 #draw_rect;
 #X text 200 666 draw a rectangle in an image;
-#X obj 89 698 #edit_polygon;
+#X obj 87 698 #edit_polygon;
 #X text 200 698 draw a polygon in an image and react to mouse events;
-#X obj 145 730 #fade;
+#X obj 143 730 #fade;
 #X text 200 730 fade in exponential-decay fashion (linear recurrence);
-#X obj 117 762 #fade_lin;
+#X obj 115 762 #fade_lin;
 #X text 200 762 fade in piecewise-linear fashion;
-#X obj 117 794 #fastblur;
+#X obj 115 794 #fastblur;
 #X text 200 794 speedy shortcut for rectangular blur;
-#X obj 152 826 #fft;
+#X obj 150 826 #fft;
 #X text 200 826 compute forward or inverse one-or-two-dimensional complex FFT of a grid;
-#X obj 117 858 #finished;
+#X obj 115 858 #finished;
 #X text 200 858 bang when grid transmission has ended;
-#X obj 145 890 #fold;
+#X obj 129 890 #fold +;
 #X text 200 890 compute the sum of each row \,  product of each row, and other similar operations;
-#X obj 152 922 #for;
+#X obj 108 922 #for 0 4 1;
 #X text 200 922 make a grid from all numbers or coordinates in a certain range;
-#X obj 117 954 #from_pix;
+#X obj 115 954 #from_pix;
 #X text 200 954 convert pix (GEM) to grid;
-#X obj 138 986 #gamma;
+#X obj 136 986 #gamma;
 #X text 200 986 apply gamma correction;
-#X obj 138 1018 #grade;
+#X obj 136 1018 #grade;
 #X text 200 1018 make an index of the sorting of a grid;
-#X obj 61 1050 #greyscale_to_rgb;
+#X obj 59 1050 #greyscale_to_rgb;
 #X text 200 1050 convert greyscale to RGB;
-#X obj 117 1082 #hueshift;
+#X obj 115 1082 #hueshift;
 #X text 200 1082 apply hue shift by rotating the color wheel;
-#X obj 131 1114 #import;
+#X obj 129 1114 #import;
 #X text 200 1114 convert float \,  list, or symbol ASCII codes, to a grid;
-#X obj 103 1146 #import_pix;
+#X obj 101 1146 #import_pix;
 #X text 200 1146 old name of #from_pix;
-#X obj 159 1178 #in;
+#X obj 157 1178 #in;
 #X text 200 1178 open file or device for reading or download;
-#X obj 138 1210 #inner;
+#X obj 136 1210 #inner;
 #X text 200 1210 scalar ("dot") product \,  matrix product, tensor contraction, image channel remapping, etc.;
-#X obj 117 1242 #io.aalib;
+#X obj 115 1242 #io.aalib;
 #X text 200 1242 open an aalib window;
-#X obj 110 1274 #io.dc1394;
+#X obj 108 1274 #io.dc1394;
 #X text 200 1274 open a faiawaia "DC" camera (not DV) using a Linux-compatible OS;
-#X obj 124 1306 #io.grid;
+#X obj 122 1306 #io.grid;
 #X text 200 1306 read or write a .grid file (GridFlow storage format);
-#X obj 124 1338 #io.jpeg;
+#X obj 122 1338 #io.jpeg;
 #X text 200 1338 read or write a .jpeg file;
-#X obj 124 1370 #io.mpeg;
+#X obj 122 1370 #io.mpeg;
 #X text 200 1370 read a .mpeg video file;
-#X obj 131 1402 #io.png;
+#X obj 129 1402 #io.png;
 #X text 200 1402 read a .png image file;
-#X obj 131 1434 #io.ppm;
+#X obj 129 1434 #io.ppm;
 #X text 200 1434 read or write a .pbm or .pgm or .ppm image file;
-#X obj 89 1466 #io.quicktime;
+#X obj 87 1466 #io.quicktime;
 #X text 200 1466 read a .mov video file (or perhaps .avi);
-#X obj 131 1498 #io.sdl;
+#X obj 129 1498 #io.sdl;
 #X text 200 1498 open a SDL window;
-#X obj 96 1530 #io.videodev;
+#X obj 94 1530 #io.videodev;
 #X text 200 1530 open a V4L1 device (Linux interface for video cameras and video digitisers);
-#X obj 131 1562 #io.x11;
+#X obj 129 1562 #io.x11;
 #X text 200 1562 open a X11 window;
-#X obj 117 1594 #labeling;
+#X obj 115 1594 #labeling;
 #X text 200 1594 tag connected pixels with region numbers in a two-tone single-channel image;
-#X obj 138 1626 #layer;
+#X obj 136 1626 #layer;
 #X text 200 1626 layer two same-sized images;
-#X obj 68 1658 #line_to_polygon;
+#X obj 66 1658 #line_to_polygon;
 #X text 200 1658 convert line (as point pair) to polygon (rotated rectangle);
-#X obj 103 1690 #make_cross;
+#X obj 101 1690 #make_cross;
 #X text 200 1690 make cross-shaped polygon;
-#X obj 131 1722 #moment;
+#X obj 129 1722 #moment;
 #X text 200 1722 find 1st or 2nd order moment (weighted average or variance) of the coordinates of a grid;
-#X obj 89 1754 #moment_polar;
+#X obj 87 1754 #moment_polar;
 #X text 200 1754 convert covariance matrix to the longest and shortest radius of an ellipse and a rotation angle;
-#X obj 61 1786 #motion_detection;
+#X obj 59 1786 #motion_detection;
 #X text 200 1786 ...;
-#X obj 138 1818 #mouse;
+#X obj 136 1818 #mouse;
 #X text 200 1818 converts mouse events to reports of clicks \,  drags, unclicks, motions, and separate buttons and wheel;
-#X obj 68 1850 #noise_gate_yuvs;
+#X obj 66 1850 #noise_gate_yuvs;
 #X text 200 1850 replaces dark pixels by black pixels in signed YUV images;
-#X obj 152 1882 #out;
+#X obj 150 1882 #out;
 #X text 200 1882 open file or device for writing or upload;
-#X obj 138 1914 #outer;
+#X obj 122 1914 #outer +;
 #X text 200 1914 apply numeric operator on all possible combinations of elements of one grid with elements of another;
-#X obj 145 1946 #pack;
+#X obj 143 1946 #pack;
 #X text 200 1946 combine floats on separate inlets to make a grid;
-#X obj 96 1978 #perspective;
+#X obj 94 1978 #perspective;
 #X text 200 1978 divide each point by its depth;
-#X obj 89 2010 #polygon_area;
+#X obj 87 2010 #polygon_area;
 #X text 200 2010 find area of a polygon in square pixels;
-#X obj 47 2042 #polygon_comparator;
+#X obj 45 2042 #polygon_comparator;
 #X text 200 2042 find similarity between two polygons independently of rotation \,  by radial maps and FFT;
-#X obj 54 2074 #polygon_each_edge;
+#X obj 52 2074 #polygon_each_edge;
 #X text 200 2074 convert a polygon to a sequence of overlapping 2-sided polygons representing edges;
-#X obj 75 2106 #polygon_moment;
+#X obj 73 2106 #polygon_moment;
 #X text 200 2106 find average of all points inside of a polygon;
-#X obj 54 2138 #polygon_perimetre;
+#X obj 52 2138 #polygon_perimetre;
 #X text 200 2138 find perimetre of a polygon in pixels (euclidian);
-#X obj 47 2170 #polygon_radial_map;
+#X obj 45 2170 #polygon_radial_map;
 #X text 200 2170 find radius of a polygon from a given origin \,  sampled at equally spaced angles;
-#X obj 103 2202 #polygonize;
+#X obj 101 2202 #polygonize;
 #X text 200 2202 (future use);
-#X obj 110 2234 #posterize;
+#X obj 108 2234 #posterize;
 #X text 200 2234 quantise pixel values;
-#X obj 138 2266 #print;
+#X obj 136 2266 #print;
 #X text 200 2266 print to console;
-#X obj 138 2298 #ravel;
+#X obj 136 2298 #ravel;
 #X text 200 2298 do #redim so that a grid keeps same number of elements but just one dimension;
-#X obj 131 2330 #record;
+#X obj 129 2330 #record;
 #X text 200 2330 ...;
-#X obj 138 2362 #redim;
+#X obj 115 2362 #redim ();
 #X text 200 2362 change the size of a grid by restreaming contents into a new shape;
-#X obj 96 2394 #remap_image;
+#X obj 94 2394 #remap_image;
 #X text 200 2394 apply object chain on pixel positions to make new image from chosen pixels of the input image;
-#X obj 124 2426 #reverse;
+#X obj 122 2426 #reverse;
 #X text 200 2426 mirror image of a grid along a dimension;
-#X obj 61 2458 #rgb_to_greyscale;
+#X obj 59 2458 #rgb_to_greyscale;
 #X text 200 2458 convert RGB to greyscale;
-#X obj 96 2490 #rgb_to_rgba;
+#X obj 94 2490 #rgb_to_rgba;
 #X text 200 2490 convert RGB to RGBA (but setting alpha to 0);
-#X obj 103 2522 #rgb_to_yuv;
+#X obj 101 2522 #rgb_to_yuv;
 #X text 200 2522 convert RGB to unsigned YUV;
-#X obj 96 2554 #rgba_to_rgb;
+#X obj 94 2554 #rgba_to_rgb;
 #X text 200 2554 convert RGBA to RGB;
-#X obj 131 2586 #rotate;
+#X obj 129 2586 #rotate;
 #X text 200 2586 rotate points through two axes (or rotate pixels as points in a colorspace);
-#X obj 82 2618 #rotatificator;
+#X obj 80 2618 #rotatificator;
 #X text 200 2618 make rotation matrix for any two dimensions chosen from manyou;
-#X obj 103 2650 #saturation;
+#X obj 101 2650 #saturation;
 #X text 200 2650 multiply chroma by some value;
-#X obj 117 2682 #scale_by;
+#X obj 115 2682 #scale_by;
 #X text 200 2682 reduce the size of an image by a whole factor;
-#X obj 117 2714 #scale_to;
+#X obj 115 2714 #scale_to;
 #X text 200 2714 scale an image from one size to any other size by deleting or duplicating rows and columns;
-#X obj 145 2746 #scan;
+#X obj 129 2746 #scan +;
 #X text 200 2746 compute the cumulative sums of each row \,  and other similar operations;
-#X obj 117 2778 #seq_fold;
+#X obj 115 2778 #seq_fold;
 #X text 200 2778 cascade the use of an object on all elements of an incoming grid message sequence;
-#X obj 138 2810 #slice;
+#X obj 136 2810 #slice;
 #X text 200 2810 crop an image using a start point (top left) and end point (bottom right);
-#X obj 117 2842 #solarize;
+#X obj 115 2842 #solarize;
 #X text 200 2842 like pingpong but on all pixel values of a grid;
-#X obj 145 2874 #sort;
+#X obj 143 2874 #sort;
 #X text 200 2874 sort each row of a grid;
-#X obj 131 2906 #spread;
+#X obj 129 2906 #spread;
 #X text 200 2906 add noise to each vector (point or pixel);
-#X obj 138 2938 #store;
+#X obj 136 2938 #store;
 #X text 200 2938 store image in RAM \,  in-place picture-in-picture, and make lookups in various ways;
-#X obj 145 2970 #swap;
+#X obj 143 2970 #swap;
 #X text 200 2970 like [swap] for grids;
-#X obj 159 3002 #t;
+#X obj 157 3002 #t;
 #X text 200 3002 like [t a a] for grids;
-#X obj 82 3034 #text_to_image;
+#X obj 80 3034 #text_to_image;
 #X text 200 3034 use a fixed-width font grid to make a tiling of characters as specified by a text string;
-#X obj 117 3066 #to_float;
+#X obj 115 3066 #to_float;
 #X text 200 3066 convert grid to sequence of floats;
-#X obj 124 3098 #to_list;
+#X obj 122 3098 #to_list;
 #X text 200 3098 convert grid to list;
-#X obj 103 3130 #to_literal;
+#X obj 101 3130 #to_literal;
 #X text 200 3130 convert grid to grid-literal (list with a # sign);
-#X obj 131 3162 #to_pix;
+#X obj 129 3162 #to_pix;
 #X text 200 3162 convert grid to pix (GEM);
-#X obj 110 3194 #to_symbol;
+#X obj 108 3194 #to_symbol;
 #X text 200 3194 convert grid of ASCII codes to symbol;
-#X obj 110 3226 #transpose;
+#X obj 108 3226 #transpose;
 #X text 200 3226 swap two dimensions out of any \,  in a grid;
-#X obj 145 3258 #type;
+#X obj 143 3258 #type;
 #X text 200 3258 get a symbol representing the number type of a grid;
-#X obj 131 3290 #unpack;
+#X obj 129 3290 #unpack;
 #X text 200 3290 split a grid into floats on separate outlets;
-#X obj 103 3322 #yuv_to_rgb;
+#X obj 101 3322 #yuv_to_rgb;
 #X text 200 3322 convert unsigned YUV to RGB;
-#X obj 145 3354 @join;
+#X obj 143 3354 @join;
 #X text 200 3354 join two grids together along any dimension;
-#X obj 152 3386 args;
+#X obj 150 3386 args;
 #X text 200 3386 pick up the arguments of an abstraction instance \,  including nested lists and init-messages;
-#X obj 145 3418 ascii;
+#X obj 143 3418 ascii;
 #X text 200 3418 ?;
-#X obj 96 3450 class_exists;
+#X obj 94 3450 class_exists;
 #X text 200 3450 figure out whether a class has been loaded by pd;
-#X obj 117 3482 condition;
+#X obj 115 3482 condition;
 #X text 200 3482 ?;
-#X obj 145 3514 count;
+#X obj 143 3514 count;
 #X text 200 3514 ?;
-#X obj 138 3546 cv.Add;
+#X obj 136 3546 cv.Add;
 #X text 200 3546 OpenCV addition;
-#X obj 138 3578 cv.Div;
+#X obj 136 3578 cv.Div;
 #X text 200 3578 OpenCV division;
-#X obj 40 3610 cv.HaarDetectObjects;
+#X obj 38 3610 cv.HaarDetectObjects;
 #X text 200 3610 OpenCV (future use);
-#X obj 117 3642 cv.Kalman;
+#X obj 115 3642 cv.Kalman;
 #X text 200 3642 OpenCV (future use);
-#X obj 138 3674 cv.Mul;
+#X obj 136 3674 cv.Mul;
 #X text 200 3674 OpenCV multiplication;
-#X obj 138 3706 cv.Sub;
+#X obj 136 3706 cv.Sub;
 #X text 200 3706 OpenCV subtraction;
-#X obj 131 3738 display;
+#X obj 129 3738 display;
 #X text 200 3738 print message or grid inside of the patch;
-#X obj 159 3770 for;
+#X obj 157 3770 for;
 #X text 200 3770 make sequence of float messages for each number in a range with specified stepping;
-#X obj 131 3802 foreach;
+#X obj 129 3802 foreach;
 #X text 200 3802 convert a list to a sequence of atom messages;
-#X obj 159 3834 fps;
+#X obj 157 3834 fps;
 #X text 200 3834 measure frames per second and make statistics;
-#X obj 124 3866 gf.error;
+#X obj 122 3866 gf.error;
 #X text 200 3866 emit error message from the perspective of the current abstraction instance in its parent patch;
-#X obj 82 3898 gf.io_generate;
+#X obj 80 3898 gf.io_generate;
 #X text 200 3898 for internal use by #in and #out;
-#X obj 68 3930 gf.suffix_lookup;
+#X obj 66 3930 gf.suffix_lookup;
 #X text 200 3930 find the objectclass corresponding ;
-#X obj 152 3962 inv*;
+#X obj 150 3962 inv*;
 #X text 200 3962 swapped /;
-#X obj 152 3994 inv+;
+#X obj 150 3994 inv+;
 #X text 200 3994 swapped -;
-#X obj 124 4026 listfind;
+#X obj 122 4026 listfind;
 #X text 200 4026 find index of an element in a list;
-#X obj 103 4058 listflatten;
+#X obj 101 4058 listflatten;
 #X text 200 4058 (to be reimplemented);
-#X obj 124 4090 listread;
+#X obj 122 4090 listread;
 #X text 200 4090 find element at an index in a list;
-#X obj 103 4122 listreverse;
+#X obj 101 4122 listreverse;
 #X text 200 4122 mirror image of a list;
-#X obj 131 4154 oneshot;
+#X obj 129 4154 oneshot;
 #X text 200 4154 spigot that shuts itself down after each message;
-#X obj 89 4186 parallel_port;
+#X obj 87 4186 parallel_port;
 #X text 200 4186 send to and receive from a DB25 parallel port;
-#X obj 124 4218 pingpong;
+#X obj 122 4218 pingpong;
 #X text 200 4218 turns value of a counter into a zigzag between 0 and a given value;
-#X obj 75 4250 plotter_control;
+#X obj 73 4250 plotter_control;
 #X text 200 4250 make HPGL commands;
-#X obj 145 4282 range;
+#X obj 143 4282 range;
 #X text 200 4282 multiple moses in cascade;
-#X obj 124 4314 receives;
+#X obj 94 4314 receives \$0-;
 #X text 200 4314 multiple receives with common outlet and other outlet telling the name of intended destination;
-#X obj 138 4346 route2;
+#X obj 136 4346 route2;
 #X text 200 4346 route messages but keep them intact (does not remove selector);
-#X obj 138 4378 send39;
+#X obj 45 4378 send39 \$0-patchname;
 #X text 200 4378 backward-compatibility crutch for dynamic patching in pd 0.39;
-#X obj 124 4410 seq_fold;
+#X obj 122 4410 seq_fold;
 #X text 200 4410 cascade the use of an object on all elements of an incoming message sequence;
-#X obj 145 4442 shunt;
+#X obj 143 4442 shunt;
 #X text 200 4442 demultiplexer: send input to separately specified outlet;
-#X obj 110 4474 systemtime;
+#X obj 108 4474 systemtime;
 #X text 200 4474 time spent by process in kernel mode \,  as measured by the OS;
-#X obj 131 4506 tsctime;
+#X obj 129 4506 tsctime;
 #X text 200 4506 high-resolution real time \,  as measured by the CPU;
-#X obj 117 4538 unix_time;
+#X obj 115 4538 unix_time;
 #X text 200 4538 real time as measured by the OS \,  including date;
-#X obj 124 4570 usertime;
+#X obj 122 4570 usertime;
 #X text 200 4570 time spent by process in non-kernel mode \,  as measured by the OS;
-#X obj 145 4602 var.#;
+#X obj 143 4602 var.#;
 #X text 200 4602 like [f] for grids;

Modified: trunk/doc/make_index.tcl
==============================================================================
--- trunk/doc/make_index.tcl (original)
+++ trunk/doc/make_index.tcl Wed Jun 11 15:06:12 2008
@@ -3,14 +3,25 @@
 puts "#N canvas 0 0 640 480 10 ;"
 set y 50
 foreach k [lsort [array names ::say *]] {
+	set v $::say($k)
+	if {$k == "#"} {set k "# +"}
+	if {$k == "#fold"} {set k "#fold +"}
+	if {$k == "#scan"} {set k "#scan +"}
+	if {$k == "#outer"} {set k "#outer +"}
+	if {$k == "#cast"} {set k "#cast i"}
+	if {$k == "#for"} {set k "#for 0 4 1"}
+	if {$k == "#redim"} {set k "#redim ()"}
+	if {$k == "receives"} {set k "receives \$0-"}
+	if {$k == "send39"} {set k "send39 \$0-patchname"}
 	set w [string length $k]
+	regsub "\\$" $k "\\$" k
 	if {$w<3} {set w 3}
-	set w [expr {$w*7}]
-	if {$k == "#color"} {set w 171}
+	set w [expr {$w*7+2}]
+	if {$k == "#color"} {set w 156}
 	puts "#X obj [expr 180-$w] $y $k;"
-	set v $::say($k)
 	regsub "," $v " \\, " v
 	regsub ";" $v " \\; " v
+	regsub "\\$" $v "\\$" v
 	puts "#X text 200 $y $v;"
 	if {$k == "#color"} {incr y 40}
 	incr y 32



More information about the Gridflow-cvs mailing list