rsc3/doc/examples/ugen/envelopes/pause-self-when-done.help.scm

13 lines
389 B
Scheme
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
;; (pause-self-when-done src)
;; pause the synth when the 'done' flag of the unit at `src' is set.
(let* ((x (mouse-x kr -1 1 0 0.1))
(e (linen x 1 0.1 1 pause-synth)))
(audition (out 0 (mul (sin-osc ar 440 0) e))))
(let* ((x (mouse-x kr -1 1 0 0.1))
(e (linen x 2 0.1 2 do-nothing)))
(audition (mrg2 (pause-self-when-done e)
(out 0 (mul (sin-osc ar 440 0) e)))))