~ubuntu-branches/debian/sid/python-pyo/sid

« back to all changes in this revision

Viewing changes to examples/effects/03_detuned_waveguides.py

  • Committer: Package Import Robot
  • Author(s): Tiago Bortoletto Vaz
  • Date: 2012-06-08 20:35:45 UTC
  • Revision ID: package-import@ubuntu.com-20120608203545-4z7kcf2lgvpsk18y
Tags: upstream-0.6.1
ImportĀ upstreamĀ versionĀ 0.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# encoding: utf-8
 
3
"""
 
4
Detuned waveguide bank.
 
5
 
 
6
"""
 
7
from pyo import *
 
8
import random
 
9
 
 
10
s = Server(sr=44100, nchnls=2, buffersize=512, duplex=0).boot()
 
11
 
 
12
src = SfPlayer("../snds/ounkmaster.aif", loop=True, mul=.1)
 
13
 
 
14
lf = Sine(freq=[random.uniform(.005, .015) for i in range(8)],
 
15
          mul=[.02,.04,.06,.08,.1,.12,.14,.16],
 
16
          add=[50,100,150,200,250,300,350,400])
 
17
lf2 = Sine(.005, mul=.2, add=.7)
 
18
 
 
19
det_wg = AllpassWG(src, freq=lf, feed=.999, detune=lf2, mul=.25).out()
 
20
 
 
21
s.gui(locals())