[PD] [data structures] array within an array, pd draw window scale/background canvas colour...

jamal crawford threen52 at ml1.net
Wed May 27 14:55:46 CEST 2015


hey

> Just tried this in 0.46 (actually, tried 
> [struct foo array arrayWithin arrayWithin-template]) and Pd didn't crash

neither here, but ...

>   But it's very confusing to get around such a data
> structure and I can't figure out how to detect clicks on array elements.

yeah, exactly. i thought that the arrayWithin will by default be
"sitting" on every click of the motherArray, so one could "zoom in" with
[donecanvasdialog(, drag the points and zoom out again. 

best regs


On Mon, May 25, 2015, at 11:20 PM, Miller Puckette wrote:
> Just tried this in 0.46 (actually, tried 
> [struct foo array arrayWithin arrayWithin-template]) and Pd didn't crash
> (although I think it was easy to crash Pd 0.45 making arrays with
> undefined templates).  But it's very confusing to get around such a data
> structure and I can't figure out how to detect clicks on array elements.
> 
> cheers
> Miller
> 
> On Mon, May 25, 2015 at 09:40:01PM +0200, jamal crawford wrote:
> > hey and thanks for the reply
> > 
> > > ...there is a bug since the very begining of puredata, if you don't 
> > > delete data and modify your structure pd will crash
> > 
> > word!
> > 
> > > also I think this is not a good idea to draw arrays within arrays, 
> > > because bindings doesn't work anymore within arrays
> > 
> > so you mean I will need to defy new struct arguments for every array I
> > will put in an array? if so, I won't mind that.
> > so it is indeed possible to put an array within an array, its just me
> > who is doing it in wrong creation order? 
> > 
> > > what about simply putting a canvas instead?
> > it just won't save  the canvas and anything else beside the drawing (is
> > there other ways to save the drawing besides [write( message?). i have a
> > few of them and usually save them, so I can work on them later. and
> > secondly its way much work to append 50+ arguments, when I can save them
> > with a click.
> > 
> > > donecanvasdialog message is designed to do this
> > exactly! :) 
> > 
> > > openGL is doing this, maybe you should use Gem for your interface?
> > not maybe, but absolutently! but i think the copy/paste/delete function
> > in the drawing window and scalar-editing are quite usefull to me. just
> > having the window stick on top of all your workspaces and traversing
> > with vnext is quite appealing. and btw: how would I even draw an array
> > in Gem? i have absolutely no idea .. :-) 
> > 
> > On Mon, May 25, 2015, at 12:54 PM, patrice colet wrote:
> > > hello, I didn't try yet pd-0.46 but with pd-0.45 it should be the same 
> > > thing...
> > > 
> > > Le 24/05/2015 14:29, jamal crawford a écrit :
> > > > hey List
> > > >
> > > > 0.
> > > > I try to create an rarray within an array, but every time I try to type
> > > > [struct array arrayWithin arrayWithin-template] in arrays template (both
> > > > before and after creation a template for arrayWithin), pd crashes. It
> > > > seems like I lack some basic order rules for creating templates. Can
> > > > anybody point me to where to look? I use 5.array.pd patch in docs, if
> > > > anybody could tweak it to work, i'd send you nice organic coffee
> > > > beans/wine, whereever you reside :-)
> > > 
> > > ...there is a bug since the very begining of puredata, if you don't 
> > > delete data and modify your structure pd will crash
> > > 
> > > also I think this is not a good idea to draw arrays within arrays, 
> > > because bindings doesn't work anymore within arrays
> > > > 1.
> > > > Is it possible to change the drawing layer order in the drawing window,
> > > > it seems like the last drawn object always appears on top. My idea was
> > > > to create a drawpolygon to be the canvas behind the drawing. Or is there
> > > > another way to do it?
> > > what about simply putting a canvas instead?
> > > > 2.
> > > > Is it possible to dynamically change the scaling of drawing window as
> > > > you do in properties with X and Y units from within pd?
> > > donecanvasdialog message is designed to do this
> > > > 3.
> > > > Is there a "human" way to draw with 3d perspective in mind or do I need
> > > > to read the h** lot on vectors and stuff, and rescale the whole
> > > > multiverse? Any links would be more valuable then truth and will be
> > > > taken with a gentle hand of thank you.
> > > openGL is doing this, maybe you should use Gem for your interface?
> > > > big massive thanks in advance
> > > > ~/.jc
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Pd-list at lists.iem.at mailing list
> > > > UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
> > > 
> > 
> > _______________________________________________
> > Pd-list at lists.iem.at mailing list
> > UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list



More information about the Pd-list mailing list