[PD-dev] Canvas and ojb/cnv arguments in .pd

Frank Barknecht fbar at footils.org
Mon Jan 23 15:48:07 CET 2006


Hallo,
Dave S hat gesagt: // Dave S wrote:

> I'm trying to determine what arguments are used by PD to create a canvas.
> 
> I've determined the following:
> 
> A "parent" canvas (i.e. top-level window) has the following arguments:
> 
> #N canvas (
> 	0 = top
> 	0 = left
> 	772 = width
> 	532 = height
> 	12 = font-size
> 	)
> 
> As in:
> #N canvas 0 0 772 532 12;
> 
> 
> However, a canvas created as an object inside a window has the following
> arguments:

Note that the [cnv] has nothing to do with the canvasses in a patch. A
[cnv] is just an object. Pd saves all these objects as "obj x-coord
y-coord OBJNAME OBJ_ARGUMENTS". The meaning of OBJ_ARGUMENTS depends
on the specific object created. For an object "osc~" the argument is
just the frequency, for a object "cnv" it's something else. 

A real new canvas is created by creating a meta-object called "pd", as
you know. This is *not* saved as "obj 100 200 pd subpatch", but
instead will create a construct like: 

  #N canvas 726 183 454 677 subpatch 0;
  ... (contents of subpatch)
  #X restore 75 95 pd subpatch;

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__




More information about the Pd-dev mailing list