what~
Generate impulses for a list of audio values
Description
The what~ object generates an impulse – a signal value of 1 for one sample – when its input signal crosses a value threshold. The object accepts a list of threshold values and will generate impulses for all of them. Connect a phasor~ to what~ to create a repeating rhythm. For example, when sending in a list of 0 0.25 0.5 and 0.75, what~ will output an impulse four times for each phasor~ ramp.
Arguments
matches [list]
List of threshold values to trigger
Inlets
input [signal, list]
signal inputOutlets
impulses [signal]
impulse outputindices [signal]
index of matched audio valueDynamic Attributes
These attributes can be modified in the code during execution using the set object
clear [bang]
Clear list of values
input [signal, list]
signal input
matches [list] (default: 0)
List of threshold values to trigger
syncupdate [bool] (default: false)
When syncupdate is enabled, messages to change the values to detect do not take effect until the input phasor resets. A reset is defined as a direction reversal in the signal.
triggermode [enum] (default: ascend)
Determines how triggers are detected in the input signal.
Possible values:0 = 'ascend'
1 = 'descend'
2 = 'both'
3 = 'equals'
See Also
| Name | Description |
|---|---|
| what~ | |
| subdiv~ | |
| edge~ | detect logical signal transitions |