Metro

Metro(time=1, poly=1)

Generates isochronous trigger signals.

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

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

Parent class : PyoObject

Parameters:

    time : float or PyoObject, optional
        Time between each trigger in seconds. Defaults to 1.
    poly : int, optional
        Metronome polyphony. Denotes how many independent streams are 
        generated by the metronome, allowing overlapping processes.
        Available only at initialization. Defaults to 1.

Methods:

    setTime(x) : Replace the `time` attribute.

Attributes:

    time : float or PyoObject. Time between each trigger in seconds.

Notes:

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

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> m = Metro(time=.125).play()
    >>> t = TrigRand(m, min=400, max=1000)
    >>> a = Sine(freq=t, mul=.5).out()

Methods details:

    Metro.setTime(x):

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