AudioGraphBuilder.channelGain() method

A per-channel gain, in dB (one entry per channel, in channel order; a channel beyond the list stays at unity). Unlike a diagonal matrixMix, each channel can be faded independently at runtime (setParams with gainsDb).

Signature:

channelGain(input: AudioNode, opts: {
        gainsDb: number[];
    }): AudioNode;

Parameters

Parameter Type Description

input

AudioNode

opts

{ gainsDb: number[]; }

Returns: