Phasor(freq=100, phase=0, mul=1, add=0)
A simple phase incrementor.
Output is a periodic ramp from 0 to 1.
Parent class : PyoObject
Parameters:
freq : float or PyoObject, optional Frequency in cycles per second. Defaults to 100. 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).
Examples:
>>> s = Server().boot() >>> s.start() >>> f = Phasor(freq=1, mul=1000, add=500) >>> sine = Sine(freq=f).out()
Methods details:
Phasor.setFreq(x): Replace the `freq` attribute. Parameters: x : float or PyoObject new `freq` attribute. Phasor.setPhase(x): Replace the `phase` attribute. Parameters: x : float or PyoObject new `phase` attribute.