intermediate

Dynamics, Effects and Signal Processing

Control and colour the sound: compressors (threshold, ratio, attack, release, make-up gain), limiters and gates with hysteresis, crest factor, delay and reverb timing from tempo, the Haas zone, de-essing and other processors, where to place them in the chain, and trying compression, normalising and echo on audio files with SoX.

60 min

1. Dynamics: managing loud and quiet

Dynamic range is the difference between the quietest and loudest parts. A voice can swing by 30 dB or more, more than a mix can accommodate. Dynamics processors reduce or shape that range.

Compressor

A compressor turns the level down when it exceeds a threshold.

  • Threshold: the level where compression starts.
  • Ratio: how strongly it acts. At 4:1, every 4 dB above the threshold becomes 1 dB above it.
  • Attack: how quickly it clamps down after the signal crosses the threshold (fast catches peaks; slow lets the start of notes through).
  • Release: how quickly it lets go.
  • Make-up gain: raises the whole signal after compression to restore loudness.

Output above threshold: out = threshold + (in - threshold) / ratio. With a -20 dB threshold and 4:1, an input of -8 dB (12 dB over) gives -20 + 3 = -17 dB, a gain reduction of 9 dB. Used gently, a compressor evens out a vocal; used heavily it sounds squashed and raises feedback risk by bringing quiet background up.

Limiter

A limiter is a compressor with a very high ratio and fast attack, used as a ceiling: nothing gets above it. It protects speakers and amplifiers in the system processor and keeps a stream or recording from clipping.

Gate and expander

A gate mutes a channel when the signal is below a threshold (a drum mic between hits). Use hysteresis (open at the threshold, close a few dB below) and a sensible hold and release so it does not chatter or cut off decays.

Crest factor

Crest factor = peak level - RMS level, in dB. Speech and drums have a high crest factor (15 to 20 dB), a heavily compressed signal a low one. Compression reduces the crest factor, which allows a higher average level before peaks clip.

2. Time-based effects

  • Delay: repeats the sound after a time. For rhythmic echoes match the tempo. The time of a quarter note is 60,000 / BPM milliseconds: 500 ms at 120 BPM. An eighth note is half of that (250 ms), a dotted eighth is 3/4 of a quarter (375 ms) and a sixteenth a quarter of it.
  • Reverb: simulates the reflections of a space. Short reverb sounds like a small room, long reverb like a hall. Use sparingly: in an already reverberant room, more reverb hurts intelligibility.
  • Chorus, flanger and others modulate a delayed copy for movement.
  • Haas zone (rough guide): a copy that arrives within about 1 to 35 ms is fused with the original and heard as one source from the first arrival; beyond about 50 ms it is heard as an echo.

3. Other processors

  • De-esser: reduces harsh “s” sounds.
  • Speaker management (crossover, EQ, delay, limiter): tunes and protects loudspeakers.
  • Feedback suppressors: notch narrow bands that ring; use them as a last resort after good placement and gain management.

4. Where processors go

Inserts put a processor in series in a channel (a compressor on a vocal). Aux sends and returns put an effect in parallel (reverb for many channels). Typical order in a channel: HPF, gate, EQ, compressor. System processing comes after the main mix.

5. Try compression, normalising and echo on a file

Lab: compress, normalise and add an echo with SoX

Compress a recording with SoX's compand effect, normalise it to -3 dB, read its level and add an echo.

Objectives

  • Apply a compressor-style curve (SoX compand) to the recording.
  • Normalise the result so its peak is at -3 dB.
  • Read the new peak and RMS levels.
  • Add a single 60 ms echo.
Console - student@audio-pc:~$
Practice terminal: it checks the commands you type and shows example output. It is not connected to a real device.
Work through the objectives on the left.
Stuck? Type "?" to see the current objective, or "hint" to reveal the command.
student@audio-pc:~$

(The outputs above are examples of the format. Real output varies by software version and setup.)

6. On your bench

  1. Compress a spoken recording with different ratios and listen to the changes.
  2. Set a gate on a drum microphone and adjust the threshold and hysteresis until it neither chatters nor cuts decays.
  3. Calculate delay times for 90, 120 and 140 BPM and set an echo to match.
  4. Measure the crest factor of a voice and of a pink-noise clip.
  5. Set a limiter ceiling on a system processor to protect a speaker’s rated power.

7. Hands-on lab: compression, gating and timing arithmetic

Compressor output, gain reduction, gate state, tempo delay, crest factor and limiter — Python 3
WHAT TO DO
comp_out_x10(in_db, threshold_db, ratio, makeup_db): the output level in tenths of a dB: below the threshold the input is unchanged; above it the output is threshold + (in - threshold) / ratio; then add the make-up gain. Round to the nearest tenth of a dB (round(x * 10)). reduction_x10(in_db, threshold_db, ratio): the gain reduction in tenths of a dB (0 when the input is below the threshold): round((in - out) * 10). gate_open(level_db, threshold_db, hysteresis_db, was_open): True when the level is at or above the threshold; False when it is below threshold - hysteresis; otherwise keep was_open. delay_ms(bpm, note): the delay for a note value in whole milliseconds, rounded to the nearest: "quarter" = 60000 / bpm, "eighth" = half of that, "dotted_eighth" = three quarters of a quarter note, "sixteenth" = a quarter of it; return -1 for any other note. crest_db(peak_db, rms_db): the crest factor in dB. limiter_out(in_db, ceiling_db): the output level of a limiter: the input, but never above the ceiling. haas_zone(delay_ms): "fusion" from 1 to 35 ms inclusive, "echo" above 50 ms, "unclear" in between and "none" below 1 ms.
YOUR CODE (edit here, then press Run)
Ctrl/⌘ + Enter
OUTPUT

8. Common mistakes

Mistake Better
Heavy compression everywhere Gentle settings; check gain reduction
Fast attack on everything Choose attack and release by ear and source
Gate with no hysteresis Open at the threshold, close a few dB lower
Too much reverb in a reverberant room Less is more; cut low frequencies from reverb
Limiter used instead of gain management Fix levels first; limiter is a safety net
Feedback suppressors used to hide poor placement Fix placement and gain first
Effects on inserts that should be on aux sends Use sends for shared effects

9. Key takeaways

  • A compressor reduces level above the threshold by the ratio; attack, release and make-up gain shape it.
  • Output = threshold + (input - threshold) / ratio above the threshold.
  • A limiter is a ceiling; a gate needs hysteresis; crest factor = peak - RMS.
  • Quarter-note delay = 60,000 / BPM ms; the Haas zone is about 1 to 35 ms.
  • Use inserts for per-channel processing and aux sends for shared effects.
A vocal compressor has a -18 dB threshold, a 3:1 ratio and 3 dB of make-up gain. What is the output for an input of -6 dB?

The input is 12 dB over the threshold, which becomes 4 dB over, so the output before make-up is -14 dB; adding 3 dB of make-up gives -11 dB. The gain reduction was 8 dB.

Can You Explain It?

Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.

  • Explain threshold, ratio, attack, release and make-up gain.
  • Describe how a gate with hysteresis behaves.
  • Say how to set the delay of an echo to match a song's tempo.

🧪 Want to practise this on your own computer? See how to set up your lab →

🤖

Need clarification? Ask GT

Hi, I'm GT — your AI tutor for Dynamics, Effects and Signal Processing. What would you like to know?
📝

Knowledge Check

1 of 4

A compressor has a threshold of -20 dB and a ratio of 4:1. A signal peaks at -8 dB. What is the output level (before make-up gain)?

Official References

Report a problem

About: /lessons/snd-dynamics-effects-and-signal-processing