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