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

19 lines
383 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(lin-rand lo hi minmax)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Generates a single random float value in linear distribution from
lo to hi, skewed towards lo if minmax < 0, otherwise skewed towards
hi.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((f (lin-rand 200 10000 (mce2 -1 1)))
(a (line kr 0.4 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