Sine

Sine(freq=1000, phase=0, mul=1, add=0)

A simple sine wave oscillator.

Parent class : PyoObject

Parameters:

    freq : float or PyoObject, optional
        Frequency in cycles per second. Defaults to 1000.
    phase : float or PyoObject, optional
        Phase of sampling, expressed as a fraction of a cycle (0 to 1). 
        Defaults to 0.

Methods:

    setFreq(x) : Replace the `freq` attribute.
    setPhase(x) : Replace the `phase` attribute.

Attributes:

    freq : float or PyoObject, Frequency in cycles per second.
    phase : float or PyoObject, Phase of sampling (0 -> 1).

See also : Osc Phasor

Examples:

    >>> s = Server().boot()
    >>> s.start()
    >>> sine = Sine(freq=500).out()

Methods details:

    Sine.setFreq(x):

        Replace the `freq` attribute.
        
        Parameters:

        x : float or PyoObject
            new `freq` attribute.

    Sine.setPhase(x):

        Replace the `phase` attribute.
        
        Parameters:

        x : float or PyoObject
            new `phase` attribute.