[CM] Snd and envelopes

Gregory D. Weber gdweber@indiana.edu
Thu, 18 Mar 2004 11:40:15 -0500


I, too, had been wondering about that.  Thanks for asking (Richard)
and answering (Bill)!

Bill Schottstaedt writes:
 >  > how do I create and apply an envelope that will cause a sound
 >  > of any length to ramp up in a fixed amount of time - say, .05 sec
 >  > - at the beginning and ramp down in a fixed amount of time at
 >  > the end?
 > 
 > Since the x axis is arbitrary, the simplest way is probably
 > to use the duration of the sound as the x extent:
 > 
 > (let ((dur (/ (frames) (srate))))
 >    (env-sound (list 0 0  0.05 1  (- dur .05) 1  dur 0)))
 > 
 > 
 > _______________________________________________
 > Cmdist mailing list
 > Cmdist@ccrma.stanford.edu
 > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
 > 

-- 
Gregory D. Weber
Associate Professor of Computer Science, Indiana University East
2325 Chester Boulevard, Richmond, Indiana 47374-1289, U.S.A.
Telephone: (765) 973-8420
WWW:       http://mypage.iu.edu/~gdweber/