Expseg

Expseg(list, loop=False, exp=10, inverse=True, mul=1, add=0)

Trace a series of exponential segments between specified break-points.

The play() method starts the envelope and is not called at the object creation time.

Parent class : PyoObject

Parameters:

    list : list of tuples
        Points used to construct the line segments. Each tuple is a
        new point in the form (time, value). Times are given in seconds
        and must be in increasing order.
    loop : boolean, optional
        Looping mode. Defaults to False.
    exp : float, optional
        Exponent factor. Used to control the slope of the curves.
        Defaults to 10.
    inverse : boolean, optional
        If True, downward slope will be inversed. Useful to create 
        biexponential curves. Defaults to True.

Methods:

    setList(x) : Replace the `list` attribute.
    setLoop(x) : Replace the `loop` attribute.
    setExp(x) : Replace the `exp` attribute.
    setInverse(x) : Replace the `inverse` attribute.

Attributes:

    list : list of tuples. Points used to construct the line segments.
    loop : boolean. Looping mode.
    exp : float. Exponent factor.    
    inverse : boolean. Inversion of downward slope.

Notes:

    The out() method is bypassed. Expseg's signal can not be sent to audio outs.

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> l = Expseg([(0,500),(.03,1000),(.1,700),(1,500),(2,500)], loop=True)
    >>> a = Sine(freq=l, mul=.5).out()
    >>> # then call:
    >>> l.play()

Methods details:

    Expseg.setList(x):

        Replace the `list` attribute.

        Parameters:

        x : list of tuples
            new `list` attribute.

    Expseg.setLoop(x):

        Replace the `loop` attribute.

        Parameters:

        x : boolean
            new `loop` attribute.

    Expseg.setExp(x):

        Replace the `exp` attribute.

        Parameters:

        x : float
            new `exp` attribute.

    Expseg.setInverse(x):

        Replace the `inverse` attribute.

        Parameters:

        x : boolean
            new `inverse` attribute.