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

« back to all changes in this revision

Viewing changes to examples/effects/06_simple_reverb.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
Simple reverb based on Schroeder algorithm.
 
5
4 serial allpass filters --> 4 parallel lowpass filters.
 
6
 
 
7
"""
 
8
from pyo import *
 
9
 
 
10
s = Server().boot()
 
11
 
 
12
a = SfPlayer("../snds/flute.aif", loop=True, mul=0.25).mix(2).out()
 
13
 
 
14
b1 = Allpass(a, delay=[.0204,.02011], feedback=0.35)
 
15
b2 = Allpass(b1, delay=[.06653,.06641], feedback=0.41)
 
16
b3 = Allpass(b2, delay=[.035007,.03504], feedback=0.5)
 
17
b4 = Allpass(b3, delay=[.023021 ,.022987], feedback=0.65)
 
18
 
 
19
c1 = Tone(b1, 5000, mul=0.2).out()
 
20
c2 = Tone(b2, 3000, mul=0.2).out()
 
21
c3 = Tone(b3, 1500, mul=0.2).out()
 
22
c4 = Tone(b4, 500, mul=0.2).out()
 
23
 
 
24
s.gui(locals())
 
 
b'\\ No newline at end of file'