| 1 |
""" |
| 2 |
07-multichannel-expansion-2.py - Extended multichannel expansion. |
| 3 |
|
| 4 |
When using multichannel expansion with lists of different lengths, |
| 5 |
the longer list is used to set the number of streams and smaller |
| 6 |
lists will be wrap-around to fill the holes. |
| 7 |
|
| 8 |
This feature is very useful to create complex sonorities. |
| 9 |
|
| 10 |
""" |
| 11 |
from pyo import * |
| 12 |
|
| 13 |
s = Server().boot() |
| 14 |
|
| 15 |
|
| 16 |
a = SumOsc( |
| 17 |
freq=[100, 150.2, 200.5, 250.7], |
| 18 |
ratio=[0.501, 0.753, 1.255], |
| 19 |
index=[0.3, 0.4, 0.5, 0.6, 0.7, 0.4, 0.5, 0.3, 0.6, 0.7, 0.3, 0.5], |
| 20 |
mul=0.05, |
| 21 |
) |
| 22 |
|
| 23 |
|
| 24 |
rev = Freeverb(a.mix(2), size=0.80, damp=0.70, bal=0.30).out() |
| 25 |
|
| 26 |
s.gui(locals()) |