~ubuntu-branches/ubuntu/trusty/python-pyo/trusty

« back to all changes in this revision

Viewing changes to pyolib/players.py

  • Committer: Package Import Robot
  • Author(s): Tiago Bortoletto Vaz
  • Date: 2013-01-30 00:41:56 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130130004156-t2iv3q5zsh8oe66a
Tags: 0.6.3+svn1068-1
* New upstream release.
* Start tracking upstream svn.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
    
100
100
    """
101
101
    def __init__(self, path, speed=1, loop=False, offset=0, interp=2, mul=1, add=0):
102
 
        PyoObject.__init__(self)
 
102
        PyoObject.__init__(self, mul, add)
103
103
        self._path = path
104
104
        self._speed = speed
105
105
        self._loop = loop
106
106
        self._offset = offset
107
107
        self._interp = interp
108
 
        self._mul = mul
109
 
        self._add = add
110
108
        path, speed, loop, offset, interp, mul, add, lmax = convertArgsToLists(path, speed, loop, offset, interp, mul, add)
111
109
        self._base_players = []
112
110
        self._base_objs = []
119
117
                _trig_objs_tmp.append(TriggerDummy_base(self._base_players[-1]))
120
118
        self._trig_objs = Dummy(_trig_objs_tmp)
121
119
 
122
 
    def __dir__(self):
123
 
        return ['path', 'speed', 'loop', 'offset', 'interp', 'mul', 'add']
124
 
        
125
120
    def setPath(self, path):
126
121
        """
127
122
        Sets a new sound to read.
328
323
    
329
324
    """
330
325
    def __init__(self, path, speed=1, interp=2, mul=1, add=0):
331
 
        PyoObject.__init__(self)
 
326
        PyoObject.__init__(self, mul, add)
332
327
        self._speed = speed
333
328
        self._interp = interp
334
 
        self._mul = mul
335
 
        self._add = add
336
329
        path, speed, interp, mul, add, lmax = convertArgsToLists(path, speed, interp, mul, add)
337
330
        self._base_players = []
338
331
        self._base_objs = []
350
343
            j = i / self._snd_chnls
351
344
            self._base_objs.append(SfMarkerShuffle_base(wrap(self._base_players,j), i % self._snd_chnls, wrap(mul,j), wrap(add,j)))
352
345
 
353
 
    def __dir__(self):
354
 
        return ['speed', 'interp', 'mul', 'add']
355
 
 
356
346
    def setSpeed(self, x):
357
347
        """
358
348
        Replace the `speed` attribute.
465
455
 
466
456
    """
467
457
    def __init__(self, path, speed=1, mark=0, interp=2, mul=1, add=0):
468
 
        PyoObject.__init__(self)
 
458
        PyoObject.__init__(self, mul, add)
469
459
        self._speed = speed
470
460
        self._mark = mark
471
461
        self._interp = interp
472
 
        self._mul = mul
473
 
        self._add = add
474
462
        path, speed, mark, interp, mul, add, lmax = convertArgsToLists(path, speed, mark, interp, mul, add)
475
463
        self._base_players = []
476
464
        self._base_objs = []
488
476
            j = i / self._snd_chnls
489
477
            self._base_objs.append(SfMarkerLoop_base(wrap(self._base_players,j), i % self._snd_chnls, wrap(mul,j), wrap(add,j)))
490
478
 
491
 
    def __dir__(self):
492
 
        return ['speed', 'mark', 'interp', 'mul', 'add']
493
 
 
494
479
    def setSpeed(self, x):
495
480
        """
496
481
        Replace the `speed` attribute.