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

2015-05-30 Thread jamal crawford
wauw! exactly, you scratched my brain in a very pleasant way :) On Wed, May 27, 2015, at 06:30 PM, patrice colet wrote: Le 25/05/2015 21:40, jamal crawford a écrit : openGL is doing this, maybe you should use Gem for your interface? not maybe, but absolutently! but i think the

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

2015-05-27 Thread jamal crawford
hey Very important, you don't get mouse control of the encapsulated array, only of the top one. Maybe you should say exactly why you think you need encapsulated arrays. If it's to draw a canvas/box, you can do that in the same template as your main array. I thought that the encapsulated

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

2015-05-27 Thread jamal crawford
hey As far as order-- in Pd-l2ork I made a revision so that a struct will simply refuse to create if you give it an array field with a nonexistent template for the data. neat :) Also-- in a _single_ scalar, the shapes will be drawn using the order that you created the drawing commands. So if

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

2015-05-27 Thread patrice colet
Le 25/05/2015 21:40, jamal crawford a écrit : 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

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

2015-05-27 Thread João Pais
many people already gave replies to the questions, so I leave the example of array encapsulation from my data structures workshop. Very important, you don't get mouse control of the encapsulated array, only of the top one. Maybe you should say exactly why you think you need encapsulated

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

2015-05-26 Thread Jonathan Wilkes via Pd-list
On 05/25/2015 03:40 PM, 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

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

2015-05-25 Thread patrice colet
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

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

2015-05-25 Thread jamal crawford
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

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

2015-05-25 Thread Miller Puckette
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