Re: [PD] array indirection

2007-12-10 Thread Jean-Yves GRATIUS
Hi, I have tried to change graph-on-parents settings by message for displaying different arrays, it seems to work.. I did'nt test it with large tables. (included patch : switchingGOPtables.pd). Jean Yves Gratius http://jy.gratius.free.fr Chuckk Hubbard a crit : On Dec 9, 2007 10:50

Re: [PD] array indirection

2007-12-10 Thread Chuckk Hubbard
Well-done, that looks like the perfect solution. I did notice these functions mentioned in the code, with xmargin and ymargin as arguments of a longer function call, but I hadn't followed up to see what else went in the message. I believe this is your answer, Phil. Another one for msg-docs, I

Re: [PD] array indirection

2007-12-10 Thread Phil Stone
A glorious hack, Jean-Yves! This should work well for what I am envisioning. One strange thing, though: if you move the subpatch (that displays the selected array), the other array is visible underneath it. I wonder what's up with that? Thanks for the solution, Jean-Yves (and Chuck for

Re: [PD] array indirection

2007-12-09 Thread Andy Farnell
This does not answer your question exactly, but remember you can use the [set( method of [tabread~] objects to change arrays. On Sat, 08 Dec 2007 12:26:23 -0800 Phil Stone [EMAIL PROTECTED] wrote: This probably fits into the category of a wish for PD; I think there's no way to do it

Re: [PD] array indirection

2007-12-09 Thread Phil Stone
Hi Andy, I think what I'm asking for would be more like a [set( method on an array, to change the data it sees. Not a trivial thing, I know (especially if Miller has thought about it and not come up with a way to do it!) Phil Andy Farnell wrote: This does not answer your question

Re: [PD] array indirection

2007-12-09 Thread Chuckk Hubbard
On Dec 9, 2007 10:50 PM, Phil Stone [EMAIL PROTECTED] wrote: Hi Chuck, I think you're right; there's no way to avoid the copying. It's good to dream, though. :-) I have done some experimenting, and I think I'm on to something. If you create a graph from the put menu, then right-click and

[PD] array indirection

2007-12-08 Thread Phil Stone
This probably fits into the category of a wish for PD; I think there's no way to do it currently, but I'd love to be proven wrong! I'd like to be able to change the data an array points to rather than actually change the data in the array. The scenario which me think of this is, I'd like to

Re: [PD] array indirection

2007-12-08 Thread Miller Puckette
I've wanted to do this too -- for instance, to have a large collection of arrays and a window that could see one of them at a time to edit them. It's a bit complicated to do it because every array would have to maintain a dynamic collection of pointers to every window (there could be meny) in

Re: [PD] array indirection

2007-12-08 Thread Chuckk Hubbard
It would be possible, if not CPU-efficient, to have them all hidden in table objects, and simply use tabread and tabwrite to copy them to the skeleton array when you want to switch. You would only need one tabread and tabwrite pair, just different ways to specify the target of tabread. I would