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

21 lines
392 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(done src)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
outputs a unit signal if the 'done' flag of the unit at `src' is
set, else output zero.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(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)))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00