1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
10-handling-channels-3.py - Random multichannel outputs.
============================================================================================================================================
If `chnl` is negative, streams begin at 0, increment the output
number by inc and wrap around the global number of channels.
Then, the list of streams is scrambled.
.. code-block:: python
from pyo import *
# Creates a Server with 8 channels
s = Server(nchnls=8).boot()
amps = [0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4]
# Generates 8 sine waves with
# increasing amplitudes
a = Sine(freq=500, mul=amps)
# Shuffles physical output channels
a.out(chnl=-1)
s.gui(locals())
|