| 1 |
""" |
| 2 |
03-parallel-proc.py - Multiple processes on a single source. |
| 3 |
|
| 4 |
This example shows how to play different audio objects side-by-side. |
| 5 |
Every processing object (ie the ones that modify an audio source) have |
| 6 |
a first argument called "input". This argument takes the audio object |
| 7 |
to process. |
| 8 |
|
| 9 |
Note the input variable given to each processing object and the call |
| 10 |
to the out() method of each object that should send its samples to the |
| 11 |
output. |
| 12 |
|
| 13 |
""" |
| 14 |
from pyo import * |
| 15 |
|
| 16 |
s = Server().boot() |
| 17 |
s.amp = 0.1 |
| 18 |
|
| 19 |
|
| 20 |
a = Sine() |
| 21 |
|
| 22 |
|
| 23 |
hr = Harmonizer(a).out() |
| 24 |
|
| 25 |
|
| 26 |
ch = Chorus(a).out() |
| 27 |
|
| 28 |
|
| 29 |
sh = FreqShift(a).out() |
| 30 |
|
| 31 |
s.gui(locals()) |