TableMorph(input, table, sources)
Morphs between multiple PyoTableObjects.
Uses an index into a list of PyoTableObjects to morph between adjacent tables in the list. The resulting morphed function is written into the `table` object at the beginning of each buffer size. The tables in the list and the resulting table must be equal in size.
Parent class : PyoObject
Parameters:
input : PyoObject Morphing index between 0 and 1. 0 is the first table in the list and 1 is the last. table : NewTable The table where to write morphed waveform. sources : list of PyoTableObject List of tables to interpolate from.
Methods:
setInput(x, fadetime) : Replace the `input` attribute. setTable(x) : Replace the `table` attribute. setSources(x) : Replace the `sources` attribute.
Attributes:
input : PyoObject. Morphing index between 0 and 1. table : NewTable. The table where to write samples. sources : list of PyoTableObject. List of tables to interpolate from.
Notes:
The out() method is bypassed. TableMorph returns no signal. TableMorph has no `mul` and `add` attributes.
Examples:
>>> s = Server(duplex=1).boot() >>> s.start() >>> t1 = HarmTable([1,.5,.33,.25,.2,.167,.143,.125,.111]) >>> t2 = HarmTable([1,0,.33,0,.2,0,.143,0,.111]) >>> t3 = NewTable(length=8192./s.getSamplingRate(), chnls=1) >>> lfo = Sine(.25, 0, .5, .5) >>> mor = TableMorph(lfo, t3, [t1,t2]) >>> osc = Osc(t3, freq=200, mul=.5).out()
Methods details:
TableMorph.setInput(x, fadetime=0.05): Replace the `input` attribute. Parameters: x : PyoObject New signal to process. fadetime : float, optional Crossfade time between old and new input. Defaults to 0.05. TableMorph.setTable(x): Replace the `table` attribute. Parameters: x : NewTable new `table` attribute. TableMorph.setSources(x): Replace the `sources` attribute. Parameters: x : list of PyoTableObject new `sources` attribute.