[PD] $0-array

Krzysztof Czaja czaja at chopin.edu.pl
Sun Feb 3 14:36:10 CET 2002


hi,

another solution for d would be using the (experimental?)
`graph on parent' property of [table]'s window -- if only
properties of [table]s were persistent...

Well, after all there are so many wishes for array (and table)
features... having dollars survive saving would be nice too,
of course.

Another wish would be to apply this simple patch to g_canvas.c
in test8 (it is needed anyway!):

@@ -1043,11 +1043,13 @@
     }
     if (f <= 1)
     	f = 100;
-    SETFLOAT(a, 600);
-    SETFLOAT(a+1, 400);
-    SETSYMBOL(a+2, s);
-    SETFLOAT(a+3, 0);
-    x = canvas_new(0, 0, 4, a);
+    SETFLOAT(a, 0);
+    SETFLOAT(a+1, 0);
+    SETFLOAT(a+2, 600);
+    SETFLOAT(a+3, 400);
+    SETSYMBOL(a+4, s);
+    SETFLOAT(a+5, 0);
+    x = canvas_new(0, 0, 6, a);

which would allow using a temporary hack in d's case:

#X obj 20 200 table \$0-t;
#X obj 20 20 loadbang;
#X obj 20 60 symbol \$0-t;
#X obj 20 100 makefilename pd-%s;
#X msg 20 140 \; \$1 coords 0 0 1 1 500 500 1;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;

But then an attempt to open array's window would crash Pd
-- yet another wish...

Krzysztof

Miller Puckette wrote:
> 
> I'll put on my do-list to see how Thomas does this for the IEM guis.  He
> seems to have invented some hack for it...  if I can understand it I'll
> stick it in the array code too...
...
> > > Am Freitag,  1. Februar 2002 14:53 schrieb d:
...
> > > > is it possible to give a unique $0-name to an array?
> > > > $1-xyz or table $0-xyz workarounds won't help me because the array should
> > > > be visible on my topmost patch.



More information about the Pd-list mailing list