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