rsc3/doc/help/ugen/analysis/amplitude.help.scrbl

23 lines
449 B
Text
Raw Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{(amplitude rate in attackTime releaseTime)}
2022-08-28 10:27:01 +00:00
2022-08-24 13:53:18 +00:00
Amplitude follower. Tracks the peak amplitude of a signal.
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(audition
(out 0 (mul (pulse ar 90 0.3)
(amplitude kr (in 1 ar num-output-buses) 0.01 0.01))))
2022-08-28 10:27:01 +00:00
]
2022-08-24 13:53:18 +00:00
2022-08-28 10:27:01 +00:00
@racketblock[
2022-08-24 13:53:18 +00:00
(let* ((a (amplitude kr (in 1 ar num-output-buses) 0.01 0.01))
(f (mul-add a 1200 400)))
(audition (out 0 (mul (sin-osc ar f 0) 0.3))))
2022-08-28 10:27:01 +00:00
]