| 1 |
11-handling-channels-4.py - Explicit control of the physical outputs. |
| 2 |
============================================================================================================================================ |
| 3 |
|
| 4 |
|
| 5 |
If `chnl` is a list, successive values in the list will be assigned |
| 6 |
to successive streams. |
| 7 |
|
| 8 |
.. code-block:: python |
| 9 |
|
| 10 |
from pyo import * |
| 11 |
|
| 12 |
# Creates a Server with 8 channels |
| 13 |
s = Server(nchnls=8).boot() |
| 14 |
|
| 15 |
amps = [0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4] |
| 16 |
|
| 17 |
# Generates 8 sine waves with |
| 18 |
# increasing amplitudes |
| 19 |
a = Sine(freq=500, mul=amps) |
| 20 |
|
| 21 |
# Sets the output channels ordering |
| 22 |
a.out(chnl=[3, 4, 2, 5, 1, 6, 0, 7]) |
| 23 |
|
| 24 |
s.gui(locals()) |
| 25 |
|