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

18 lines
238 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(u:floor a)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Round signal down.
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 (u:floor 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