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

18 lines
313 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(exp-rand lo hi)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Generates a single random float value in an exponential
distributions from `lo' to `hi'.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(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))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00