Skip to main content

Limiter Node

Keeps the signal's peaks at or below ceilingDB. It looks 5 ms ahead, so the gain is already down when a peak arrives, and delays the audio by that much. All channels share one gain, which keeps the stereo image in place. Put it after a Switchboard.Gain above 1 to make audio louder without clipping.


Configuration​

This object does not provide any configuration options.


Properties​

Inherits properties from its parents, Node, SwitchboardObject.

ceilingDB​

Type: Float

Default: -1.0
Range: -48.0 to 0.0
Unit: dB

The highest peak level in dBFS the output reaches.

enabled​

Type: Boolean

Default: true

When false, the gain returns to 1 and the audio passes through, still delayed by the lookahead.

gainReductionDB (Read only)​

Type: Float

Unit: dB

How far the limiter lowered the last buffer at most, in dB. 0 while it isn't limiting.

releaseTimeSeconds​

Type: Float

Default: 0.1
Range: 0.0010000000474974513 to 2.0

Time constant in seconds for the gain to recover after a peak. Shorter is louder but can distort low frequencies.


Actions​

Inherits actions from its parent, SwitchboardObject.

This object does not provide any additional actions.


Events​

This object does not provide any events.


Example​

A voice boosted by 12 dB, kept from clipping:

{
"nodes": [
{ "id": "boost", "type": "Switchboard.Gain", "properties": { "gain": 4.0 } },
{ "id": "limiter", "type": "Switchboard.Limiter" }
],
"connections": [
{ "sourceNode": "inputNode", "destinationNode": "boost" },
{ "sourceNode": "boost", "destinationNode": "limiter" },
{ "sourceNode": "limiter", "destinationNode": "outputNode" }
]
}