<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>
<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY.-->
<c74object module="rnbo" kind="rnboobject" name="what~" category="">
<!--METADATA-->
<metadatalist>
<metadata name="author">Cycling '74</metadata>
<metadata name="tag">RNBO</metadata>
</metadatalist>
<digest>Generate impulses for a list of audio values</digest>
<description><p>
The 
<o objname="rnbo_what~">what~</o>
 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 
<o objname="rnbo_phasor~">phasor~</o>
 to 
<o objname="rnbo_what~">what~</o>
 to create a repeating rhythm. For example, when sending in a list of 0 0.25 0.5 and
0.75, 
<o objname="rnbo_what~">what~</o>
 will output an impulse four times for each 
<o objname="rnbo_phasor~">phasor~</o>
 ramp.
</p></description>
<!--ARGUMENTS-->
<objarglist>
<objarg name="matches" optional="1" type="list">
<digest>List of threshold values to trigger</digest>

</objarg>
</objarglist>
<!--OPTIONS-->
<!--NONE-->
<!--ATTRIBUTES-->
<rnboattributelist>
<attribute name="clear" size="1" type="bang">
<digest>Clear list of values</digest>

</attribute>
<attribute name="input" size="1" type="signal, list">
<digest>signal input</digest>

</attribute>
<attribute name="matches" size="1" type="list">
<digest>List of threshold values to trigger</digest>
<attributelist>
<attribute name="default" type="list" value="0"></attribute>
</attributelist>

</attribute>
<attribute name="syncupdate" size="1" type="bool">
<digest>Synchronise detection value changes</digest>
<attributelist>
<attribute name="default" type="bool" value="false"></attribute>
</attributelist>
<description><p>
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.
</p></description>
</attribute>
<attribute name="triggermode" size="1" type="enum">
<digest>The trigger mode</digest>
<attributelist>
<attribute name="enumvals">
<enumlist get="1" set="1" type="atom">
<enum name="ascend"></enum>
<enum name="descend"></enum>
<enum name="both"></enum>
<enum name="equals"></enum>
</enumlist>
</attribute>
<attribute name="default" type="enum" value="both"></attribute>
</attributelist>
<description><p>
Determines how triggers are detected in the input signal.
</p></description>
</attribute>
</rnboattributelist>
<!--INLETS-->
<rnboinletlist>
<inlet id="inlet_input" name="input" type="signal, list">
<digest>signal input</digest>

</inlet>
</rnboinletlist>
<!--OUTLETS-->
<rnbooutletlist>
<outlet id="outlet_impulses" name="impulses" type="signal">
<digest>impulse output</digest>

</outlet>
<outlet id="outlet_indices" name="indices" type="signal">
<digest>index of matched audio value</digest>

</outlet>
</rnbooutletlist>
<!--SEE ALSO-->
<seealsolist>
<seealso name="what~" type="refpage" module="MSP"></seealso>
<seealso name="subdiv~" type="refpage" module="MSP"></seealso>
<seealso name="rnbo_edge~" type="rnborefpage" module="RNBO" display="edge~"></seealso>
</seealsolist>
</c74object>