<div>
<div>I was thinking something like this.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Chuckk Hubbard ha scritto:<br><br>&gt; I agree that would be great.<br>&gt; Incidentally, have you considered using canvases to draw your envelope?
<br>&gt;<br><br>nope. I ca't imagine how...<br>looking at the [cnv] help doesn't suggest me anything.<br><br>however, this is what I did: <a href="http://xaero.ath.cx/cms/en/adsr-new.html">http://xaero.ath.cx/cms/en/adsr-new.html
</a><br>it can be useful for graphing an ADSR, not for editing it.<br><br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I appreciate recently added datastructs new features.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; however I think they still miss a big functionality:<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; often, to graphically represent a structure of data, are needed<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; various<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; type of calculations; it is pretty unuseful i.e. draw a polygon<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; with all<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; coordinates referred to 0,0 (object's center).
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; in order to paint a simple adsr struct, in addition to the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; template, I<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; have to create a &quot;data-controller&quot;, which prepares *ALL* points of the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; adsr-graph (
e.g.: x1,y1,x2,y2,....), *NOT* only the a,d,s,r.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; i guess this feature has been requested many times, but, wouldn't be<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; better have the ability of making additions,subtractions,etc directly<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; inside the drawpolygon declaration?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; in that case, plotting that adsr line it's just:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; [drawpolygon 0 900 0 0 a 100 (a+d) s (a+d+100) s (a+d+100+r) 0]<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; what pd developers says about this?
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; --<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ciao<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Federico<br></blockquote></div>