v0.1Latest
Gain
Gain
Applies a fixed gain offset in dB to an audio signal while preserving its stereo Audio Channel Layout. Useful for level trimming and gain staging.

Inputs
Audio In
- ID:
audio - Kind:
audio - Rate:
audio - Audio Channel Layout:
stereo - Unit:
normalized - Range: -1 to 1 normalized
- Coercion: Implicit
- Description: Audio signal input
- Default:
0
Outputs
Audio Out
- ID:
audio - Kind:
audio - Rate:
audio - Audio Channel Layout:
stereo - Unit:
normalized - Range: -1 to 1 normalized
- Coercion: Implicit
- Description: Audio signal output
Parameters
Gain
- ID:
gainDb - Type:
float - Control:
slider - Range or Options: -96 to 24 dB, step 0.1
- Default:
0
Notes
- Canonical ID:
util.gain - Category:
utilities - Runtime Surface: control
- Runtime Targets:
control-main-thread - JUCE Early Access: Supported
- Early Access Note: Native-supported in the plugin for the current catalog/runtime support contract.
- Formula: audioOut = audioIn × 10^(gainDb / 20)
- Positive values boost amplitude, negative values attenuate it, and 0 dB is unity gain.