2 summary:: Compressor, expander, limiter, gate, ducker
3 categories:: UGens>Dynamics
6 General purpose (hard-knee) dynamics processor.
11 The signal to be compressed / expanded / gated.
14 The signal whose amplitude determines the gain applied to the input signal. Often the same as in (for standard gating or compression) but should be different for ducking.
17 Control signal amplitude threshold, which determines the break point between slopeBelow and slopeAbove. Usually 0..1. The control signal amplitude is calculated using RMS.
20 Slope of the amplitude curve below the threshold. If this slope > 1.0, the amplitude will drop off more quickly the softer the control signal gets; when the control signal is close to 0 amplitude, the output should be exactly zero -- hence, noise gating. Values < 1.0 are possible, but it means that a very low-level control signal will cause the input signal to be amplified, which would raise the noise floor.
23 Same thing, but above the threshold. Values < 1.0 achieve compression (louder signals are attenuated); > 1.0, you get expansion (louder signals are made even louder). For 3:1 compression, you would use a value of 1/3 here.
26 The amount of time it takes for the amplitude adjustment to kick in fully. This is usually pretty small, not much more than 10 milliseconds (the default value). I often set it as low as 2 milliseconds (0.002).
29 The amount of time for the amplitude adjustment to be released. Usually a bit longer than clampTime; if both times are too short, you can get some (possibly unwanted) artifacts.
36 If any of this is confusing, see http://en.wikipedia.org/wiki/Audio_level_compression
42 // example signal to process
46 Impulse.ar(8, 0,LFSaw.kr(0.3, 0, -0.3, 0.3)),
47 0.001, 0.3, Mix.ar(Pulse.ar([80,81], 0.3)))
58 Impulse.ar(8, 0,LFSaw.kr(0.3, 0, -0.3, 0.3)),
59 0.001, 0.3, Mix.ar(Pulse.ar([80,81], 0.3)));
61 thresh: MouseX.kr(0.1, 1),
77 Impulse.ar(8, 0,LFSaw.kr(0.3, 0, -0.3, 0.3)),
78 0.001, 0.3, Mix.ar(Pulse.ar([80,81], 0.3)));
80 thresh: MouseX.kr(0.1, 1),
96 Impulse.ar(8, 0,LFSaw.kr(0.3, 0, -0.3, 0.3)),
97 0.001, 0.3, Mix.ar(Pulse.ar([80,81], 0.3)));
99 thresh: MouseX.kr(0.1, 1),
115 Impulse.ar(8, 0,LFSaw.kr(0.3, 0, -0.3, 0.3)),
116 0.001, 0.3, Mix.ar(Pulse.ar([80,81], 0.3)));
118 thresh: MouseX.kr(0.1, 1),