skip to content

Gain

A basic gain (volume) effect. Can be automated with an LFO to create tremolo effects or an Envelope to affect attack or delay.

class
Gain
extends
Box
tag
<gain-blam>
see

Props

name type default description
gain number 1

The gain of the gain node. This is relative to the input gain. The default value, 1, means no change.

mix number 0

How much wet, versus dry, signal should come through. In most cases, this is a proportion of 1. If mix is set to 0.75, 75% of the signal will be wet and 25% dry.

bypass boolean false

Whether to send just the dry signal. If set, the dry signal is sent using the wet signal’s gain value, for parity.

Examples

Examples that use the Gain element: