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

15 lines
413 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)}
Amplitude follower. Tracks the peak amplitude of a signal.
(audition
(out 0 (mul (pulse ar 90 0.3)
(amplitude kr (in 1 ar num-output-buses) 0.01 0.01))))
(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))))