TrigExpseg

TrigExpseg(input, list, exp=10, inverse=True, mul=1, add=0)

Exponential segments trigger.

TrigExpseg starts reading break-points exponential 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.
    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:

    setInput(x, fadetime) : Replace the `input` attribute.
    setList(x) : Replace the `list` attribute.
    setExp(x) : Replace the `exp` attribute.
    setInverse(x) : Replace the `inverse` attribute.

Attributes:

    input : PyoObject. Audio trigger signal.
    list : list of tuples. Points used to construct the line segments.
    exp : float. Exponent factor.    
    inverse : boolean. Inversion of downward slope.

Notes:

    TrigExpseg 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. TrigExpseg's signal can not be sent 
    to audio outs.

Examples:

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

Methods details:

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

    TrigExpseg.setList(x):

        Replace the `list` attribute.
        
        Parameters:

        x : list of tuples
            new `list` attribute.

    TrigExpseg.setExp(x):

        Replace the `exp` attribute.

        Parameters:

        x : float
            new `exp` attribute.

    TrigExpseg.setInverse(x):

        Replace the `inverse` attribute.

        Parameters:

        x : boolean
            new `inverse` attribute.