rsc3/doc/examples/graph/_scm/tipnso.scm

18 lines
536 B
Scheme
Raw Normal View History

2022-08-24 13:53:18 +00:00
;; tipnso.scm (rd)
(import (rnrs) (rsc3))
(define tipnso
(let* ((t (impulse ar (mouse-x kr 1 32 0 0.1) 0))
(e (decay2 t 0.01 (mce2 0.1 0.15)))
(n (ti-rand 16 72 t))
(f (midi-cps (add n (add 36 (mul 12 (ti-rand 0 1 t)))))))
(mrg2 (mul (add (mul (sin-osc ar f 0) e)
(bpf (mul (pink-noise ar) e)
(add 36 (midi-cps n))
(fdiv 175 (midi-cps n))))
(mce2 0.15 0.1))
(send-trig t 0 n))))
(audition (out 0 tipnso))