Biquad

Biquad(input, freq=1000, q=1, type=0, mul=1, add=0)

A sweepable general purpose biquadratic digital filter.

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

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.

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.

Examples:

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

Methods details:

    Biquad.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.

    Biquad.setFreq(x):

        Replace the `freq` attribute.
        
        Parameters:

        x : float or PyoObject
            New `freq` attribute.

    Biquad.setQ(x):

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

        x : float or PyoObject
            New `q` attribute.

    Biquad.setType(x):

        Replace the `type` attribute.
        
        Parameters:

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