Debian Codegraph @

pyo/examples/x01-intro/04-serial-proc.py

raw symbols SCIP
1 """
2 04-serial-proc.py - Chaining processes on a single source.
3
4 This example shows how to chain processes on a single source.
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 Harmonizer.
10
11 """
12 from pyo import *
13
14 s = Server().boot()
15 s.amp = 0.1
16
17 # Creates a sine wave as the source to process.
18 a = Sine().out()
19
20 # Passes the sine wave through an harmonizer.
21 h1 = Harmonizer(a).out()
22
23 # Then the harmonized sound through another harmonizer.
24 h2 = Harmonizer(h1).out()
25
26 # And again...
27 h3 = Harmonizer(h2).out()
28
29 # And again...
30 h4 = Harmonizer(h3).out()
31
32 s.gui(locals())