Pulsar(table, env, freq=100, frac=0.50, phase=0, interp=2, mul=1, add=0)
Pulsar synthesis oscillator.
Pulsar synthesis produces a train of sound particles called pulsars that can make rhythms or tones, depending on the fundamental frequency of the train. Varying the `frac` parameter changes the portion of the period assigned to the waveform and the portion of the period assigned to its following silence, but maintain the overall pulsar period. This results in an effect much like a sweeping band-pass filter.
Parent class : PyoObject
Parameters:
table : PyoTableObject Table containing the waveform samples. env : PyoTableObject Table containing the envelope samples. freq : float or PyoObject, optional Frequency in cycles per second. Defaults to 100. frac : float or PyoObject, optional Fraction of the whole period (0 -> 1) given to the waveform. The rest will be filled with zeros. Defaults to 0.5. 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. setEnv(x) : Replace the `emv` attribute. setFreq(x) : Replace the `freq` attribute. setFrac(x) : Replace the `frac` attribute. setPhase(x) : Replace the `phase` attribute. setInterp(x) : Replace the `interp` attribute.
Attributes:
table : PyoTableObject. Table containing the waveform samples. env : PyoTableObject. Table containing the envelope samples. freq : float or PyoObject, Frequency in cycles per second. frac : float or PyoObject, Fraction of the period assigned to waveform. phase : float or PyoObject, Phase of sampling (0 -> 1). interp : int {1, 2, 3, 4}, Interpolation method.
See also : Osc
Examples:
>>> s = Server().boot() >>> s.start() >>> w = HarmTable([1,0,.33,0,2,0,.143,0,.111]) >>> e = HannTable() >>> lfo = Sine(.15, mul=.2, add=.5) >>> a = Pulsar(table=w, env=e, freq=80, frac=lfo, mul=.25).out()
Methods details:
Pulsar.setTable(x): Replace the `table` attribute. Parameters: x : PyoTableObject new `table` attribute. Pulsar.setEnv(x): Replace the `env` attribute. Parameters: x : PyoTableObject new `env` attribute. Pulsar.setFreq(x): Replace the `freq` attribute. Parameters: x : float or PyoObject new `freq` attribute. Pulsar.setFrac(x): Replace the `frac` attribute. Parameters: x : float or PyoObject new `frac` attribute. Pulsar.setPhase(x): Replace the `phase` attribute. Parameters: x : float or PyoObject new `phase` attribute. Pulsar.setInterp(x): Replace the `interp` attribute. Parameters: x : int {1, 2, 3, 4} new `interp` attribute.