rsc3/doc/help/ugen/noise/t-exp-rand.help.scrbl

20 lines
415 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(t-exp-rand lo hi trig)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Generates a random float value in exponential distribution from lo
to hi each time the trig signal changes from nonpositive to
positive values lo and hi must both have the same sign and be
non-zero.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let* ((t (dust kr 10))
(f (t-exp-rand 300 3000 t)))
(audition (out 0 (mul (sin-osc ar f 0) 0.2))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00