TrigLinseg

TrigLinseg(input, list, mul=1, add=0)

Line segments trigger.

TrigLinseg starts reading a break-points line segments each time it receives a trigger in its `input` parameter.

Parent class : PyoObject

Parameters:

    input : PyoObject
        Audio signal sending triggers.
    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.

Methods:

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

Attributes:

    input : PyoObject. Audio trigger signal.
    list : list of tuples. Points used to construct the line segments.

Notes:

    TrigLinseg will sends a trigger signal at the end of the playback. 
    User can retreive the trigger streams by calling obj['trig']. 
    Useful to synchronize other processes. 

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

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> m = Metro(2).play()
    >>> pit = TrigLinseg(m, [(0,1000),(.1,1200),(.2,900),(.3,1000),(2,1000)])
    >>> a = Sine(pit, mul=.3).out()

Methods details:

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

    TrigLinseg.setList(x):

        Replace the `list` attribute.
        
        Parameters:

        x : list of tuples
            new `list` attribute.