Mix(input, voices=1, mul=1, add=0)
Mix audio streams to arbitrary number of streams.
Mix the object's audio streams in `ìnput` into `voices` streams.
Parent class : PyoObject
Parameters:
input : PyoObject or list of PyoObjects Input signal(s) to mix the streams. voices : int, optional Number of streams of the Mix object. If more than 1, input object's streams are alternated and added into Mix object's streams. Defaults to 1.
Notes:
The mix method of PyoObject creates and returns a new Mix object with mixed streams of the object that called the method. User don't have to instantiate this class directly. These two calls are identical: >>> b = a.mix() >>> b = Mix(a)
Examples:
>>> s = Server().boot() >>> s.start() >>> a = Sine([random.uniform(400,600) for i in range(50)], mul=.01) >>> b = Mix(a).out() >>> print len(a) 50 >>> print len(b) 1