rsc3/doc/examples/ugen/noise/i-rand.help.scm

9 lines
230 B
Scheme
Raw Normal View History

2022-08-24 13:53:18 +00:00
;; (i-rand lo hi)
;; Generates a single random integer value in uniform distribution
;; from `lo' to `hi'.
(let ((f (i-rand 200 1200))
(a (line kr 0.2 0 0.1 remove-synth)))
(audition (out 0 (mul (f-sin-osc ar f 0) a))))