[PD] arrays, 2nd thought

Krzysztof Czaja czaja at chopin.edu.pl
Fri May 17 11:05:12 CEST 2002


hi Marius,

last argument of `coords' message is `graph-on-parent' flag.

I do not know of any way of changing the screen location of
an existing object other than using mouse events, as in my
`array-magic' example:

editmode 1, mouse <x0> <y0> 0 0, motion <x1> <y1> 0,
mouseup <x1> <y1> 0, editmode 0

where <x0>, <y0> should be a screen point unique to an object,
and <x1> = <x0> + <x-shift>, same for <y1> (growing downwards).

In the example the final line of ``editmode 1, editmode 0''
is redundant (left in haste).

All this is pure (but dirty) hacking, using undocumented interface
-- Miller has every right to change anything anytime...

Krzysztof

sme wrote:
...
 > pd-<graph-name>:
 > X from, Y to, X to, Y from, screen width, screen height, ...
 > do you know what the last value stands for? and how can i specify the
 > location of the graph (esp. new graphs) (it always appears at 100/20)?
...
 >>"<array-size> <screen-x-size> <screen-y-size>" ->
 >>"; pd-<graph-name> coords 0 1 $1 -1 $2 $3 1; <array-name> resize $1"




More information about the Pd-list mailing list