Debian Codegraph @

docs/_sources/examples/02-controls/10-handling-channels-3.rst.txt

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