17 lines
249 B
Racket
17 lines
249 B
Racket
#lang scribble/manual
|
|
@(require (for-label racket))
|
|
|
|
@title{(ceil a)}
|
|
|
|
|
|
Round signal up.
|
|
|
|
|
|
@racketblock[
|
|
(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))))
|
|
]
|
|
|
|
|