~ubuntu-branches/ubuntu/quantal/python-pyo/quantal

« back to all changes in this revision

Viewing changes to examples/utilities/05_high_sr_processing.py

  • Committer: Package Import Robot
  • Author(s): Tiago Bortoletto Vaz
  • Date: 2012-07-03 23:45:41 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120703234541-jh5jg00lvljnwq8m
Tags: 0.6.2-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
upsamp(IN_SND, UP_SND, UP, SIZE)
27
27
 
28
28
print "Apply distortion at a sampling rate of %i Hz." % (SR*UP)
29
 
s = Server(sr=SR*UP, nchnls=1, audio="offline").boot()
 
29
s = Server(sr=SR*UP, nchnls=1, duplex=0, audio="offline").boot()
30
30
s.recordOptions(dur=DUR+.1, filename=PROC_SND, fileformat=0, sampletype=0)
31
31
sf = SfPlayer(IN_SND, loop=False, interp=4, mul=0.7)
32
32
dist = Disto(sf, drive=0.75, slope=0.7, mul=0.3)