[PD] aenv~

Ben Saylor bensaylor at fastmail.fm
Tue Oct 25 03:57:33 CEST 2005


Hi Conor,

You have it right, but there are a few other things.  Take a look at the 
attached patch (it's normally included with the external - are you sure 
you didn't have it?).

Ben

On Monday 24 October 2005 06:58 pm, Conor wrote:
> Hi folks,
> another beginner question...
> I was hoping to use a an adaptable envelope on an audio signal. I
> copied over the external aenv~ into my extra folder. When i start a
> new patch and make a new aenv~ object, it seems to initialize the
> object properly providing 5 inlets and 1 outlet. I couldn't find any
> examples so via trial by error (and peaking into the src :-) , far as
> i could make out, the first inlet is for a bang or 1 to trigger the
> envelope, the second to fifth are the values for a typical ADSR
> envelope. In my understanding of such an envelope the attack,decay
> and release times  are measured in miliseconds while sustain is a
> scaling factor (0-1 - floating point). I then scale the audio output
> of what is coming out of aenv~. Firstly is my understanding of this
> correct? Secondly are the values based on the unit circle (0-1) or
> what scale should I consider.
>
> Best regards,
> Conor
>
>
>
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
#N canvas 10 20 762 475 10;
#X floatatom 238 150 5 0 0 0 - - -;
#X floatatom 281 150 5 0 0 0 - - -;
#X floatatom 324 150 5 0 0 0 - - -;
#X floatatom 367 150 5 0 0 0 - - -;
#X msg 8 115 1;
#X msg 50 115 0;
#N canvas 0 0 450 300 graph1 0;
#X array env 88200 float 0;
#X coords 0 1 88199 0 300 140 1;
#X restore 455 327 graph;
#X msg 20 250 bang;
#X obj 142 353 tabwrite~ env;
#X obj 291 335 *~;
#X obj 312 444 dac~;
#X obj 318 410 *~;
#X obj 364 395 vsl 8 64 0 1 0 1 empty empty empty 0 -8 0 8 -262144
-1 -1 4900 1;
#X obj 170 211 aenv~ 100 200 0.6 500;
#X obj 430 222 phasor~ 100;
#X obj 430 266 lop~ 1000;
#X obj 430 244 -~ 0.5;
#X obj 238 75 vsl 8 64 10 2000 0 1 empty empty attack 0 -8 0 8 -262144
-1 -1 600 1;
#X obj 281 75 vsl 8 64 10 2000 0 1 empty empty decay 0 -8 0 8 -262144
-1 -1 800 1;
#X obj 367 75 vsl 8 64 10 2000 0 1 empty empty release 0 -8 0 8 -262144
-1 -1 2600 1;
#X obj 324 75 vsl 8 64 0 1 0 1 empty empty sustain 0 -8 0 8 -262144
-1 -1 4400 1;
#X obj 430 146 notein 1;
#X obj 430 196 mtof;
#X text 42 206 nonzero -> attack;
#X text 484 81 Ben Saylor <bsaylor at macalester.edu>;
#X obj 8 20 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1
;
#X text 27 17 <- click here;
#X obj 20 70 del 800;
#X text 452 6 aenv~: asymptotic ADSR envelope generator;
#X msg 198 73 lina;
#X msg 198 104 loga;
#X text 104 73 linear attack;
#X text 120 105 log attack;
#X msg 198 133 zero;
#X text 77 219 0 -> release;
#X connect 0 0 13 1;
#X connect 1 0 13 2;
#X connect 2 0 13 3;
#X connect 3 0 13 4;
#X connect 4 0 7 0;
#X connect 4 0 13 0;
#X connect 5 0 13 0;
#X connect 7 0 8 0;
#X connect 9 0 11 0;
#X connect 11 0 10 0;
#X connect 11 0 10 1;
#X connect 12 0 11 1;
#X connect 13 0 8 0;
#X connect 13 0 9 0;
#X connect 14 0 16 0;
#X connect 15 0 9 1;
#X connect 16 0 15 0;
#X connect 17 0 0 0;
#X connect 18 0 1 0;
#X connect 19 0 3 0;
#X connect 20 0 2 0;
#X connect 21 0 22 0;
#X connect 21 1 13 0;
#X connect 22 0 14 0;
#X connect 25 0 4 0;
#X connect 25 0 27 0;
#X connect 27 0 5 0;
#X connect 29 0 13 0;
#X connect 30 0 13 0;
#X connect 33 0 13 0;


More information about the Pd-list mailing list