2 summary:: Track peak signal amplitude.
4 categories:: UGens>Analysis>Amplitude
9 Outputs the peak amplitude of the signal received at the input. If level
10 is below maximum, the level decreases by the factor given in
14 Internally, the absolute value of the signal is used, to prevent
15 underreporting the peak value if there is a negative DC offset. To obtain
16 the minimum and maximum values of the signal as is, use the
17 link::Classes/RunningMin:: and link::Classes/RunningMax:: UGens.
44 PeakFollower.ar(Dust.ar(20, Line.kr(0, 1, 4)), 1.0) * 1500 + 200,
55 PeakFollower.ar(Dust.ar(20, Line.kr(0, 1, 4)), 0.999) * 1500 + 200,
62 // mouse x controls decay, center of the
66 decay = MouseX.kr(0.99, 1.00001).min(1.0);
68 PeakFollower.ar(Dust.ar(20), decay) * 1500 + 200,
78 // follow a sine lfo, decay controlled by mouse x
82 decay = MouseX.kr(0, 1.1).min(1.0);
84 PeakFollower.kr(SinOsc.kr(0.2), decay) * 200 + 500,