Hilbert

Hilbert(input, mul=1, add=0)

Hilbert transform.

Parent class : PyoObject

Parameters:

    input : PyoObject
        Input signal to filter.

Methods:

    setInput(x, fadetime) : Replace the `input` attribute.
    get(identifier, all) : Return the first sample of the current 
        buffer as a float.

Attributes:

    input : PyoObject. Input signal to filter.

Notes:

    Real and imaginary parts are two separated set of streams. 
    The user should call :
    
    Hilbert['real'] to retrieve the real part.
    Hilbert['imag'] to retrieve the imaginary part.

Examples:

    >>> a = SfPlayer(SNDS_PATH + "/accord.aif", loop=True).out(0)
    >>> b = Hilbert(a)
    >>> quad = Sine([250, 500], [0, .25])
    >>> mod1 = b['real'] * quad[0]
    >>> mod2 = b['imag'] * quad[1]
    >>> up = mod1 - mod2
    >>> down = mod1 + mod2
    >>> up.out(1)

Methods details:

    Hilbert.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. Default to 0.05.

    Hilbert.get(identifier="real", all=False):

        Return the first sample of the current buffer as a float.
        
        Can be used to convert audio stream to usable Python data.
        
        "real" or "imag" must be given to `identifier` to specify
        which stream to get value from.
        
        Parameters:

            identifier : string {"real", "imag"}
                Address string parameter identifying audio stream.
                Defaults to "real".
            all : boolean, optional
                If True, the first value of each object's stream
                will be returned as a list. Otherwise, only the value
                of the first object's stream will be returned as a float.
                Defaults to False.