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

22 lines
326 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(trig in dur)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
When `in' is trigerred output the trigger value for `dur' seconds.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((s (f-sin-osc ar 800 0))
(g (trig (dust ar 1) 0.2)))
(audition (out 0 (mul3 s g 0.5))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(audition (out 0 (trig (dust ar 4) 0.1)))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00