rsc3/doc/help/ugen/noise/exp-rand.help.scrbl
2022-08-28 12:27:01 +02:00

17 lines
313 B
Racket

#lang scribble/manual
@(require (for-label racket))
@title{(exp-rand lo hi)}
Generates a single random float value in an exponential
distributions from `lo' to `hi'.
@racketblock[
(let ((f (exp-rand 100 8000))
(a (line kr 0.5 0 0.01 remove-synth)))
(audition (out 0 (mul (f-sin-osc ar f 0) a))))
]