[PD] Data Structures GOP and installing latest PD
Hey I didn't know you could GOP data structures. This opens up a new world. Where is an up to date tutorial on using data structures? I'm about to install PD 0.43. I have a test4 version installed as well as pdx 0.42.5 and vanilla 0.42.5. I have a couple of libraries loaded with vanilla - GEM and GGE. How will the new version efect these installations? Also on LINUX I have with UBUNTU studio 10.10 pd 0.42.5 with all the exts available and then on puredyne I think my vanilla installation is messed up because I had to edit the config files to get pdL2ORK to run. Should be fine if I just replace the config files with the originals. Where is some god documentation on installing multiple versions of PD. What should I look out for when using so many different installations. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Data Structures GOP and installing latest PD
--- On Mon, 4/4/11, Billy Stiltner wrote: > From: Billy Stiltner > Subject: [PD] Data Structures GOP and installing latest PD > To: "pd-list" > Date: Monday, April 4, 2011, 9:37 PM > Hey > > I didn't know you could GOP data structures. > This opens up a new world. > Where is an up to date tutorial on using data structures? I don't know of an up-to-date tutorial, but there is a tutorial in doc/4.data.structures. Some parts are out of date: * data is, in fact, persistent when using scalars. Data is saved along with the patch. (Similar to using a "Put" menu array and checking the box for "save contents", except that with scalars they always save with the patch.) * the term "template" is used both to describe the subpatch in which the data structure ([struct] + any drawing instructions) is defined as well as the [struct] object itself. (I think [struct] used to be named [template]...) * some of the mouse-driven messages (e.g., "click") didn't exist when those tutorials were written. For an up-to-date list see struct-help.pd in: http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/doc/pddp/ (all the data structure related objects like [plot], [element], etc. have updated documentation if you use the pddp docs from the link above.) -Jonathan > > I'm about to install PD 0.43. I have a test4 version > installed as well > as pdx 0.42.5 and vanilla 0.42.5. > I have a couple of libraries loaded with vanilla - GEM and > GGE. How > will the new version efect these installations? > > Also on LINUX I have with UBUNTU studio 10.10 pd 0.42.5 > with all the > exts available and then on puredyne I think my vanilla > installation is > messed up because I had to edit the config files to get > pdL2ORK to > run. Should be fine if I just replace the config files with > the > originals. > > Where is some god documentation on installing multiple > versions of PD. > What should I look out for when using so many different > installations. > > ___ > Pd-list@iem.at > mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Data Structures GOP and installing latest PD
I didn't know you could GOP data structures. This opens up a new world. Where is an up to date tutorial on using data structures? you can use gop with any graphical object. you can see some objects of my "library", jmmmp at pd-extended/extra - like [sliders], [swatch] or specially [bezier]. there are some bugs, like in [bezier] if one of the control points gets out of the gop area, the data strucutres stop responding to the graphic input; but they still keep working. one other thing is the scaling, usually the data-s takes the whole canvas of the gop patch, but appears correctly. also, since data structures can't be saved using $0-variables, if you want a dynamic, multi-use patch, you might need to do some trickery, like generating the scalars with loadbang. etc. etc... maybe people will start using them now and then more often, if they see how useful they can be. João Pais ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Data Structures GOP and installing latest PD
João and Jonathon, Thanks for the information. If you set the canvas size to 1,1 the subpatch shows up about the same size as the default array canvas size. I done some experimenting with setting gop with pd-pdsubpatch and not donecanvasdialog but the other message with fewer arguments. Couldn't you just send the canvas a message to tell it whether it is a text atom or a graph? I looked through the code for quite a while but could not find how this could be done. I read somewhere that even if gui elements are not drawn in a subpatch they take use a lot of cpu. Is this true? How much processing goes on for gui elements when not visible? ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Data Structures GOP and installing latest PD
If you set the canvas size to 1,1 the subpatch shows up about the same size as the default array canvas size. I done some experimenting with ah yes, that makes sense. since I only use the structures in the gop, I never cared about searching it better. setting gop with pd-pdsubpatch and not donecanvasdialog but the other message with fewer arguments. Couldn't you just send the canvas a message to tell it whether it is a text atom or a graph? I looked through the code for quite a while but could not find how this could be done. I don't speak C, so can't really say anything. but I would say, you can't. and anyway, doesn't matter which object it is, it gets the same treatment I read somewhere that even if gui elements are not drawn in a subpatch they take use a lot of cpu. Is this true? How much processing goes on for gui elements when not visible? I don't have any hard data to back this up, but I think not, only displayed elements count to cpu (maybe hidden ones count a bit?). my only way to be sure would be to make a stress test. but maybe someone else can say more about tcl/tk. João ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Data Structures GOP and installing latest PD
João,, The other message that does gop is coords. I do not know the complete message but this works [toggle] | [coords 600 600 700 700 1 1 $1( | [s pd-pd-arrayz] [pd pd-arrayz] clicking toggle displays or hides [pd pd-arrayz] your canvas and hradio on dsp is genious. I could not find bezier or swatch. I will have to update my pd. I did see the sliders it is pretty cool. thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Data Structures GOP and installing latest PD
On Mon, 4 Apr 2011, Billy Stiltner wrote: I read somewhere that even if gui elements are not drawn in a subpatch they take use a lot of cpu. Is this true? How much processing goes on for gui elements when not visible? Try it together with the Load Meter. If you can't see a consistent difference of percentage, it means that it's not important. Load Meter does not take into account the time spent in Tcl/Tk, but when a subpatch is hidden, this does not matter. ___ | Mathieu Bouchard tél: +1.514.383.3801 Villeray, Montréal, QC ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Data Structures GOP and installing latest PD
The other message that does gop is coords. I do not know the complete message but this works [toggle] | [coords 600 600 700 700 1 1 $1( | [s pd-pd-arrayz] [pd pd-arrayz] clicking toggle displays or hides [pd pd-arrayz] I just tried around, and it looks like it does the same as donecanvasdialog, except the first 2 parameters, x+y canvas size. what you have as $1 also accept 2, which is the setting for GOP on+"hide object name and arguments" (quite useful). after that you can add 2 more numbers, for the x and y margins. Don't change the settings much while the subpatch is opened, or tcl/tk will stop responding that well (but it doesn't crash pd). João ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Data Structures GOP and installing latest PD
--- On Tue, 4/5/11, João Pais wrote: > From: João Pais > Subject: Re: [PD] Data Structures GOP and installing latest PD > To: "Billy Stiltner" > Cc: "pd-list" , "Jonathan Wilkes" > Date: Tuesday, April 5, 2011, 6:22 PM > > The other message that does gop > is coords. > > I do not know the complete message but this works > > > > [toggle] > > | > > [coords 600 600 700 700 1 1 $1( > > | > > [s pd-pd-arrayz] > > > > > > [pd pd-arrayz] > > > > clicking toggle displays or hides [pd pd-arrayz] > > I just tried around, and it looks like it does the same as > donecanvasdialog, except the first 2 parameters, x+y canvas > size. what you have as $1 also accept 2, which is the > setting for GOP on+"hide object name and arguments" (quite > useful). after that you can add 2 more numbers, for the x > and y margins. > > Don't change the settings much while the subpatch is > opened, or tcl/tk will stop responding that well (but it > doesn't crash pd). Not sure if it was mentioned, but I think "donecanvasdialog" sets the dirty flag and "coords" does not (if it matters to you). -Jonathan > > João > ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Data Structures GOP and installing latest PD
João Thanks for the zip. The abstractions are nice. I wonder if there is a way to keep from moving the control points out of bounds on the bezier. With a slider or numberbox it is easy just store a limit in an f and when the slider value changes check to see if it is beyond limit then do a delayed message to the slider to set the value to limit. You could even put a message to canvas label "beyond the outer limit" haha!. On 4/5/11, Jonathan Wilkes wrote: > > > --- On Tue, 4/5/11, João Pais wrote: > >> From: João Pais >> Subject: Re: [PD] Data Structures GOP and installing latest PD >> To: "Billy Stiltner" >> Cc: "pd-list" , "Jonathan Wilkes" >> Date: Tuesday, April 5, 2011, 6:22 PM >> > The other message that does gop >> is coords. >> > I do not know the complete message but this works >> > >> > [toggle] >> > | >> > [coords 600 600 700 700 1 1 $1( >> > | >> > [s pd-pd-arrayz] >> > >> > >> > [pd pd-arrayz] >> > >> > clicking toggle displays or hides [pd pd-arrayz] >> >> I just tried around, and it looks like it does the same as >> donecanvasdialog, except the first 2 parameters, x+y canvas >> size. what you have as $1 also accept 2, which is the >> setting for GOP on+"hide object name and arguments" (quite >> useful). after that you can add 2 more numbers, for the x >> and y margins. >> >> Don't change the settings much while the subpatch is >> opened, or tcl/tk will stop responding that well (but it >> doesn't crash pd). > > Not sure if it was mentioned, but I think "donecanvasdialog" sets the > dirty flag and "coords" does not (if it matters to you). > > -Jonathan > >> >> João >> > ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Data Structures GOP and installing latest PD
--- On Tue, 4/5/11, Billy Stiltner wrote: > From: Billy Stiltner > Subject: Re: [PD] Data Structures GOP and installing latest PD > To: "Jonathan Wilkes" > Cc: "João Pais" , "pd-list" > Date: Tuesday, April 5, 2011, 8:36 PM > João > Thanks for the zip. The abstractions are nice. I wonder if > there is a > way to keep from moving the control points out of bounds on > the > bezier. With a slider or numberbox it is easy just store a > limit in an > f and when the slider value changes check to see if it is > beyond limit > then do a delayed message to the slider to set the value to > limit. You can do that with data structures, too. > You > could even put a message to canvas label "beyond the outer > limit" > haha!. > > > > On 4/5/11, Jonathan Wilkes > wrote: > > > > > > --- On Tue, 4/5/11, João Pais > wrote: > > > >> From: João Pais > >> Subject: Re: [PD] Data Structures GOP and > installing latest PD > >> To: "Billy Stiltner" > >> Cc: "pd-list" , > "Jonathan Wilkes" > >> Date: Tuesday, April 5, 2011, 6:22 PM > >> > The other message that does gop > >> is coords. > >> > I do not know the complete message but this > works > >> > > >> > [toggle] > >> > | > >> > [coords 600 600 700 700 1 1 $1( > >> > | > >> > [s pd-pd-arrayz] > >> > > >> > > >> > [pd pd-arrayz] > >> > > >> > clicking toggle displays or hides [pd > pd-arrayz] > >> > >> I just tried around, and it looks like it does the > same as > >> donecanvasdialog, except the first 2 parameters, > x+y canvas > >> size. what you have as $1 also accept 2, which is > the > >> setting for GOP on+"hide object name and > arguments" (quite > >> useful). after that you can add 2 more numbers, > for the x > >> and y margins. > >> > >> Don't change the settings much while the subpatch > is > >> opened, or tcl/tk will stop responding that well > (but it > >> doesn't crash pd). > > > > Not sure if it was mentioned, but I think > "donecanvasdialog" sets the > > dirty flag and "coords" does not (if it matters to > you). > > > > -Jonathan > > > >> > >> João > >> > > > ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Data Structures GOP and installing latest PD
just like jonathan said, you can do that with data structures, just add the parenthesis scales to the variable declaration. I just don't leave the limit in, because you can still define extreme positions (for example, controling the points with messages instead of mouse click). João Thanks for the zip. The abstractions are nice. I wonder if there is a way to keep from moving the control points out of bounds on the bezier. With a slider or numberbox it is easy just store a limit in an f and when the slider value changes check to see if it is beyond limit then do a delayed message to the slider to set the value to limit. You could even put a message to canvas label "beyond the outer limit" haha!. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Data Structures GOP and installing latest PD
I didn't know you could GOP data structures. This opens up a new world. Where is an up to date tutorial on using data structures? I've prepared a DS tutorial that some people liked. But since I've spent some time on it, I would prefer to be given the chance to present that more often before spreading it around as I usually do with my other stuff. There's also an old tutorial by F Barknecht around, but I don't know anymore where. João Pais ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list