Cloud

Cloud(density=10, poly=1)

Generates random triggers.

Generates random triggers with control over the generation density.

A trigger is an audio signal with a value of 1 surrounded by 0s.

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

Parent class : PyoObject

Parameters:

    density : float or PyoObject, optional
        Average number of triggers per second. Defaults to 10.
    poly : int, optional
        Cloud polyphony. Denotes how many independent streams are 
        generated by the object, allowing overlapping processes.
        Available only at initialization. Defaults to 1.

Methods:

    setDensity(x) : Replace the `density` attribute.

Attributes:

    density : float or PyoObject. Average number of triggers per second.

Notes:

    The out() method is bypassed. Cloud's signal can not be sent to audio outs.
    
    Cloud has no `mul` and `add` attributes.

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> t = LinTable([(0,0), (200,1), (2000,.3), (8191,0)])
    >>> m = Cloud(density=25, poly=8).play()
    >>> tr = TrigRand(m, min=400, max=1000)
    >>> tr2 = TrigEnv(m, table=t, dur=.5, mul=.5)
    >>> a = Sine(freq=tr, mul=tr2).out()

Methods details:

    Cloud.setDensity(x):

        Replace the `density` attribute.
        
        Parameters:
        
        x : float or PyoObject
            New `density` attribute.