| 1 |
""" |
| 2 |
05-output-channels.py - Sending signals to different physical outputs. |
| 3 |
|
| 4 |
The simplest way to choose the output channel where to send the sound |
| 5 |
is to give it as the first argument of the out() method. In fact, the |
| 6 |
signature of the out() method reads as: |
| 7 |
|
| 8 |
.out(chnl=0, inc=1, dur=0, delay=0) |
| 9 |
|
| 10 |
`chnl` is the output where to send the first audio channel (stream) of |
| 11 |
the object. `inc` is the output increment for other audio channels. |
| 12 |
`dur` is the living duration, in seconds, of the process and `delay` |
| 13 |
is a delay, in seconds, before activating the process. A duration of |
| 14 |
0 means play forever. |
| 15 |
|
| 16 |
""" |
| 17 |
from pyo import * |
| 18 |
|
| 19 |
s = Server().boot() |
| 20 |
s.amp = 0.1 |
| 21 |
|
| 22 |
|
| 23 |
n = Noise() |
| 24 |
|
| 25 |
|
| 26 |
lp = ButLP(n).out() |
| 27 |
|
| 28 |
|
| 29 |
hp = ButHP(n).out(1) |
| 30 |
|
| 31 |
s.gui(locals()) |