rsc3/doc/help/ugen/information/sample-rate.help.scrbl

18 lines
280 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{sample-rate}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Server sample rate.
Compare a sine tone derived from sample rate with a 440Hz tone.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let ((freq (mce2 (mul sample-rate 0.01) 440)))
(audition (out 0 (mul (sin-osc ar freq 0) 0.1))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00