rsc3/doc/help/ugen/triggers/gate.help.scrbl

17 lines
270 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(gate in trig)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
The signal at `in' is passed while `trig' is greater than zero.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((s (mul (f-sin-osc ar 500 0) 1/4))
(t (lf-pulse ar 1 0 1/10)))
(audition (out 0 (gate s t))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00