Phaser

Phaser(input, freq=1000, spread=1.10, q=10, feedback=0, num=8, mul=1, add=0)

Multi-stages second-order phase shifter allpass filters.

Phaser implements `num` number of second-order allpass filters.

Parent class : PyoObject

Parameters:

    input : PyoObject
        Input signal to filter.
    freq : float or PyoObject, optional
        Center frequency of the first notch. Defaults to 1000.
    spread : float or PyoObject, optional
        Spreading factor for upper notch frequencies. Defaults to 1.1.
    q : float or PyoObject, optional
        Q of the filter as center frequency / bandwidth. Defaults to 10.
    feedback : float or PyoObject, optional
        Amount of output signal which is fed back into the input of the
        allpass chain. Defaults to 0.
    num : int, optional
        The number of allpass stages in series. Determine the number of
        notches in the spectrum. Available at initialization only.
        Defaults to 8.

Methods:

    setInput(x, fadetime) : Replace the `input` attribute.
    setFreq(x) : Replace the `freq` attribute.
    setSpread(x) : Replace the `spread` attribute.
    setQ(x) : Replace the `q` attribute.
    setFeedback(x) : Replace the `feedback` attribute.

Attributes:

    input : PyoObject. Input signal to filter.
    freq : float or PyoObject. Center frequency of the first notch.
    spread : float or PyoObject. Spreading factor for upper notch frequencies.
    q : float or PyoObject. Q factor of the filter.
    feedback : float or PyoObject. Amount of output signal fed back in input.

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> fade = Fader(fadein=.1, mul=.1).play()
    >>> a = Noise(fade).out()
    >>> lf1 = Sine(freq=.1, mul=100, add=250)
    >>> lf2 = Sine(freq=.15, mul=.4, add=1.5)
    >>> b = Phaser(a, freq=lf1, spread=lf2, q=1, num=20, mul=.5).out(1)

Methods details:

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

    Phaser.setFreq(x):

        Replace the `freq` attribute.

        Parameters:

        x : float or PyoObject
            New `freq` attribute.

    Phaser.setSpread(x):

        Replace the `spread` attribute.

        Parameters:

        x : float or PyoObject
            New `spread` attribute.

    Phaser.setQ(x):

        Replace the `q` attribute.

        Parameters:

        x : float or PyoObject
            New `q` attribute.

    Phaser.setFeedback(x):

        Replace the `feedback` attribute.

        Parameters:

        x : float or PyoObject
            New `feedback` attribute.