I was thinking something like this.
Chuckk Hubbard ha scritto:
I agree that would be great. Incidentally, have you considered using canvases to draw your envelope?
nope. I ca't imagine how... looking at the [cnv] help doesn't suggest me anything.
however, this is what I did: http://xaero.ath.cx/cms/en/adsr-new.html it can be useful for graphing an ADSR, not for editing it.
I appreciate recently added datastructs new features.
however I think they still miss a big functionality: often, to graphically represent a structure of data, are needed various type of calculations; it is pretty unuseful i.e. draw a polygon with all coordinates referred to 0,0 (object's center).
in order to paint a simple adsr struct, in addition to the template, I have to create a "data-controller", which prepares *ALL* points of the adsr-graph (e.g.: x1,y1,x2,y2,....), *NOT* only the a,d,s,r.
i guess this feature has been requested many times, but, wouldn't be better have the ability of making additions,subtractions,etc directly inside the drawpolygon declaration?
in that case, plotting that adsr line it's just: [drawpolygon 0 900 0 0 a 100 (a+d) s (a+d+100) s (a+d+100+r) 0]
what pd developers says about this?
-- ciao Federico
Chuckk Hubbard ha scritto:
I was thinking something like this.
I can't see the advantage of using canvases. on my system, your patch looks like a subpatch with 4 boxes that (in edit mode) are draggable.
however you could make the same thing using a [struct] and four [filledpolygon] inside a template.... maybe you don't get where the problem is.
the first problem is contraints: if you look at my adsr (http://xaero.ath.cx/cms/en/adsr-new.html) you see that you can drag every point, *wherever* you want. this is not right, because the x coord. of release point couldn't never be less than the x coord. of decay point, and so on. so, my patch solves half of the problem, and could be useful only to graph that struct.
instead, we are used to edit datastructures directly from the graph window.
constraints and scales are a *very good* thing, indicating that we are moving to something better, but I stronlgy feel the lack of mathematics inside drawing instructions.
when they will be real, probably I will be using datastructures for everyday work. maybe my new applications will be coded directly in puredata :)
Chuckk Hubbard ha scritto: > I agree that would be great. > Incidentally, have you considered using canvases to draw your envelope? > nope. I ca't imagine how... looking at the [cnv] help doesn't suggest me anything. however, this is what I did: http://xaero.ath.cx/cms/en/adsr-new.html <http://xaero.ath.cx/cms/en/adsr-new.html> it can be useful for graphing an ADSR, not for editing it.
[...]