rsc3/doc/help/ugen/unary-ops/ceil.help.scrbl

18 lines
249 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(ceil a)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Round signal up.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let* ((x (mouse-x kr 65 95 0 0.1))
(f (midi-cps (mce2 (u:floor x) (ceil x)))))
(audition
(out 0 (mul (sin-osc ar f 0) 0.1))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00