rsc3/doc/help/ugen/binary-ops/abs-dif.help.scrbl
2022-08-28 12:27:01 +02:00

17 lines
309 B
Racket

#lang scribble/manual
@(require (for-label racket))
@title{(abs-dif a b)}
Calculates the value of (abs (- a b). Finding the magnitude of the
difference of two values is a common operation.
@racketblock[
(audition
(out 0 (mul (f-sin-osc ar 440 0)
(abs-dif 0.2 (mul (f-sin-osc ar 2 0) 0.5)))))
]