rsc3/doc/help/ugen/envelopes/done.help.scm

12 lines
320 B
Scheme
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
;; (done src)
;; outputs a unit signal if the 'done' flag of the unit at `src' is
;; set, else output zero.
(let* ((x (mouse-x kr -1 1 0 0.1))
(e (linen x 0.1 0.1 0.5 do-nothing))
(l (mul (sin-osc ar 880 0) 0.1))
(r (sin-osc ar 440 0)))
(audition (out 0 (mce2 (mul (done e) l)
(mul e r)))))