rsc3/doc-schelp/HelpSource/Classes/Amplitude.scrbl

85 lines
1.4 KiB
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
#lang scribble/manual
@(require (for-label racket))
@title{Amplitude}
Amplitude follower@section{categories}
UGens>Analysis>Amplitude
@section{description}
Tracks the peak amplitude of a signal.
@section{classmethods}
@section{method}
ar, kr
@section{argument}
in
Input signal
@section{argument}
attackTime
60dB convergence time for following attacks.
@section{argument}
releaseTime
60dB convergence time for following decays.
@section{argument}
mul
@section{argument}
add
@section{examples}
@racketblock[
(
// use input amplitude to control SinOsc frequency
{
SinOsc.ar(
Amplitude.kr(
Blip.ar(3, 20) * LFNoise1.kr(0.1).range(0, 1),
MouseX.kr(0.001, 1, 1),
MouseY.kr(0.001, 1, 1),
1200,
400
),
0, 0.3)
}.play;
)
::
]
@racketblock[
// use input amplitude to control Pulse amplitude - use headphones to prevent feedback.
{ Pulse.ar(90, 0.3, Amplitude.kr(SoundIn.ar(0))) }.play;
::
]
@racketblock[
(
// use input amplitude to control SinOsc frequency - use headphones to prevent feedback.
{
SinOsc.ar(
Amplitude.kr(
SoundIn.ar(0),
0.01,
0.01,
1200,
400
),
0, 0.3)
}.play;
)
::
]