Lookup(table, index, mul=1, add=0)
Uses table to do waveshaping on an audio signal.
Lookup uses a table to apply waveshaping on an input signal `index`. The index must be between -1 and 1, it is automatically scaled between 0 and len(table)-1 and is used as a position pointer in the table.
Parent class : PyoObject
Parameters:
table : PyoTableObject Table containing the transfert function. index : PyoObject Audio signal, between -1 and 1, internally converted to be used as the index position in the table.
Methods:
setTable(x) : Replace the `table` attribute. setIndex(x) : Replace the `index` attribute. table : PyoTableObject. Table containing the transfert function. index : PyoObject. Audio input used as the table index.
Examples:
>>> s = Server().boot() >>> s.start() >>> lfo = Sine(freq=[.15,.2], mul=.45, add=.5) >>> a = Sine(freq=[100,150], mul=lfo) >>> t = CosTable([(0,-1),(3072,-0.85),(4096,0),(5520,.85),(8192,1)]) >>> b = Lookup(table=t, index=a, mul=1.-lfo).out()
Methods details:
Lookup.setTable(x): Replace the `table` attribute. Parameters: x : PyoTableObject new `table` attribute. Lookup.setIndex(x): Replace the `index` attribute. Parameters: x : PyoObject new `index` attribute.