rsc3/doc/help/ugen/triggers/t-delay.help.scm

14 lines
421 B
Scheme
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
;; (t-delay trigger delayTime)
;; Delays a trigger by a given time. Any triggers which arrive in the
;; time between an input trigger and its delayed output, are ignored.
;; trigger - input trigger signal.
;; delayTime - delay time in seconds.
(let* ((s (mul (sin-osc ar 440 0) 0.1))
(z (impulse ar 2 0))
(l (mul z 0.1))
(r (mul (toggle-ff (t-delay z 0.5)) s)))
(audition (out 0 (mce2 l r))))