Skip to content

Instantly share code, notes, and snippets.

@drogus
Created April 6, 2015 17:57
Show Gist options
  • Save drogus/457001a8e24aa1cffa61 to your computer and use it in GitHub Desktop.
Save drogus/457001a8e24aa1cffa61 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import time
from pyo import *
s = Server(duplex=0).boot()
s.start()
left = [
Sine( phase = 0.25, freq = 400, mul = 0.5 ),
Sine( phase = 0.5, freq = 4000, mul = 0.5 ),
Sine( phase = 0.75, freq = 8000, mul = 0.5 )
]
right = [
Sine( phase = 0, freq = 400.1, mul = 0.5 ),
Sine( phase = 0, freq = 4000, mul = 0.5 )
]
Lch = Pan( Mix( left ), pan=0, spread=0 )
Rch = Pan( Mix( right ), pan=1, spread=0 )
#Lch.setMul(0.5) # To ensure no clipping
#Rch.setMul(0.5)
Lch.out() # Enables audio playback
Rch.out()
time.sleep(1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment