rsc3/doc/help/ugen/triggers/peak.help.scm

9 lines
239 B
Scheme
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
;; (peak trig reset)
;; outputs the maximum value read at the `trig' input until `reset' is
;; triggered.
(let* ((p (peak (dust ar 20) (impulse ar 0.4 0)))
(f (mul-add p 500 200)))
(audition (out 0 (mul (sin-osc ar f 0) 0.2))))