Skip to main content

Gain Node

Multiplies the audio on all channels by a linear gain factor. Gain changes are applied with a linear ramp over rampDurationMs to avoid clicks.


Configuration​

This object does not provide any configuration options.


Properties​

Inherits properties from its parents, Node, SwitchboardObject.

gain​

Type: Float

Default: 1.0
Range: 0.0 to 16.0

The linear gain factor applied to the signal: 0 is silence, 1 leaves the signal unchanged and above 1 boosts it, which can clip without a Switchboard.Limiter after it. Defaults to 1.

rampDurationMs​

Type: Int

Default: 100
Minimum: 0

Duration in milliseconds of the linear ramp applied when gain changes. 0 applies changes immediately. Defaults to 100.


Actions​

Inherits actions from its parent, SwitchboardObject.

This object does not provide any additional actions.


Events​

This object does not provide any events.