beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
op id:29402bba-48ee-4f28-94f0-bdc345e6bb67
Changes the gain / volume

summary (oneliner)

The Gain-op can be used to make an audio signal more silent.

The GainNode interface represents a change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels.

doc

youtube id

collections

related ops

Inputs

audio in (Object)

The audio signal you want to make more silent / louder


gain (Number)

Amount of gain to apply, 0 = not audible, 1 = output will be as loud as the input signal, everything bigger than 1 will make the audio signal louder.


Outputs

audio out (Object)

Audio output which contains the the input signal with the gain applied, can be connected to the Ops.WebAudio.Output op e.g.


Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using Gain

Public Patches using Gain