rsc3/doc/help/ugen/controls/decay.help.scrbl
2022-08-28 12:27:01 +02:00

22 lines
556 B
Racket

#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))))
]