Select(input, value=0, mul=1, add=0)
Sends trigger on matching integer values.
Select takes in input an audio signal containing integer numbers and sends a trigger when the input matches `value` parameter. This object is especially designed to be used with Counter object.
Parent class : PyoObject
Parameters:
input : PyoObject Audio signal. Must contains integer numbers. value : int, optional Value to be matched to send a trigger. Defaults to 0.
Methods:
setInput(x, fadetime) : Replace the `input` attribute. setValue(x) : Replace the `value` attribute.
Attributes:
input : PyoObject. Audio signal. value : int. Matching value.
Notes:
The out() method is bypassed. Select's signal can not be sent to audio outs.
See also : Counter
Examples:
>>> s = Server().boot() >>> s.start() >>> env = HannTable() >>> m = Metro(.125).play() >>> te = TrigEnv(m, table=env, dur=.125) >>> c = Counter(m, min=0, max=4) >>> se = Select(c, 0) >>> tr = TrigRand(se, 400, 600) >>> a = Sine(freq=tr, mul=te).out()
Methods details:
Select.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. Select.setValue(x): Replace the `value` attribute. Parameters: x : int new `value` attribute.