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

« back to all changes in this revision

Viewing changes to pyolib/tableprocess.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:
227
227
    >>> s = Server().boot()
228
228
    >>> s.start()
229
229
    >>> t = HarmTable([1,0,.33,0,.2,0,.143])
230
 
    >>> lfo = Sine(.1, 0, .05, .05)
231
 
    >>> a = OscLoop(table=t, freq=100, feedback=lfo).out()   
 
230
    >>> lfo = Sine(.5, 0, .05, .05)
 
231
    >>> a = OscLoop(table=t, freq=[100,99.3], feedback=lfo, mul=.2).out()   
232
232
 
233
233
    """
234
234
    def __init__(self, table, freq=1000, feedback=0, mul=1, add=0):
1380
1380
        return ['input', 'table', 'mul', 'add']
1381
1381
 
1382
1382
    def out(self, chnl=0, inc=1, dur=0, delay=0):
1383
 
        return self
 
1383
        return self.play(dur, delay)
1384
1384
 
1385
1385
    def setMul(self, x):
1386
1386
        pass
1500
1500
        return ['input', 'table', 'sources', 'mul', 'add']
1501
1501
 
1502
1502
    def out(self, chnl=0, inc=1, dur=0, delay=0):
1503
 
        return self
 
1503
        return self.play(dur, delay)
1504
1504
 
1505
1505
    def setMul(self, x):
1506
1506
        pass
1884
1884
        return ['input', 'trig', 'table', 'mul', 'add']
1885
1885
 
1886
1886
    def out(self, chnl=0, inc=1, dur=0, delay=0):
1887
 
        return self
 
1887
        return self.play(dur, delay)
1888
1888
 
1889
1889
    def setMul(self, x):
1890
1890
        pass