<?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="train" category="Generators">
<!--METADATA-->
<metadatalist>
<metadata name="author">Cycling '74</metadata>
<metadata name="tag">RNBO</metadata>
<metadata name="tag">RNBO Math</metadata>
<metadata name="tag">RNBO Oscillators</metadata>
</metadatalist>
<digest>Pulse train generator</digest>
<description><p>
Generates a float value of 0.0 or 1.0 representing an event rate pulse train whose period is specifiable in terms of milliseconds with pulse-width and phase offset control. Can be used for timing and sync operations or as a gate in conjunction with rnbo_sah.
</p></description>
<!--ARGUMENTS-->
<objarglist>
<objarg name="interval" optional="1" type="number">
<digest>inter-pulse-interval</digest>
<description><p>
Specifies the period (time interval between pulse cycles), in milliseconds, of the pulse train values sent out the left outlet.
</p></description>
</objarg>
<objarg name="width" optional="1" type="number">
<digest>Pulse width (0.0 ... 1.0)</digest>
<description><p>
Controls the pulse width or duty cycle. A value of 0 has the smallest "on" pulse size, while a value of 1 has the largest. A value of 0.5 makes a pulse with half the time at 1 and half the time at 0.
</p></description>
</objarg>
<objarg name="pulsephase" optional="1" type="number">
<digest>Pulsephase offsets the phase of the pulse (0.0 ... 1.0)</digest>
<description><p>
Sets the phase of the onset of the "on" portion of the pulse. A value of 0 places the "on" portion at the beginning of the interval, while other values (up to 1, which is the same as 0) delay the "on" portion by a fraction of the total inter-pulse interval.
</p></description>
</objarg>
</objarglist>
<!--OPTIONS-->
<rnbooptionlist>
<option name="hot" size="1" type="bool">
<digest>Trigger computation on all inlets.</digest>
<attributelist>
<attribute name="default" type="bool" value="false"></attribute>
</attributelist>

</option>
</rnbooptionlist>
<!--ATTRIBUTES-->
<rnboattributelist>
<attribute name="interval" size="1" type="number">
<digest>inter-pulse-interval</digest>
<description><p>
Specifies the period (time interval between pulse cycles), in milliseconds, of the pulse train values sent out the left outlet.
</p></description>
</attribute>
<attribute name="pulsephase" size="1" type="number">
<digest>Pulsephase offsets the phase of the pulse (0.0 ... 1.0)</digest>
<description><p>
Sets the phase of the onset of the "on" portion of the pulse. A value of 0 places the "on" portion at the beginning of the interval, while other values (up to 1, which is the same as 0) delay the "on" portion by a fraction of the total inter-pulse interval.
</p></description>
</attribute>
<attribute name="reset" size="1" type="bang">
<digest>Banging this attribute will reset the object to its default state.</digest>
<attributelist>
<attribute name="default" type="bang" value="0"></attribute>
</attributelist>

</attribute>
<attribute name="width" size="1" type="number">
<digest>Pulse width (0.0 ... 1.0)</digest>
<description><p>
Controls the pulse width or duty cycle. A value of 0 has the smallest "on" pulse size, while a value of 1 has the largest. A value of 0.5 makes a pulse with half the time at 1 and half the time at 0.
</p></description>
</attribute>
</rnboattributelist>
<!--INLETS-->
<rnboinletlist>
<inlet id="inlet_interval" name="interval" type="number">
<digest>inter-pulse-interval</digest>
<description><p>
Specifies the period (time interval between pulse cycles), in milliseconds, of the pulse train values sent out the left outlet.
</p></description>
</inlet>
<inlet id="inlet_width" name="width" type="number">
<digest>Pulse width (0.0 ... 1.0)</digest>
<description><p>
Controls the pulse width or duty cycle. A value of 0 has the smallest "on" pulse size, while a value of 1 has the largest. A value of 0.5 makes a pulse with half the time at 1 and half the time at 0.
</p></description>
</inlet>
<inlet id="inlet_pulsephase" name="pulsephase" type="number">
<digest>Pulsephase offsets the phase of the pulse (0.0 ... 1.0)</digest>
<description><p>
Sets the phase of the onset of the "on" portion of the pulse. A value of 0 places the "on" portion at the beginning of the interval, while other values (up to 1, which is the same as 0) delay the "on" portion by a fraction of the total inter-pulse interval.
</p></description>
</inlet>
</rnboinletlist>
<!--OUTLETS-->
<rnbooutletlist>
<outlet id="outlet_out1" name="out1" type="number">
<digest>Out</digest>
<description><p>
A float value of either 0.0 or 1.0 representing the high and low phases of the pulse train having the specified interval, width, and phase.
</p></description>
</outlet>
</rnbooutletlist>
<!--SEE ALSO-->
<seealsolist>
<seealso name="train~" type="refpage" module="MSP"></seealso>
<seealso name="&#x3C;~" type="refpage" module="MSP"></seealso>
<seealso name=">~" type="refpage" module="MSP"></seealso>
<seealso name="rnbo_clip~" type="rnborefpage" module="RNBO" display="clip~"></seealso>
<seealso name="rnbo_sah~" type="rnborefpage" module="RNBO" display="sah~"></seealso>
<seealso name="rnbo_phasor~" type="rnborefpage" module="RNBO" display="phasor~"></seealso>
</seealsolist>
</c74object>