#lang scribble/manual
@(require (for-label racket))

@title{(decay in decayTime)}


Exponential decay.  This is essentially the same as integrator
except that instead of supplying the coefficient directly, it is
caculated from a 60 dB decay time. This is the time required for
the integrator to lose 99.9 % of its value or -60dB. This is useful
for exponential decaying envelopes triggered by impulses.

Used as an envelope.


@racketblock[
(audition
 (out 0 (mul (decay (impulse ar (x-line kr 1 50 20 remove-synth) 0.25) 0.2)
	     (pink-noise ar))))
]


