rsc3/doc/help/ugen/unary-ops/is-positive.help.scrbl
2022-08-28 12:27:01 +02:00

24 lines
364 B
Racket

#lang scribble/manual
@(require (for-label racket))
@title{(is-positive a)}
Predicate to determine if a value is positive.
@racketblock[
(define (is-positive a)
(ge a 0.0))
]
@racketblock[
(let* ((a (line ar -1 1 1 remove-synth))
(b (is-positive a))
(f (mul-add (mce2 a b) 600 900)))
(audition
(out 0 (mul (sin-osc ar f 0) 0.1))))
]