Reference gain()

gain()

The gain of the filter in dB units. p5.Filter.gain() controls the gain parameter of a Biquad Filter node

Examples

Syntax

gain(gain)

Parameters

gain
Number: gain value in dB units. The gain is only used for lowshelf, highshelf, and peaking filters.

Related References