diff --git a/gui/img/shelf_filter.png b/gui/img/shelf_filter.png new file mode 100644 index 00000000..24298a59 Binary files /dev/null and b/gui/img/shelf_filter.png differ diff --git a/gui/index.html b/gui/index.html index e7edd9c2..a4fd0f2c 100644 --- a/gui/index.html +++ b/gui/index.html @@ -2347,6 +2347,30 @@

Functions

Configure one stage of the filter (0 to 3) with band reject (notch) response. Q controls the width of rejected frequencies.

+

setLowShelf(stage, frequency, gain, slope);

+

Configure one stage of the filter (0 to 3) with low shelf response. + A low shelf filter attenuates or amplifies signals below the specified frequency. + Frequency controls the slope midpoint, gain is in dB and can be both + positive or negative. The slope parameter controls steepness of gain transition. + A slope of 1 yields maximum steepness without overshoot, + lower values yield a less steep slope. See the picture below for a visualization + of the slope parameter's effect. + Be careful with positive gains and slopes higher than 1 as they introduce gain + (see warning below). +

+

+

setHighShelf(stage, frequency, gain, slope);

+

Configure one stage of the filter (0 to 3) with high shelf response. + A high shelf filter attenuates or amplifies signals above the specified frequency. + Frequency controls the slope midpoint, gain is in dB and can be both + positive or negative. The slope parameter controls steepness of gain transition. + A slope of 1 yields maximum steepness without overshoot, + lower values yield a less steep slope. See the picture below for a visualization + of the slope parameter's effect. + Be careful with positive gains and slopes higher than 1 as they introduce gain + (see warning below). +

+

setCoefficients(stage, array[5]);

Configure one stage of the filter (0 to 3) with an arbitrary filter response. The array of coefficients is in order: B0, B1, B2, A1, A2.