Switch(input, outs=2, voice=0.00, mul=1, add=0)
Audio switcher.
Switch takes an audio input and interpolates between multiple outputs.
User can retrieve the different streams by calling the output number between brackets. obj[0] retrieve the first stream, obj[outs-1] the last one.
Parent class : PyoObject
Parameters:
input : PyoObject Input signal to process. outs : int, optional Number of outputs. Defaults to 2. voice : float or PyoObject Voice position pointer, between 0 and outs-1. Defaults to 0.
Methods:
setInput(x, fadetime) : Replace the `input` attribute. setVoice(x) : Replace the `voice` attribute.
Attributes:
input : PyoObject. Input signal to process. voice : float or PyoObject. Voice position pointer.
Examples:
>>> s = Server(nchnls=2).boot() >>> s.start() >>> a = SfPlayer(SNDS_PATH + "/transparent.aif", loop=True) >>> lf = Sine(freq=.25, mul=1.5, add=1.5) >>> b = Switch(a, outs=3, voice=lf) >>> c = WGVerb(b[0], feedback=.8).out() >>> d = Disto(b[1], mul=.1).out() >>> e = Delay(b[2], delay=.2, feedback=.6).out()
Methods details:
Switch.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. Switch.setVoice(x): Replace the `voice` attribute. Parameters: x : float or PyoObject new `voice` attribute.