audiochebband

audiochebband — Chebyshev band pass and band reject filter

Synopsis

struct              GstAudioChebBand;

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GstObject
               +----GstElement
                     +----GstBaseTransform
                           +----GstAudioFilter
                                 +----GstAudioFXBaseIIRFilter
                                       +----GstAudioChebBand

Properties

  "lower-frequency"          gfloat                : Read / Write
  "mode"                     GstAudioChebBandMode  : Read / Write
  "poles"                    gint                  : Read / Write
  "ripple"                   gfloat                : Read / Write
  "type"                     gint                  : Read / Write
  "upper-frequency"          gfloat                : Read / Write

Description

Attenuates all frequencies outside (bandpass) or inside (bandreject) of a frequency band. The number of poles and the ripple parameter control the rolloff.

This element has the advantage over the windowed sinc bandpass and bandreject filter that it is much faster and produces almost as good results. It's only disadvantages are the highly non-linear phase and the slower rolloff compared to a windowed sinc filter with a large kernel.

For type 1 the ripple parameter specifies how much ripple in dB is allowed in the passband, i.e. some frequencies in the passband will be amplified by that value. A higher ripple value will allow a faster rolloff.

For type 2 the ripple parameter specifies the stopband attenuation. In the stopband the gain will be at most this value. A lower ripple value will allow a faster rolloff.

As a special case, a Chebyshev type 1 filter with no ripple is a Butterworth filter.

Note

Be warned that a too large number of poles can produce noise. The most poles are possible with a cutoff frequency at a quarter of the sampling rate.

Example launch line

1
2
3
4
5
6