Interp(input, input2, interp=0.50, mul=1, add=0)
Interpolates between two signals.
Parent class : PyoObject
Parameters:
input : PyoObject First input signal. input2 : PyoObject Second input signal. interp : float or PyoObject, optional Averaging value. 0 means only first signal, 1 means only second signal. Default to 0.5.
Methods:
setInput(x, fadetime) : Replace the `input` attribute. setInput2(x, fadetime) : Replace the `input2` attribute. setInterp(x) : Replace the `interp` attribute.
Attributes:
input : PyoObject. First input signal. input2 : PyoObject. Second input signal. interp : float or PyoObject. Averaging value.
Examples:
>>> s = Server().boot() >>> s.start() >>> sf = SfPlayer(SNDS_PATH + '/accord.aif', speed=1, loop=True, mul=.5) >>> sf2 = SfPlayer(SNDS_PATH + '/transparent.aif', speed=1, loop=True, mul=.5) >>> lfo = Osc(table=SquareTable(20), freq=5, mul=.5, add=.5) >>> a = Interp(sf, sf2, lfo).out()
Methods details:
Interp.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. Default to 0.05. Interp.setInput2(x, fadetime=0.05): Replace the `input2` attribute. Parameters: x : PyoObject New signal to process. fadetime : float, optional Crossfade time between old and new input. Default to 0.05. Interp.setInterp(x): Replace the `interp` attribute. Parameters: x : float or PyoObject New `interp` attribute.