Biquadx

Biquadx(input, freq=1000, q=1, type=0, stages=4, mul=1, add=0)

A multi-stages sweepable general purpose biquadratic digital filter.

Biquadx is equivalent to a filter consisting of more layers of Biquad with the same arguments, serially connected. It is faster than using a large number of instances of the Biquad object, It uses less memory and allows filters with sharper cutoff.

Parent class : PyoObject

Parameters:

    input : PyoObject
        Input signal to filter.
    freq : float or PyoObject, optional
        Cutoff or center frequency of the filter. Defaults to 1000.
    q : float or PyoObject, optional
        Q of the filter, defined (for bandpass filters) as freq/bandwidth. 
        Should be between 1 and 500. Defaults to 1.
    type : int, optional
        Filter type. Five possible values :
            0 = lowpass (default)
            1 = highpass
            2 = bandpass
            3 = bandstop
            4 = allpass
    stages : int, optional
        The number of filtering stages in the filter stack. Defaults to 4.

Methods:

    setInput(x, fadetime) : Replace the `input` attribute.
    setFreq(x) : Replace the `freq` attribute.
    setQ(x) : Replace the `q` attribute.
    setType(x) : Replace the `type` attribute.
    setType(x) : Replace the `stages` attribute.

Attributes:

    input : PyoObject. Input signal to filter.
    freq : float or PyoObject. Cutoff or center frequency of the filter.
    q : float or PyoObject. Q of the filter.
    type : int. Filter type.
    stages : int. The number of filtering stages.

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> a = Noise(mul=.5)
    >>> lfo = Sine(freq=.25, mul=1000, add=1000)
    >>> f = Biquadx(a, freq=lfo, q=5, type=2).out()

Methods details:

    Biquadx.setInput(x, fadetime=0.05):

        Replace the `input` attribute.

        Parameters:

        x : PyoObject
            New signal to process.
        fadetime : float, optional
            Crossfade time between old and new input. Defaults to 0.05.

    Biquadx.setFreq(x):

        Replace the `freq` attribute.

        Parameters:

        x : float or PyoObject
            New `freq` attribute.

    Biquadx.setQ(x):

        Replace the `q` attribute. Should be between 1 and 500.

        Parameters:

        x : float or PyoObject
            New `q` attribute.

    Biquadx.setType(x):

        Replace the `type` attribute.

        Parameters:

        x : int
            New `type` attribute. 
            0 = lowpass, 1 = highpass, 2 = bandpass, 3 = bandstop, 4 = allpass

    Biquadx.setType(x):

        Replace the `type` attribute.

        Parameters:

        x : int
            New `type` attribute. 
            0 = lowpass, 1 = highpass, 2 = bandpass, 3 = bandstop, 4 = allpass