rsc3/doc/help/ugen/unary-ops/cos-h.help.scrbl

19 lines
278 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(cos-h a)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Cosine.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let* ((a (line kr (- pi) pi 1 remove-synth))
(b (sub (fdiv (cos-h a) (/ pi 2)) 1))
(f (mul-add b 900 1600)))
(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