📜  Pyo 示例 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:16.495000             🧑  作者: Mango

代码示例1
# Simple Melody
s = Server().boot()
s.start()
wav = SquareTable()
env = CosTable([(0,0), (100,1), (500,.3), (8191,0)])
met = Metro(.125, 12).play()
amp = TrigEnv(met, table=env, mul=.1)
pit = TrigXnoiseMidi(met, dist='loopseg', x1=20, scale=1, mrange=(48,84))
out = Osc(table=wav, freq=pit, mul=amp).out()