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

16 lines
251 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(trig1 in dur)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
When `in' is trigered output a unit signal for `dur' seconds.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((a (trig1 (dust ar 1) 0.2)))
(audition (out 0 (mul3 (f-sin-osc ar 800 0) a 0.2))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00