Skip to content

Instantly share code, notes, and snippets.

@klahrich
Last active April 10, 2020 01:00
Show Gist options
  • Save klahrich/a99bd1a5d547c100a82a0f05fe1a3b68 to your computer and use it in GitHub Desktop.
Save klahrich/a99bd1a5d547c100a82a0f05fe1a3b68 to your computer and use it in GitHub Desktop.
from pyo import *
s = Server().boot()
# Drops the gain
s.amp = 0.1
# Ramp up of amplitude. From 0.0 to 1.0 in 2 seconds
amp = SigTo(value=1, time=2.0, init=0.0)
# Creates a sine wave as the source to process.
a = Sine(mul=amp).out(dur=5)
# Passes the sine wave through an harmonizer.
h1 = Harmonizer(a, mul=amp).out(0, dur=5)
# Then the harmonized sound through another harmonizer.
h2 = Harmonizer(h1, mul=amp).out(0, dur=5)
# And again...
h3 = Harmonizer(h2, mul=amp).out(1, dur=5)
# And again...
h4 = Harmonizer(h3, mul=amp).out(1, dur=5)
s.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment