Re: [PD] Data structures and click event

2014-03-12 Thread Billy Stiltner
re: 'slow ass coders' usually takes me 15 years to get anything done, the things that are taking longer than 15 years will probably be wonderful. I will link to you something that will make you change your mind about 'being years behind everything else' 3:33:28 seconds of some /pd-0.45-4/bin$

Re: [PD] Data structures and click event

2014-03-12 Thread Billy Stiltner
https://archive.org/details/isophi12moj upgraded ubuntustudio from 13.04 to 13.10 this morning without any noticeable problems yet. how does jack2 handle pulse audio and alsa now? somehow it stopped working together before the upgrade. might have misconfigured jack with the old pasuspender --

Re: [PD] Data structures and click event

2014-03-12 Thread Jonathan Wilkes
On 03/07/2014 06:55 PM, Miller Puckette wrote: I'll have to have a look and see what the ideas are... I don't know anything yet. Well there's the important stuff: https://jwilkes.nfshost.com/mm.webm And then the less important stuff, like being able to patch 15 out of the 28 demos shown

Re: [PD] Data structures and click event

2014-03-08 Thread Dan Wilcox
On Mar 8, 2014, at 5:59 AM, pd-list-requ...@iem.at wrote: No. It requires a toolkit that has modern 2d features like affine transformations and opacity, etc. Pd-l2ork leverages Tkpath, a tcl/tk library. Other modern toolkits like Qt have their own 2d interfaces with the same features

Re: [PD] Data structures and click event

2014-03-08 Thread Jonathan Wilkes
On 03/08/2014 12:46 PM, Dan Wilcox wrote: On Mar 8, 2014, at 5:59 AM, pd-list-requ...@iem.at mailto:pd-list-requ...@iem.at wrote: No. It requires a toolkit that has modern 2d features like affine transformations and opacity, etc. Pd-l2ork leverages Tkpath, a tcl/tk library. Other

Re: [PD] Data structures and click event

2014-03-07 Thread João Pais
On 03/05/2014 05:24 AM, Pierre Massat wrote: Dear list, First of all i'd like to say that i'm very impressed

Re: [PD] Data structures and click event

2014-03-07 Thread Miller Puckette
I'll have to have a look and see what the ideas are... I don't know anything yet. Anyhow I think there are a couple of things that are higher priority: getting editing to be more user-friendly, and getting the IEM GUIs to behave better. And I'm afraid I can only write code at a fraction of the

Re: [PD] Data structures and click event

2014-03-07 Thread Jonathan Wilkes
On 03/07/2014 06:45 PM, João Pais wrote: On 03/05/2014 05:24 AM, Pierre Massat wrote: Dear list, First of all i'd like to say that i'm very impressed by the potential of data structures in Pd. I've always kind of ignored this feature and it's a pity because it's really

[PD] Data structures and click event

2014-03-05 Thread Pierre Massat
Dear list, First of all i'd like to say that i'm very impressed by the potential of data structures in Pd. I've always kind of ignored this feature and it's a pity because it's really worth diving into it. That being said I think that help and example patches are far from sufficient for

Re: [PD] Data structures and click event

2014-03-05 Thread Pierre Massat
Nevermind, it's working the way I expected, the y value was being output and I thought that was the pointer's id. Cheers, Pierre. 2014-03-05 11:24 GMT+01:00 Pierre Massat pimas...@gmail.com: Dear list, First of all i'd like to say that i'm very impressed by the potential of data

Re: [PD] Data structures and click event

2014-03-05 Thread Jonathan Wilkes
On 03/05/2014 05:24 AM, Pierre Massat wrote: Dear list, First of all i'd like to say that i'm very impressed by the potential of data structures in Pd. I've always kind of ignored this feature and it's a pity because it's really worth diving into it. That being said I think that help and

Re: [PD] Data structures and their clickable area

2014-01-29 Thread Roman Haefeli
On Mon, 2014-01-27 at 21:34 -0500, Jonathan Wilkes wrote: On 01/27/2014 05:35 PM, Roman Haefeli wrote: Hi I'm using a template consisting of a rectangle done with [filledpolygon] and a number [drawnumber] in it. While mouse clicks anywhere in the area of the rectangle are detected, it's

Re: [PD] Data structures and their clickable area

2014-01-29 Thread Roman Haefeli
On Mon, 2014-01-27 at 21:34 -0500, Jonathan Wilkes wrote: On 01/27/2014 05:35 PM, Roman Haefeli wrote: Similarly, I'd like to be able to mouse-drag anywhere in the rectangle in order to change the value of the number. You could probably do it if you use a field variable to define

Re: [PD] Data structures and their clickable area

2014-01-29 Thread Roman Haefeli
On Die, 2014-01-28 at 12:40 +0100, João Pais wrote: there might be a complicated and confuse way of doing it - by clicking the scalar, you activate a click message to the drawing window, that clicks in the drawed number. For that you would have to look around the click messages in the pd

Re: [PD] Data structures and their clickable area

2014-01-29 Thread Roman Haefeli
On Mon, 2014-01-27 at 23:35 +0100, Roman Haefeli wrote: Hi I'm using a template consisting of a rectangle done with [filledpolygon] and a number [drawnumber] in it. While mouse clicks anywhere in the area of the rectangle are detected, it's only possible to change the number with the

Re: [PD] Data structures and their clickable area

2014-01-29 Thread Jonathan Wilkes
On 01/29/2014 05:40 PM, Roman Haefeli wrote: On Mon, 2014-01-27 at 21:34 -0500, Jonathan Wilkes wrote: On 01/27/2014 05:35 PM, Roman Haefeli wrote: Hi I'm using a template consisting of a rectangle done with [filledpolygon] and a number [drawnumber] in it. While mouse clicks anywhere in the

Re: [PD] Data structures and their clickable area

2014-01-28 Thread João Pais
there might be a complicated and confuse way of doing it - by clicking the scalar, you activate a click message to the drawing window, that clicks in the drawed number. For that you would have to look around the click messages in the pd documents, which I didn't really understood so far.

[PD] Data structures and their clickable area

2014-01-27 Thread Roman Haefeli
Hi I'm using a template consisting of a rectangle done with [filledpolygon] and a number [drawnumber] in it. While mouse clicks anywhere in the area of the rectangle are detected, it's only possible to change the number with the keyboard when I exactly click on the number. Is there a way to make

Re: [PD] Data structures and their clickable area

2014-01-27 Thread Jonathan Wilkes
On 01/27/2014 05:35 PM, Roman Haefeli wrote: Hi I'm using a template consisting of a rectangle done with [filledpolygon] and a number [drawnumber] in it. While mouse clicks anywhere in the area of the rectangle are detected, it's only possible to change the number with the keyboard when I

Re: [PD] Data structures: no object for freeing pointers?

2013-06-23 Thread João Pais
I'd like one day to understand how to implement DS into a GOP, it's a bit triky, then on a single window it's possible to have the whole interface. I wrote something about it in a thread some weeks ago: http://lists.puredata.info/pipermail/pd-list/2013-05/102819.html it's not really

Re: [PD] Data structures: no object for freeing pointers?

2013-06-21 Thread João Pais
gets and sets the maximum number of elements (now at 50) Look at the current help file for [drawnumber] for more details. De: João Pais jmmmp...@googlemail.com À: pd-list pd-list@iem.at, Patrice Colet colet.patr...@free.fr Envoyé: Jeudi 20 Juin 2013 11:09:26 Objet: Re: [PD] Data structures

Re: [PD] Data structures: no object for freeing pointers?

2013-06-21 Thread Patrice Colet
Colet Patrice - Mail original - De: João Pais jmmmp...@googlemail.com À: pd-list pd-list@iem.at, Patrice Colet colet.patr...@free.fr Envoyé: Vendredi 21 Juin 2013 10:00:58 Objet: Re: [PD] Data structures: no object for freeing pointers? Yes with visibility setting we can access

Re: [PD] Data structures: no object for freeing pointers?

2013-06-20 Thread João Pais
. Envoyé: Mardi 11 Juin 2013 11:25:23 Objet: Re: [PD] Data structures: no object for freeing pointers? On Die, 2013-06-11 at 11:00 +0200, Jan Baumgart wrote: I've been building a sequencer with data structs. But now I've come to a dead end, because there seems to be no object, that let's you

Re: [PD] Data structures: no object for freeing pointers?

2013-06-20 Thread Patrice Colet
but I don't how it's possible to fix limits to [drawnumber] De: João Pais jmmmp...@googlemail.com À: pd-list pd-list@iem.at, Patrice Colet colet.patr...@free.fr Envoyé: Jeudi 20 Juin 2013 11:09:26 Objet: Re: [PD] Data structures: no object for freeing pointers? One approach is to assign

[PD] Data structures: no object for freeing pointers?

2013-06-11 Thread Jan Baumgart
I've been building a sequencer with data structs. But now I've come to a dead end, because there seems to be no object, that let's you remove structs. The only way seems to be deleting them in the gui. Am I missing something here? cheers, Jan ___

Re: [PD] Data structures: no object for freeing pointers?

2013-06-11 Thread Roman Haefeli
On Die, 2013-06-11 at 11:00 +0200, Jan Baumgart wrote: I've been building a sequencer with data structs. But now I've come to a dead end, because there seems to be no object, that let's you remove structs. The only way seems to be deleting them in the gui. I think that is one of the

[PD] Data structures: Detect array changes

2013-06-11 Thread Roman Haefeli
Hi all Actually, the same question applies to normal tables as well, but I know that plain Pd does not provide a way to detect changes, whereas Pd-l2ork does. What about data structure arrays? Is there some hidden way to detect changes? I can detect clicks, but I found nothing else. Roman

[PD] Data Structures: Lower and upper bound for graphical arrays

2013-06-11 Thread Roman Haefeli
On a related note, is there a way to limit y for arrays with mutable y? If there'd be a way to detect changes, this would be actually easy to implement. Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -

Re: [PD] Data structures: no object for freeing pointers?

2013-06-11 Thread Patrice Colet
Envoyé: Mardi 11 Juin 2013 11:25:23 Objet: Re: [PD] Data structures: no object for freeing pointers? On Die, 2013-06-11 at 11:00 +0200, Jan Baumgart wrote: I've been building a sequencer with data structs. But now I've come to a dead end, because there seems to be no object, that let's

Re: [PD] Data Structures: Lower and upper bound for graphical arrays

2013-06-11 Thread Jonathan Wilkes
From: Roman Haefeli reduz...@gmail.com To: pd-list pd-list@iem.at Sent: Tuesday, June 11, 2013 6:02 AM Subject: [PD] Data Structures: Lower and upper bound for graphical arrays On a related note, is there a way to limit y for arrays with mutable y? If there'd

Re: [PD] Data structures: no object for freeing pointers?

2013-06-11 Thread Miller Puckette
, Jun 11, 2013 at 03:04:10PM +0200, Patrice Colet wrote: Envoyé: Mardi 11 Juin 2013 11:25:23 Objet: Re: [PD] Data structures: no object for freeing pointers? On Die, 2013-06-11 at 11:00 +0200, Jan Baumgart wrote: I've been building a sequencer with data structs. But now I've come

Re: [PD] Data Structures: Lower and upper bound for graphical arrays

2013-06-11 Thread Roman Haefeli
On Die, 2013-06-11 at 08:37 -0700, Jonathan Wilkes wrote: __ From: Roman Haefeli reduz...@gmail.com To: pd-list pd-list@iem.at Sent: Tuesday, June 11, 2013 6:02 AM Subject: [PD] Data Structures: Lower and upper bound

Re: [PD] data structures in abstractions

2012-12-09 Thread João Pais
Hi, I noticed the gop doesn't work on pd-ext 0.42-5, but it works on 0.43-4 (w7). Another bug that was already there: if you drag one control point to outside the gop window, the struct doesn't respond to the mouse control anymore - although it still works properly. In my abstraction

Re: [PD] data structures in abstractions

2012-11-28 Thread João Pais
Hi, I don't have much time to look at patches now. You can see my abstractions [jmmmp/bezier], [jmmmp/swatch], to see if there's something you find interesting for your problem. They should be in pd-extended. Best, João Thanks Jonathan You are a magician. You said it works, so now it

[PD] data structures in abstractions

2012-11-27 Thread eldad tsabary
Hello all Is there a way to include a data structure graphical shape (filledpolygon for example) inside an abstraction's graph on parent? I saw that when trying to add a graph on parent in the data window it messes up everything. Thanks Eldad ___

Re: [PD] data structures in abstractions

2012-11-27 Thread Jonathan Wilkes
- Original Message - From: eldad tsabary tazberryd...@gmail.com To: pd-list@iem.at Cc: Sent: Tuesday, November 27, 2012 1:48 PM Subject: [PD] data structures in abstractions Hello all Is there a way to include a data structure graphical shape (filledpolygon for example) inside

Re: [PD] data structures in abstractions

2012-11-27 Thread eldad tsabary
: Tuesday, November 27, 2012 1:48 PM Subject: [PD] data structures in abstractions Hello all Is there a way to include a data structure graphical shape (filledpolygon for example) inside an abstraction's graph on parent? I saw that when trying to add a graph on parent in the data window

Re: [PD] data structures in abstractions

2012-11-27 Thread Jonathan Wilkes
- Original Message - From: eldad tsabary tazberryd...@gmail.com To: pd-list@iem.at Cc: Sent: Tuesday, November 27, 2012 10:31 PM Subject: Re: [PD] data structures in abstractions G reat It works fairly well with graph on parent of the subpatch (datawindow) However, if I try

Re: [PD] data structures in abstractions

2012-11-27 Thread eldad tsabary
tazberryd...@gmail.com To: pd-list@iem.at Cc: Sent: Tuesday, November 27, 2012 10:31 PM Subject: Re: [PD] data structures in abstractions G reat It works fairly well with graph on parent of the subpatch (datawindow) However, if I try to make the entire patch into an abstraction and have a graph

[PD] Data Structures - Scaling Visual Display - (1:10)(2:200)

2012-06-29 Thread JF
I can't remember where I've seen it but you can create a struct like so... [struct structname float x(1:10)(2:200)] ...such that x displays more tightly or loosely and with boundaries depending on the values in the brackets. But I can't figure how to enter the values properly! My question

Re: [PD] Data Structures - Scaling Visual Display - (1:10)(2:200)

2012-06-29 Thread Miller Puckette
There's a somewhat lame explanation in doc/4.data.structures/09.scaling.pd -- in brief, 1:10 in the example below says that the value of x is restricted to the range 1-10, and this range is linearly rescaled to values 2-200 in the coordinates of the patch. cheers Miller On Fri, Jun 29, 2012 at

[PD] data structures- polygones with and without arrays

2012-03-22 Thread Mirko Maier
hi list, is there a way to have in one window both polygones with and without arrays? at least i can define two separate templates, but then the pointer gets confused. on pd-ext 0.42, Win XP. thanks for help. cheers mirko -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!

Re: [PD] data structures- polygones with and without arrays

2012-03-22 Thread Jonathan Wilkes
- Original Message - From: Mirko Maier mir...@gmx.de To: pd-list@iem.at Cc: Sent: Thursday, March 22, 2012 12:05 PM Subject: [PD] data structures- polygones with and without arrays hi list, is there a way to have in one window both polygones with and without arrays? at least

Re: [PD] Data Structures - Delete specific scalar?

2011-04-28 Thread João Pais
Hi, I looked at your sequencer. I didn't play around with it, but I wonder if you are better off using an array instead of X scalars? As I suggested before, you can use a variable to decide if the data is active or not, it's not really necessary to erase it from the patch. Also on the

Re: [PD] Data Structures - Delete specific scalar?

2011-04-23 Thread JF
...@yahoo.com Sent: Sat, 23 April, 2011 1:38:27 Subject: Re: [PD] Data Structures - Delete specific scalar? unfortunately, that and many other basic things aren't possible with data-s yet. there are a couple ways you could use to circumvent this limitation: - use a field for active or unactive

[PD] Data Structures - Delete specific scalar?

2011-04-22 Thread JF
Is there any message based way to delete a scalar? As I presume what people usually do is select the graphic in the datawindow and delete it this way. I need to do this without the graphical selection. I'm currently using data structures just as a multi-dimensional storage object (the

Re: [PD] Data Structures GOP and installing latest PD

2011-04-06 Thread João Pais
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

Re: [PD] Data Structures GOP and installing latest PD

2011-04-05 Thread João Pais
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

Re: [PD] Data Structures GOP and installing latest PD

2011-04-05 Thread Billy Stiltner
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

Re: [PD] Data Structures GOP and installing latest PD

2011-04-05 Thread Mathieu Bouchard
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

Re: [PD] Data Structures GOP and installing latest PD

2011-04-05 Thread João Pais
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

Re: [PD] Data Structures GOP and installing latest PD

2011-04-05 Thread Jonathan Wilkes
--- On Tue, 4/5/11, João Pais jmmmp...@googlemail.com wrote: From: João Pais jmmmp...@googlemail.com Subject: Re: [PD] Data Structures GOP and installing latest PD To: Billy Stiltner billy.stilt...@gmail.com Cc: pd-list pd-list@iem.at, Jonathan Wilkes jancs...@yahoo.com Date: Tuesday

Re: [PD] Data Structures GOP and installing latest PD

2011-04-05 Thread Billy Stiltner
: [PD] Data Structures GOP and installing latest PD To: Billy Stiltner billy.stilt...@gmail.com Cc: pd-list pd-list@iem.at, Jonathan Wilkes jancs...@yahoo.com 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

Re: [PD] Data Structures GOP and installing latest PD

2011-04-05 Thread Jonathan Wilkes
--- On Tue, 4/5/11, Billy Stiltner billy.stilt...@gmail.com wrote: From: Billy Stiltner billy.stilt...@gmail.com Subject: Re: [PD] Data Structures GOP and installing latest PD To: Jonathan Wilkes jancs...@yahoo.com Cc: João Pais jmmmp...@googlemail.com, pd-list pd-list@iem.at Date: Tuesday

Re: [PD] Data Structures GOP and installing latest PD

2011-04-05 Thread João Pais
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

[PD] Data Structures GOP and installing latest PD

2011-04-04 Thread Billy Stiltner
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

Re: [PD] Data Structures GOP and installing latest PD

2011-04-04 Thread Jonathan Wilkes
--- On Mon, 4/4/11, Billy Stiltner billy.stilt...@gmail.com wrote: From: Billy Stiltner billy.stilt...@gmail.com Subject: [PD] Data Structures GOP and installing latest PD To: pd-list pd-list@iem.at Date: Monday, April 4, 2011, 9:37 PM Hey I didn't know you could GOP data structures

Re: [PD] Data Structures GOP and installing latest PD

2011-04-04 Thread João Pais
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].

Re: [PD] Data Structures GOP and installing latest PD

2011-04-04 Thread Billy Stiltner
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

Re: [PD] Data structures with $0?

2010-06-20 Thread João Pais
wrote me saying that he's doing a real external for this, so that would be a better solution. Why is an external a better solution ? isn't a hard coded external always more efficient than an abstraction, specially if tcl/tk and gop are involved? I thought so. Anyway. I was inspired to make

Re: [PD] Data structures with $0?

2010-06-20 Thread Mathieu Bouchard
On Sun, 20 Jun 2010, João Pais wrote: isn't a hard coded external always more efficient than an abstraction, What's the speed that you need ? What's the speed that you want ? specially if tcl/tk and gop are involved? I thought so. After it's computed, you still has to render the result.

Re: [PD] Data structures with $0?

2010-06-20 Thread João Pais
isn't a hard coded external always more efficient than an abstraction, What's the speed that you need ? What's the speed that you want ? I never measured it. what's the speed of pd? I guess as less speed as necessary, so that it doesn't bother other processes. also, in order to make it a

Re: [PD] Data structures with $0?

2010-06-19 Thread Mathieu Bouchard
On Fri, 18 Jun 2010, João Pais wrote: thanks, I'll try to put this in when I can. meanwhile dtmod His name is dmotd. wrote me saying that he's doing a real external for this, so that would be a better solution. Why is an external a better solution ? Anyway. I was inspired to make a

Re: [PD] Data structures with $0?

2010-06-18 Thread João Pais
thanks, I'll try to put this in when I can. meanwhile dtmod wrote me saying that he's doing a real external for this, so that would be a better solution. anyway since I started, I'll try to finish my work. [expr pow(1-$f1,3)*pow($f1,0)*$f2 + pow(1-$f1,2)*pow($f1,1)*$f3 +

[PD] Data structures with $0?

2010-06-17 Thread João Pais
Hi, I was working on an abstraction with a gop data structure, and run into a problem. I noticed that after closing the patch and opening it again, the data structure wouldn't show, and the console would complain from a stale pointer. Finally I noticed that the problem came from the templates

Re: [PD] Data structures with $0?

2010-06-17 Thread Pedro Lopes
Does anyone know a general formula for bezier curves of the xth order? This seems interesting, but it was just a lame google bezier nth order search... Although, here it is: - http://anidea.com/technology/fun-with-bezier-curves/ Keep posting the results! :D -- Pedro Lopes contacto:

Re: [PD] Data structures with $0?

2010-06-17 Thread João Pais
Does anyone know a general formula for bezier curves of the xth order? This seems interesting, but it was just a lame google bezier nth order search... Although, here it is: - http://anidea.com/technology/fun-with-bezier-curves/ here's the latest patch, with cubic lines. I've seen that site

Re: [PD] Data structures with $0?

2010-06-17 Thread Mathieu Bouchard
On Thu, 17 Jun 2010, João Pais wrote: Btw, this is to control arrays with bezier curves, in case someone is interested. Does anyone know a general formula for bezier curves of the xth order? It's explained in http://en.wikipedia.org/wiki/B%C3%A9zier_curve But by far, the most common are

Re: [PD] Data structures with $0?

2010-06-17 Thread João Pais
Btw, this is to control arrays with bezier curves, in case someone is interested. Does anyone know a general formula for bezier curves of the xth order? It's explained in http://en.wikipedia.org/wiki/B%C3%A9zier_curve yes, but since my math skills aren't much better than basic, all those

Re: [PD] Data structures with $0?

2010-06-17 Thread Mathieu Bouchard
On Thu, 17 Jun 2010, João Pais wrote: yes, but since my math skills aren't much better than basic, all those equations and polynomials mean nothing to me. unless I get a clear equation (like the cubic one I used, which I found in another site), I can't go any further. if anyone wants to

Re: [PD] Data structures with $0?

2010-06-17 Thread Mathieu Bouchard
On Thu, 17 Jun 2010, Mathieu Bouchard wrote: [expr pow(1-$f1,3)*pow($f1,0)*$f2 + pow(1-$f1,2)*pow($f1,1)*$f3 + pow(1-$f1,1)*pow($f1,2)*$f4 + pow(1-$f1,0)*pow($f1,3)*$f5] doh, I forgot some multipliers. [expr 1*pow(1-$f1,3)*pow($f1,0)*$f2 +

[PD] Data Structures abs (was:Re: understanding graphics objects on canvas)

2010-05-12 Thread patko
- João Pais jmmmp...@googlemail.com a écrit : Data structures can be a very powerful mean to graphically display/interact with the patch (to perform, display, compose, ...). But without some improvements they'll still be a hidden part of pd. And afaik, The algorithms we get when

Re: [PD] Data Structures abs (was:Re: understanding graphics objects on canvas)

2010-05-12 Thread Jonathan Wilkes
Sure, see Luke Iannini's ds-abs: http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/abstractions/sfruit/ds-abs/ --- On Wed, 5/12/10, patko colet.patr...@free.fr wrote: From: patko colet.patr...@free.fr Subject: [PD] Data Structures abs (was:Re: understanding graphics objects

Re: [PD] Data Structures abs (was:Re: understanding graphics objects on canvas)

2010-05-12 Thread patko
: From: patko colet.patr...@free.fr Subject: [PD] Data Structures abs (was:Re: understanding graphics objects on canvas) To: pd-list pd-list@iem.at Cc: João Pais jmmmp...@googlemail.com Date: Wednesday, May 12, 2010, 12:02 PM - João Pais jmmmp...@googlemail.com a écrit : Data

Re: [PD] data structures: variable array element + variable resolution?

2010-03-16 Thread João Pais
I had a couple of questions about data structures: - I have an array based on template X. I wanted to make variations on the drawing of that array, by changing a variable in template X. The thing is, I can't access X when it's inside an array. Is there a way to get a pointer to the X templates

Re: [PD] data structures: variable array element + variable resolution?

2010-03-15 Thread Jonathan Wilkes
--- On Mon, 3/15/10, João Pais jmmmp...@googlemail.com wrote: From: João Pais jmmmp...@googlemail.com Subject: [PD] data structures: variable array element + variable resolution? To: PD-List pd-list@iem.at Date: Monday, March 15, 2010, 3:10 AM Hi, I had a couple of questions about data

[PD] data structures: variable array element + variable resolution?

2010-03-14 Thread João Pais
Hi, I had a couple of questions about data structures: - I have an array based on template X. I wanted to make variations on the drawing of that array, by changing a variable in template X. The thing is, I can't access X when it's inside an array. Is there a way to get a pointer to the X

[PD] data structures: sugestions for future implmentation

2009-09-14 Thread João Pais
Hi all and specially Mr. Puckette, I've been working more with data structures in a new patch. Although some nice things are possible, there are still some details that might give much more power to their possibilities. Most of these sugestions become only evident when one works with more

[PD] data structures variable plot x spacing

2009-08-27 Thread João Pais
Hi, quick qestion: is there a way to make the x spacing in [plot] to be dynamic? Arrays in data structures is a bit new for me, and I'm not getting it for this. Also looked at the examples + Frank's tutorial, but couldn't find anything. best, João Pais -- Friedenstr. 58 10249 Berlin

Re: [PD] data structures variable plot x spacing

2009-08-27 Thread Jonathan Wilkes
--- On Thu, 8/27/09, João Pais jmmmp...@googlemail.com wrote: From: João Pais jmmmp...@googlemail.com Subject: [PD] data structures variable plot x spacing To: PD-List pd-list@iem.at Date: Thursday, August 27, 2009, 10:48 PM Hi, quick qestion: is there a way to make the x spacing

Re: [PD] data structures variable plot x spacing

2009-08-27 Thread João Pais
Sure. Use a variable instead of a static value, like [plot some_array 0 1 0 0 x-spacing], and make sure x-spacing is in the relevant [struct] object. Then use [set] to change x-spacing. Unfortunately, you still can't do x0(0:max-px)(0:max), or x0(0:100) (0:100)(q), though you could hack your

[PD] data-structures short questions

2009-03-20 Thread João Pais
Hi, after creating a structure (object) with append, is it possible to delete it? Or just better hide it with 0 on the drawing objects? (the patch is only to display data, not to be used by the user) João -- Friedenstr. 58 10249 Berlin (Deutschland) Tel +49 30 42020091 | Mob +49 162

Re: [PD] data-structures short questions

2009-03-20 Thread Jonathan Wilkes
wrote: From: João Pais jmmmp...@googlemail.com Subject: [PD] data-structures short questions To: PD-List pd-list@iem.at Date: Friday, March 20, 2009, 9:02 PM Hi, after creating a structure (object) with append, is it possible to delete it? Or just better hide it with 0 on the drawing objects

Re: [PD] data-structures short questions

2009-03-20 Thread João Pais
I don't think it's possible to delete a ds object unless selecting it with the mouse (or maybe with the mouse msg). I thought so as well. so a better choice might be to hide it. Notice that if you turn off drawing instructions by using an inlet to [filledcurve], for example, all other

Re: [PD] data-structures short questions

2009-03-20 Thread João Pais
ah, now I know. it never happened to me, because I never used enough to make them visible. that's a nice example patch. btw, in order to control the display of the individual elements I used -v in the definitions of the base struct (that gets taken by the array). that allows for individual

Re: [PD] data-structures short questions

2009-03-20 Thread João Pais
sorry, forgot to ask: and there's also no way of deleting an array without deleting the whole window with clear, is there? ah, now I know. it never happened to me, because I never used enough to make them visible. that's a nice example patch. btw, in order to control the display of the

Re: [PD] data-structures short questions

2009-03-20 Thread Jonathan Wilkes
--- On Sat, 3/21/09, João Pais jmmmp...@googlemail.com wrote: From: João Pais jmmmp...@googlemail.com Subject: Re: [PD] data-structures short questions To: Jonathan Wilkes jancs...@yahoo.com, PD-List pd-list@iem.at Date: Saturday, March 21, 2009, 2:37 AM sorry, forgot to ask: and there's

[PD] Data Structures

2008-04-28 Thread matohawk
Hello, I have another question about Data Structures. Why when we load a score with a message pd, like this : ; pd-data read file.txt the following message : warning: pd-template-toplevel: multiply defined warning: pd-template-element: multiply defined displays in the console? Using with Pd

Re: [PD] data structures and library abstraction question

2007-01-31 Thread Roman Haefeli
On Tue, 2007-01-30 at 15:07 -0800, Rich E wrote: Hi all, I just had a look at Frank's data structure tutorial, in which he suggests making a library abstraction for all structure templates. This seems like something I have to do for some patches I'm working on, but it would also be nice to

Re: [PD] data structures and library abstraction question

2007-01-31 Thread Frank Barknecht
Hallo, Rich E hat gesagt: // Rich E wrote: I just had a look at Frank's data structure tutorial, in which he suggests making a library abstraction for all structure templates. This seems like something I have to do for some patches I'm working on, but it would also be nice to just be able to

[PD] data structures and library abstraction question

2007-01-30 Thread Rich E
Hi all, I just had a look at Frank's data structure tutorial, in which he suggests making a library abstraction for all structure templates. This seems like something I have to do for some patches I'm working on, but it would also be nice to just be able to check if the library is open, and if

Re: [PD] data structures - get symbol?

2006-11-19 Thread João Miguel Pais
This should work since 0.39, but as always with data structures: This is an area that's changing a lot with every new Miller-Pd so I'd recommend to use 0.40 instead. With that, you can [set] and [get] symbol fields as shown in attached patch. Setting them on creation with [append] doesn't seem to

Re: [PD] data structures - get symbol?

2006-11-19 Thread Frank Barknecht
Hallo, João Miguel Pais hat gesagt: // João Miguel Pais wrote: one more question though: I tried to apply the [get] help patch in my patch, but it didn't work. in the following picture, when I press traverse pd breaks up. on the other hand, like in your patch connecting directly

Re: [PD] data structures - get symbol?

2006-11-19 Thread João Miguel Pais
[traverse pd-SUBPATCH, next( | [pointer] hmm, komisch. I had also tried out with next (I thought I had sent the picture with it). the result is the same, pd quits when the [next( after the traverse comes. there's also another structure type on the same subpatch, but I guess that