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

18 lines
373 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(t-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 uniform distribution from lo each
time the trig signal changes from nonpositive to positive values
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let* ((t (dust kr (mce2 5 12)))
(f (t-rand (mce2 200 1600) (mce2 500 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