Percent(input, percent=50.00, mul=1, add=0)
Lets pass a certain percentage of the input triggers.
Percent looks at the triggers received in `input` and lets them pass `percent` of the time.
Parent class : PyoObject
Parameters:
input : PyoObject Audio signal sending triggers. percent : float or PyoObject, optional How much percentage of triggers to let pass, between 0 and 100. Defaults to 50.
Methods:
setInput(x, fadetime) : Replace the `input` attribute. setPercent(x) : Replace the `percent` attribute.
Attributes:
input : PyoObject. Audio signal. percent : float or PyoObject. Percentage value.
Notes:
The out() method is bypassed. Percent's signal can not be sent to audio outs.
Examples:
>>> s = Server().boot() >>> s.start() >>> m = Metro(time=.125).play() >>> trig = Percent(m, percent=50) >>> t = TrigRand(trig, min=400, max=1000) >>> a = Sine(freq=t, mul=.5).out()
Methods details:
Percent.setInput(x, fadetime=0.05): Replace the `input` attribute. Parameters: x : PyoObject New signal to process. fadetime : float, optional Crossfade time between old and new input. Defaults to 0.05. Percent.setPercent(x): Replace the `percent` attribute. Parameters: x : float or PyoObject new `percent` attribute.