2022-08-24 13:53:18 +00:00
|
|
|
#lang scribble/manual
|
|
|
|
@(require (for-label racket))
|
|
|
|
|
|
|
|
@title{(decay in decayTime)}
|
|
|
|
|
2022-08-28 10:27:01 +00:00
|
|
|
|
2022-08-24 13:53:18 +00:00
|
|
|
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.
|
|
|
|
|
2022-08-28 10:27:01 +00:00
|
|
|
|
|
|
|
@racketblock[
|
2022-08-24 13:53:18 +00:00
|
|
|
(audition
|
|
|
|
(out 0 (mul (decay (impulse ar (x-line kr 1 50 20 remove-synth) 0.25) 0.2)
|
|
|
|
(pink-noise ar))))
|
2022-08-28 10:27:01 +00:00
|
|
|
]
|
|
|
|
|
2022-08-24 13:53:18 +00:00
|
|
|
|