Limiter Module — Brickwall Limiter

Hard-knee brickwall limiter at the end of the master chain. Prevents clipping and protects speakers by clamping peaks above –6 dBFS with 20:1 ratio.

Files

static/js/synth/modules/limiter.js

Parameters

None (uses fixed values).

Exports

Export Signature Purpose
paramDefs Empty (no user-facing params)
build (ctx, params, input, dur) Create DynamicsCompressor, connect to input, return compressor
update (nodes, params) No-op (fixed parameters)

Fixed Parameters

Param Value Description
Threshold –6 dB Peaks above –6 dBFS trigger limiting
Ratio 20:1 Essentially hard limiting — 20 dB reduction for 1 dB over
Attack 1 ms Fast enough to catch transient peaks
Release 50 ms Quick recovery, minimal pumping

Integration

Added as a processor module entry. The backward loop wires it as the last processor before masterGain, ensuring all summed voices pass through it.

{ id: 'limiter', label: 'Limiter', colour: '#e74c3c', type: 'processor',
  params: {}, build: function (ctx, params, input, dur) { return limiterMod.build(ctx, params, input, dur); } }