Osc(table, freq=1000, phase=0, interp=2, mul=1, add=0)
A simple oscillator reading a waveform table.
Parent class : PyoObject
Parameters:
table : PyoTableObject Table containing the waveform samples. 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. interp : int, optional Choice of the interpolation method. Defaults to 2. 1 : no interpolation 2 : linear 3 : cosinus 4 : cubic
Methods:
setTable(x) : Replace the `table` attribute. setFreq(x) : Replace the `freq` attribute. setPhase(x) : Replace the `phase` attribute. setInterp(x) : Replace the `interp` attribute.
Attributes:
table : PyoTableObject. Table containing the waveform samples. freq : float or PyoObject, Frequency in cycles per second. phase : float or PyoObject, Phase of sampling (0 -> 1). interp : int {1, 2, 3, 4}, Interpolation method.
Examples:
>>> s = Server().boot() >>> s.start() >>> t = HarmTable([1,0,.33,0,.2,0,.143]) >>> a = Osc(table=t, freq=100).out()
Methods details:
Osc.setTable(x): Replace the `table` attribute. Parameters: x : PyoTableObject new `table` attribute. Osc.setFreq(x): Replace the `freq` attribute. Parameters: x : float or PyoObject new `freq` attribute. Osc.setPhase(x): Replace the `phase` attribute. Parameters: x : float or PyoObject new `phase` attribute. Osc.setInterp(x): Replace the `interp` attribute. Parameters: x : int {1, 2, 3, 4} new `interp` attribute.