InputFader(input)
Audio streams crossfader.
Parameters:
input : PyoObject Input signal.
Methods:
setInput(x, fadetime) : Replace the `input` attribute.
Attributes:
input : PyoObject. Input signal.
Notes:
The setInput method, on object with `input` attribute, uses an InputFader object to performs crossfade between the old and the new `input` of an object.
Examples:
>>> s = Server().boot() >>> s.start() >>> a = Sine(450, mul=.5) >>> b = Sine(650, mul=.5) >>> c = InputFader(a).out() >>> # to created a crossfade, calls: >>> c.setInput(b, 20)
Methods details:
InputFader.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.