Cos

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

Performs a cosine function on audio signal.

Returns the cosine of input.

Parent class : PyoObject

Parameters:

    input : PyoObject
        Input signal, angle in radians.

Methods:

    setInput(x, fadetime) : Replace the `input` attribute.

Attributes:

    input : PyoObject. Input signal to filter.

Examples:

    >>> s = Server(duplex=1).boot()
    >>> s.start()
    >>> import math
    >>> a = Phasor(500, mul=math.pi*2)
    >>> b = Cos(a).out()

Methods details:

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