Allpass2

Allpass2(input, freq=1000, bw=100, mul=1, add=0)

Second-order phase shifter allpass.

This kind of filter is used in phaser implementation. The signal of this filter, when added to original sound, creates a notch in the spectrum at frequencies that are in phase opposition.

Parent class : PyoObject

Parameters:

    input : PyoObject
        Input signal to filter.
    freq : float or PyoObject, optional
        Center frequency of the filter. Defaults to 1000.
    bw : float or PyoObject, optional
        Bandwidth of the filter in Hertz. Defaults to 100.

Methods:

    setInput(x, fadetime) : Replace the `input` attribute.
    setFreq(x) : Replace the `freq` attribute.
    setBw(x) : Replace the `bw` attribute.

Attributes:

    input : PyoObject. Input signal to filter.
    freq : float or PyoObject. Center frequency of the filter.
    bw : float or PyoObject. Bandwidth of the filter.

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> # 3 STAGES PHASER
    >>> a = Noise(.025).mix(2).out()
    >>> blfo = Sine(freq=.1, mul=250, add=500)
    >>> b = Allpass2(a, freq=blfo, bw=125).out()
    >>> clfo = Sine(freq=.14, mul=500, add=1000)
    >>> c = Allpass2(b, freq=clfo, bw=350).out()
    >>> dlfo = Sine(freq=.17, mul=1000, add=2500)
    >>> d = Allpass2(c, freq=dlfo, bw=800).out()

Methods details:

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

    Allpass2.setFreq(x):

        Replace the `freq` attribute.
        
        Parameters:

        x : float or PyoObject
            New `freq` attribute.

    Allpass2.setBw(x):

        Replace the `bw` attribute.
        
        Parameters:

        x : float or PyoObject
            New `bw` attribute.