13 lines
499 B
Scheme
13 lines
499 B
Scheme
;; (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.
|
|
|
|
(audition
|
|
(out 0 (mul (decay (impulse ar (x-line kr 1 50 20 remove-synth) 0.25) 0.2)
|
|
(pink-noise ar))))
|