[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] decay time
Hi -
Check out the help files for EnvGen and Env, they show you how to put
nice envelopes on synth sounds, including how to free them nicely.
(Basically, rather than freeing the synth directly, you use an
envelope inside your synthdef, and when you tell that envelope to end,
it can free the synth after the proper decay has happened.)
Dan
2007/12/13, marinos <marinos@xxxxxxxxxxxxxx>:
> Hi all,
> I'm new to this list and to sc as well, so I'd be gratefull if I could
> get some help.
>
> I have this simple synthsef :
>
> (
> SynthDef(\Sine, {arg freq=440, amp=1.0, phs=0, pan=0;
> Out.ar(0,Pan2.ar(SinOsc.ar(freq,phs),pan,Line.kr(0,amp,10)
> ))}).load(s);
> )
>
> When I want to free an instance I have running, a click is heard and the
> sounds stops very abrubtly. I want to find a way to use a decay
> envelope, so when I free the synth it will fade away slowly to silence.
> I can't think of a way to do so..
>
> Thanks in advance
> _______________________________________________
> sc-users mailing list
> sc-users@xxxxxxxxxxxxxxx
> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>
--
http://www.mcld.co.uk