Hi
I have to use a bunch (actually a whole lot) of arrays. Instead of manually making an 'array nest' I would like to autocreate the arrays when I need them.
I can create graphs but can't seem to get the syntax right for creating arrays.
Is there some reference somewhere that tells me how? I looked though Damien Henry's fine examples but they hold no information about arrays (although it is mentioned in the intro.txt)
TIA Soeren
hi,
say you would like to put in a top-left corner of a subpatch window w an array t in a graph g, having the same values for size, number of elements, etc, as if created from the menu. Try then something like
; pd-w graph g 0 -1 99 1 0 0 200 140; pd-g array t 100 float 1
The syntax is: pd-<graphname> array <arrayname> <nelements> <type> <saveflag>
Krzysztof
Søren Bovbjerg wrote: ...
I have to use a bunch (actually a whole lot) of arrays. Instead of manually making an 'array nest' I would like to autocreate the arrays when I need them.
thanks krzystof for that hint. still, some further questions, is it also possible to locate the graph somewhere in the patch other than 0/0? and why is it not possible to cut and paste after builiding (actually i think i will not need this feature, just wondered). marius.
----- Original Message ----- From: "Krzysztof Czaja" czaja@chopin.edu.pl To: "Søren Bovbjerg" sb@cvmt.dk Cc: pd-list@iem.kug.ac.at Sent: Friday, September 13, 2002 5:12 PM Subject: Re: [PD] Dynamic creation and destruction of arrays
hi,
say you would like to put in a top-left corner of a subpatch window w an array t in a graph g, having the same values for size, number of elements, etc, as if created from the menu. Try then something like
; pd-w graph g 0 -1 99 1 0 0 200 140; pd-g array t 100 float 1
The syntax is: pd-<graphname> array <arrayname> <nelements> <type> <saveflag>
Krzysztof
Søren Bovbjerg wrote: ...
I have to use a bunch (actually a whole lot) of arrays. Instead of
manually
making an 'array nest' I would like to autocreate the arrays when I need them.
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
hi marius,
the last four args of the 'graph' message are pixel coords of the graph's rectangle, so in order to place the pw/ph sized graph at px/py use
; pd-w graph <name> <logical-bounds> px py px+pw py+ph
In my example I have forgotten to 'pop' the graph after creation, and this is why copying, etc. was not possible. Try something like
; pd-w graph g 0 -1 99 1 50 50 250 190; pd-g pop; pd-g array t 100 float 1
which is not perfect, btw, because prior to these messages being executed, another pd-g might have already been created...
Krzysztof
marius schebella wrote: ...
still, some further questions, is it also possible to locate the graph somewhere in the patch other than 0/0? and why is it not possible to cut and paste after builiding (actually i think i will not need this feature, just wondered).