rsc3/doc/examples/ugen/unary-ops/is-strictly-positive.help.scm

13 lines
308 B
Scheme
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
;; (is-strictly-positive a)
;; Predicate to determine if a value is strictly positive.
(define (is-strictly-positive a)
(gt a 0.0))
(let* ((a (line ar -1 1 1 remove-synth))
(b (is-strictly-positive a))
(f (mul-add (mce2 a b) 600 900)))
(audition
(out 0 (mul (sin-osc ar f 0) 0.1))))