linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / Normalizer.schelp
blobc0d6220851a712db3f94130eeacf5bd7ae121293
1 class:: Normalizer
2 summary:: Flattens dynamics.
3 related:: Classes/Amplitude, Classes/Compander, Classes/CompanderD, Classes/Limiter
4 categories:: UGens>Dynamics
7 Description::
9 Normalizes the input amplitude to the given level. Normalizer will not
10 overshoot like  link::Classes/Compander::  will, but it needs to look
11 ahead in the audio. Thus there is a delay equal to twice the value
12 of the  code::dur::  parameter.
15 classmethods::
17 method::ar
19 argument::in
20 The signal to be processed.
22 argument::level
23 The peak output amplitude level to which to normalize the input.
25 argument::dur
27 The buffer delay time. Shorter times will produce smaller delays
28 and quicker transient response times, but may introduce amplitude
29 modulation artifacts.
32 Examples::
34 code::
37 // example signal to process
38 Synth.play({
39         var z;
40         z = Decay2.ar(
41                 Impulse.ar(8, LFSaw.kr(0.25, -0.6, 0.7)),
42                 0.001, 0.3, FSinOsc.ar(500));
43 }, 0.8)
47 Synth.play({
48         var z;
49         z = Decay2.ar(
50                 Impulse.ar(8, LFSaw.kr(0.25, -0.6, 0.7)),
51                 0.001, 0.3, FSinOsc.ar(500));
52         [z, Normalizer.ar(z, 0.4, 0.01)]
53 }, 0.5)