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

« back to all changes in this revision

Viewing changes to pyolib/matrixprocess.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:
107
107
        self._base_objs = [MatrixRec_base(wrap(in_fader,i), wrap(matrix,i), wrap(fadetime,i), wrap(delay,i)) for i in range(len(matrix))]
108
108
        self._trig_objs = Dummy([TriggerDummy_base(obj) for obj in self._base_objs])
109
109
 
110
 
    def __dir__(self):
111
 
        return ['input', 'matrix']
112
 
 
113
110
    def out(self, chnl=0, inc=1, dur=0, delay=0):
114
111
        return self.play(dur, delay)
115
112
 
148
145
        x, lmax = convertArgsToLists(x)
149
146
        [obj.setMatrix(wrap(x,i)) for i, obj in enumerate(self._base_objs)]
150
147
 
151
 
    def ctrl(self, map_list=None, title=None, wxnoserver=False):
152
 
        self._map_list = []
153
 
        PyoObject.ctrl(self, map_list, title, wxnoserver)
154
 
      
155
148
    @property
156
149
    def input(self):
157
150
        """PyoObject. Audio signal to record in the matrix.""" 
231
224
        self._base_objs = [MatrixRecLoop_base(wrap(in_fader,i), wrap(matrix,i)) for i in range(len(matrix))]
232
225
        self._trig_objs = Dummy([TriggerDummy_base(obj) for obj in self._base_objs])
233
226
 
234
 
    def __dir__(self):
235
 
        return ['input', 'matrix']
236
 
 
237
227
    def out(self, chnl=0, inc=1, dur=0, delay=0):
238
228
        return self.play(dur, delay)
239
229
 
272
262
        x, lmax = convertArgsToLists(x)
273
263
        [obj.setMatrix(wrap(x,i)) for i, obj in enumerate(self._base_objs)]
274
264
 
275
 
    def ctrl(self, map_list=None, title=None, wxnoserver=False):
276
 
        self._map_list = []
277
 
        PyoObject.ctrl(self, map_list, title, wxnoserver)
278
 
 
279
265
    @property
280
266
    def input(self):
281
267
        """PyoObject. Audio signal to record in the matrix.""" 
335
321
 
336
322
    """
337
323
    def __init__(self, matrix, x, y, mul=1, add=0):
338
 
        PyoObject.__init__(self)
 
324
        PyoObject.__init__(self, mul, add)
339
325
        self._matrix = matrix
340
326
        self._x = x
341
327
        self._y = y
342
 
        self._mul = mul
343
 
        self._add = add
344
328
        matrix, x, y, mul, add, lmax = convertArgsToLists(matrix, x, y, mul, add)
345
329
        self._base_objs = [MatrixPointer_base(wrap(matrix,i), wrap(x,i), wrap(y,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
346
330
 
347
 
    def __dir__(self):
348
 
        return ['matrix', 'x', 'y', 'mul', 'add']
349
 
 
350
331
    def setMatrix(self, x):
351
332
        """
352
333
        Replace the `matrix` attribute.
479
460
        self._base_sources = [source[0] for source in sources]
480
461
        self._base_objs = [MatrixMorph_base(wrap(in_fader,i), wrap(matrix,i), self._base_sources) for i in range(len(matrix))]
481
462
 
482
 
    def __dir__(self):
483
 
        return ['input', 'matrix', 'sources', 'mul', 'add']
484
 
 
485
463
    def out(self, chnl=0, inc=1, dur=0, delay=0):
486
464
        return self.play(dur, delay)
487
465
 
534
512
        self._base_sources = [source[0] for source in x]
535
513
        [obj.setSources(self._base_sources) for i, obj in enumerate(self._base_objs)]
536
514
 
537
 
    def ctrl(self, map_list=None, title=None, wxnoserver=False):
538
 
        self._map_list = []
539
 
        PyoObject.ctrl(self, map_list, title, wxnoserver)
540
 
 
541
515
    @property
542
516
    def input(self):
543
517
        """PyoObject. Morphing index between 0 and 1."""