[PD] about data structures

Chuckk Hubbard badmuthahubbard at gmail.com
Thu Nov 17 13:22:13 CET 2005


 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20051117/bd158ba2/attachment.htm>
-------------- next part --------------
#N canvas 499 93 634 530 12;
#N canvas 16 64 525 425 field 1;
#X obj 59 100 cnv 20 20 20 att attr A 7 10 0 10 -261681 -66577 0;
#X obj 157 283 cnv 20 20 20 decsus decsusr D 7 10 0 10 -261681 -66577
0;
#X obj 300 282 cnv 20 20 20 x xr X 7 10 0 10 -261681 -66577 0;
#X obj 408 400 cnv 20 20 20 rel relr R 7 10 0 10 -261681 -66577 0;
#X coords 0 0 0.00189036 0.002331 400 280 0;
#X restore 73 448 pd field;
#X obj 212 109 metro 100;
#X msg 194 72 1;
#X msg 234 73 0;
#X msg 373 52 \; attr get_pos \; decsusr get_pos \; xr get_pos \; relr
get_pos;
#X obj 22 218 r att;
#X obj 128 218 r decsus;
#X obj 357 216 r x;
#X obj 510 219 r rel;
#X obj 22 252 unpack f f;
#X obj 62 313 t b f;
#X obj 78 368 -;
#X obj 62 285 / 400;
#X msg 62 341 1;
#X floatatom 22 340 5 0 0 0 - - -;
#X floatatom 81 399 5 0 0 0 - - -;
#X obj 124 256 unpack f f;
#X obj 164 317 t b f;
#X obj 180 372 -;
#X obj 164 289 / 400;
#X msg 164 345 1;
#X floatatom 124 344 5 0 0 0 - - -;
#X floatatom 183 403 5 0 0 0 - - -;
#X obj 354 276 unpack f f;
#X obj 394 337 t b f;
#X obj 410 392 -;
#X obj 394 309 / 400;
#X msg 394 365 1;
#X floatatom 354 364 5 0 0 0 - - -;
#X floatatom 413 423 5 0 0 0 - - -;
#X obj 510 253 unpack f f;
#X obj 550 314 t b f;
#X obj 566 369 -;
#X obj 550 286 / 400;
#X msg 550 342 1;
#X floatatom 510 341 5 0 0 0 - - -;
#X floatatom 569 400 5 0 0 0 - - -;
#X connect 1 0 4 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 5 0 9 0;
#X connect 6 0 16 0;
#X connect 7 0 23 0;
#X connect 8 0 30 0;
#X connect 9 0 14 0;
#X connect 9 1 12 0;
#X connect 10 0 13 0;
#X connect 10 1 11 1;
#X connect 11 0 15 0;
#X connect 12 0 10 0;
#X connect 13 0 11 0;
#X connect 16 0 21 0;
#X connect 16 1 19 0;
#X connect 17 0 20 0;
#X connect 17 1 18 1;
#X connect 18 0 22 0;
#X connect 19 0 17 0;
#X connect 20 0 18 0;
#X connect 23 0 28 0;
#X connect 23 1 26 0;
#X connect 24 0 27 0;
#X connect 24 1 25 1;
#X connect 25 0 29 0;
#X connect 26 0 24 0;
#X connect 27 0 25 0;
#X connect 30 0 35 0;
#X connect 30 1 33 0;
#X connect 31 0 34 0;
#X connect 31 1 32 1;
#X connect 32 0 36 0;
#X connect 33 0 31 0;
#X connect 34 0 32 0;


More information about the Pd-list mailing list