Fader

Fader(fadein=0.01, fadeout=0.10, dur=0, mul=1, add=0)

Fadein - fadeout envelope generator.

Generate an amplitude envelope between 0 and 1 with control on fade times and total duration of the envelope.

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

Parent class : PyoObject

Parameters:

    fadein : float, optional
        Rising time of the envelope in seconds. Defaults to 0.01.
    fadeout : float, optional
        Falling time of the envelope in seconds. Defaults to 0.1.
    dur : float, optional
        Total duration of the envelope. Defaults to 0, which means wait 
        for the stop() method to start the fadeout.

Methods:

    play() : Start processing without sending samples to the output. 
        Triggers the envelope.
    stop() : Stop processing. Triggers the envelope's fadeout 
        if `dur` is set to 0.
    setFadein(x) : Replace the `fadein` attribute.
    setFadeout(x) : Replace the `fadeout` attribute.
    setDur(x) : Replace the `dur` attribute.

Attributes:

    fadein : float. Rising time of the envelope in seconds.
    fadeout : float. Falling time of the envelope in seconds.
    dur : float. Total duration of the envelope.

Notes:

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

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> f = Fader(fadein=1, fadeout=2, dur=5, mul=.5)
    >>> a = Noise(mul=f).out()
    >>> f.play()

Methods details:

    Fader.play(dur=0, delay=0):

        Start processing without sending samples to output. 
        This method is called automatically at the object creation.
        
        Parameters:
        
        dur : float, optional
            Duration, in seconds, of the object's activation. The default is 0
            and means infinite duration.
        delay : float, optional
            Delay, in seconds, before the object's activation. Defaults to 0.

    Fader.stop(self):

        Stop processing.

    Fader.setFadein(x):

        Replace the `fadein` attribute.
        
        Parameters:

        x : float
            new `fadein` attribute.

    Fader.setFadeout(x):

        Replace the `fadeout` attribute.
        
        Parameters:

        x : float
            new `fadeout` attribute.

    Fader.setDur(x):

        Replace the `dur` attribute.
        
        Parameters:

        x : float
            new `dur` attribute.