rsc3/doc/help/ugen/information/sample-rate.help.scrbl
2022-08-28 12:27:01 +02:00

17 lines
280 B
Racket

#lang scribble/manual
@(require (for-label racket))
@title{sample-rate}
Server sample rate.
Compare a sine tone derived from sample rate with a 440Hz tone.
@racketblock[
(let ((freq (mce2 (mul sample-rate 0.01) 440)))
(audition (out 0 (mul (sin-osc ar freq 0) 0.1))))
]