Linseg

Linseg(list, loop=False, mul=1, add=0)

Trace a series of line 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.

Methods:

    setList(x) : Replace the `list` attribute.
    setLoop(x) : Replace the `loop` attribute.

Attributes:

    list : list of tuples. Points used to construct the line segments.
    loop : boolean. Looping mode.

Notes:

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

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> l = Linseg([(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:

    Linseg.setList(x):

        Replace the `list` attribute.
        
        Parameters:

        x : list of tuples
            new `list` attribute.

    Linseg.setLoop(x):

        Replace the `loop` attribute.
        
        Parameters:

        x : boolean
            new `loop` attribute.