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

17 lines
242 B
Racket

#lang scribble/manual
@(require (for-label racket))
@title{(trunc a b)}
Truncate a to a multiple of b.
@racketblock[
(let* ((x (mouse-x kr 60 4000 0 0.1))
(f (trunc x 100)))
(audition
(out 0 (mul (sin-osc ar f 0) 0.1))))
]