59
59
def __init__(self, input, mul=1, add=0):
60
PyoObject.__init__(self)
60
PyoObject.__init__(self, mul, add)
61
61
self._input = input
64
62
self._in_fader = InputFader(input)
65
63
in_fader, mul, add, lmax = convertArgsToLists(self._in_fader, mul, add)
66
64
self._base_objs = [M_Sin_base(wrap(in_fader,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
69
return ['input', 'mul', 'add']
71
66
def setInput(self, x, fadetime=0.05):
73
68
Replace the `input` attribute.
127
118
def __init__(self, input, mul=1, add=0):
128
PyoObject.__init__(self)
119
PyoObject.__init__(self, mul, add)
129
120
self._input = input
132
121
self._in_fader = InputFader(input)
133
122
in_fader, mul, add, lmax = convertArgsToLists(self._in_fader, mul, add)
134
123
self._base_objs = [M_Cos_base(wrap(in_fader,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
137
return ['input', 'mul', 'add']
139
125
def setInput(self, x, fadetime=0.05):
141
127
Replace the `input` attribute.
202
184
def __init__(self, input, mul=1, add=0):
203
PyoObject.__init__(self)
185
PyoObject.__init__(self, mul, add)
204
186
self._input = input
207
187
self._in_fader = InputFader(input)
208
188
in_fader, mul, add, lmax = convertArgsToLists(self._in_fader, mul, add)
209
189
self._base_objs = [M_Tan_base(wrap(in_fader,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
212
return ['input', 'mul', 'add']
214
191
def setInput(self, x, fadetime=0.05):
216
193
Replace the `input` attribute.
272
245
def __init__(self, input, mul=1, add=0):
273
PyoObject.__init__(self)
246
PyoObject.__init__(self, mul, add)
274
247
self._input = input
277
248
self._in_fader = InputFader(input)
278
249
in_fader, mul, add, lmax = convertArgsToLists(self._in_fader, mul, add)
279
250
self._base_objs = [M_Abs_base(wrap(in_fader,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
282
return ['input', 'mul', 'add']
284
252
def setInput(self, x, fadetime=0.05):
286
254
Replace the `input` attribute.
347
311
def __init__(self, input, mul=1, add=0):
348
PyoObject.__init__(self)
312
PyoObject.__init__(self, mul, add)
349
313
self._input = input
352
314
self._in_fader = InputFader(input)
353
315
in_fader, mul, add, lmax = convertArgsToLists(self._in_fader, mul, add)
354
316
self._base_objs = [M_Sqrt_base(wrap(in_fader,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
357
return ['input', 'mul', 'add']
359
318
def setInput(self, x, fadetime=0.05):
361
320
Replace the `input` attribute.
418
373
def __init__(self, input, mul=1, add=0):
419
PyoObject.__init__(self)
374
PyoObject.__init__(self, mul, add)
420
375
self._input = input
423
376
self._in_fader = InputFader(input)
424
377
in_fader, mul, add, lmax = convertArgsToLists(self._in_fader, mul, add)
425
378
self._base_objs = [M_Log_base(wrap(in_fader,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
428
return ['input', 'mul', 'add']
430
380
def setInput(self, x, fadetime=0.05):
432
382
Replace the `input` attribute.
489
435
def __init__(self, input, mul=1, add=0):
490
PyoObject.__init__(self)
436
PyoObject.__init__(self, mul, add)
491
437
self._input = input
494
438
self._in_fader = InputFader(input)
495
439
in_fader, mul, add, lmax = convertArgsToLists(self._in_fader, mul, add)
496
440
self._base_objs = [M_Log2_base(wrap(in_fader,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
499
return ['input', 'mul', 'add']
501
442
def setInput(self, x, fadetime=0.05):
503
444
Replace the `input` attribute.
560
497
def __init__(self, input, mul=1, add=0):
561
PyoObject.__init__(self)
498
PyoObject.__init__(self, mul, add)
562
499
self._input = input
565
500
self._in_fader = InputFader(input)
566
501
in_fader, mul, add, lmax = convertArgsToLists(self._in_fader, mul, add)
567
502
self._base_objs = [M_Log10_base(wrap(in_fader,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
570
return ['input', 'mul', 'add']
572
504
def setInput(self, x, fadetime=0.05):
574
506
Replace the `input` attribute.
596
524
def input(self, x): self.setInput(x)
598
class Pow(PyoObject):
600
Performs a power function on audio signal.
602
Parentclass: PyoObject
606
base : float or PyoObject, optional
607
Base composant. Defaults to 10.
608
exponent : float or PyoObject, optional
609
Exponent composant. Defaults to 1.
613
setBase(x) : Replace the `base` attribute.
614
setExponent(x) : Replace the `exponent` attribute.
618
base : float or PyoObject, Base composant.
619
exponent : float or PyoObject, Exponent composant.
623
>>> s = Server().boot()
625
>>> # Exponential amplitude envelope
626
>>> a = LFO(freq=1, type=3, mul=0.5, add=0.5)
627
>>> b = Pow(Clip(a, 0, 1), 4, mul=.3)
628
>>> c = SineLoop(freq=[300,301], feedback=0.05, mul=b).out()
631
def __init__(self, base=10, exponent=1, mul=1, add=0):
632
PyoObject.__init__(self)
634
self._exponent = exponent
637
base, exponent, mul, add, lmax = convertArgsToLists(base, exponent, mul, add)
638
self._base_objs = [M_Pow_base(wrap(base,i), wrap(exponent,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
641
return ['base', 'exponent', 'mul', 'add']
643
def setBase(self, x):
645
Replace the `base` attribute.
649
x : float or PyoObject
650
new `base` attribute.
654
x, lmax = convertArgsToLists(x)
655
[obj.setBase(wrap(x,i)) for i, obj in enumerate(self._base_objs)]
657
def setExponent(self, x):
659
Replace the `exponent` attribute.
663
x : float or PyoObject
664
new `exponent` attribute.
668
x, lmax = convertArgsToLists(x)
669
[obj.setExponent(wrap(x,i)) for i, obj in enumerate(self._base_objs)]
671
def ctrl(self, map_list=None, title=None, wxnoserver=False):
673
PyoObject.ctrl(self, map_list, title, wxnoserver)
677
"""float or PyoObject. Base composant."""
680
def base(self, x): self.setBase(x)
684
"""float or PyoObject. Exponent composant."""
685
return self._exponent
687
def exponent(self, x): self.setExponent(x)
689
526
class Atan2(PyoObject):
691
528
Computes the principal value of the arc tangent of b/a.
727
564
def __init__(self, b=1, a=1, mul=1, add=0):
728
PyoObject.__init__(self)
565
PyoObject.__init__(self, mul, add)
733
568
b, a, mul, add, lmax = convertArgsToLists(b, a, mul, add)
734
569
self._base_objs = [M_Atan2_base(wrap(b,i), wrap(a,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
737
return ['b', 'a', 'mul', 'add']
739
571
def setB(self, x):
741
573
Replace the `b` attribute.
764
596
x, lmax = convertArgsToLists(x)
765
597
[obj.setA(wrap(x,i)) for i, obj in enumerate(self._base_objs)]
767
def ctrl(self, map_list=None, title=None, wxnoserver=False):
769
PyoObject.ctrl(self, map_list, title, wxnoserver)
773
601
"""float or PyoObject. Numerator."""
818
646
def __init__(self, input, mul=1, add=0):
819
PyoObject.__init__(self)
647
PyoObject.__init__(self, mul, add)
820
648
self._input = input
823
649
self._in_fader = InputFader(input)
824
650
in_fader, mul, add, lmax = convertArgsToLists(self._in_fader, mul, add)
825
651
self._base_objs = [M_Floor_base(wrap(in_fader,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
828
return ['input', 'mul', 'add']
830
653
def setInput(self, x, fadetime=0.05):
832
655
Replace the `input` attribute.
889
708
def __init__(self, input, mul=1, add=0):
890
PyoObject.__init__(self)
709
PyoObject.__init__(self, mul, add)
891
710
self._input = input
894
711
self._in_fader = InputFader(input)
895
712
in_fader, mul, add, lmax = convertArgsToLists(self._in_fader, mul, add)
896
713
self._base_objs = [M_Ceil_base(wrap(in_fader,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
899
return ['input', 'mul', 'add']
901
715
def setInput(self, x, fadetime=0.05):
903
717
Replace the `input` attribute.
960
770
def __init__(self, input, mul=1, add=0):
961
PyoObject.__init__(self)
771
PyoObject.__init__(self, mul, add)
962
772
self._input = input
965
773
self._in_fader = InputFader(input)
966
774
in_fader, mul, add, lmax = convertArgsToLists(self._in_fader, mul, add)
967
775
self._base_objs = [M_Round_base(wrap(in_fader,i), wrap(mul,i), wrap(add,i)) for i in range(lmax)]
970
return ['input', 'mul', 'add']
972
777
def setInput(self, x, fadetime=0.05):
974
779
Replace the `input` attribute.