<?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. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="hostcontrol~" module="msp" category="MSP Plug-ins">
	<digest>
		Control a ReWire host's transport
	</digest>
	<description>
		When you choose the ad_rewire driver in the Audio Status window, the <o>hostcontrol~</o> object lets you send commands to the ReWire host to start and stop the transport, set the transport position, change the tempo, change the time signature, and set loop points.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</metadata>
		<metadata name="tag">
			MSP Plug-ins
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="int/msg">
			<digest>
				(int/msg) 1=start, 0=stop, seek, tempo, bpm, loop, timesig
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="int/msg">
			<digest>
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="OBJARG_NAME" type="OBJARG_TYPE" optional="0">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="int">
			<arglist>
				<arg name="playback-flag (1 or 0)" optional="0" type="int" />
			</arglist>
			<digest>
				Stop/start playback
			</digest>
			<description>
				1 starts playing from the beginning. 0 stops playing and resets the position to the beginning.
			</description>
		</method>
		<method name="bpm">
			<arglist>
				<arg name="host-tempo" optional="0" type="float" />
			</arglist>
			<digest>
				Change the host tempo in beats per minute
			</digest>
			<description>
				The word <m>bpm</m>, followed by a number (in beats per minute), changes the host's tempo.
			</description>
		</method>
		<method name="loop">
			<arglist>
				<arg name="state (0 or nonzero), start (1-PPQ-ticks), and end (1-PPQ-ticks)" optional="0" type="list" />
			</arglist>
			<digest>
				Control the host's loop state
			</digest>
			<description>
				The word <m>loop</m>, followed by one or three numbers, controls the host's loop state. If the first number is non-zero, looping will be enabled; otherwise, it will be turned off. An optional second and third number may be used to specify the loop start and end points, expressed in 1 PPQ ticks. If the second and third numbers are not present, the loop points are not changed.
			</description>
		</method>
		<method name="pause">
			<arglist />
			<digest>
				Stop playback without changing current position
			</digest>
			<description>
				The word <m>pause</m> stops playback without changing the current position.
			</description>
		</method>
		<method name="resume">
			<arglist />
			<digest>
				Start playback from the current position
			</digest>
			<description>
				The word <m>resume</m> starts playback from the current position.
			</description>
		</method>
		<method name="seek">
			<arglist>
				<arg name="transport-position (1-PPQ-ticks)" optional="0" type="float" />
			</arglist>
			<digest>
				Set the current transport position
			</digest>
			<description>
				The word <m>seek</m>, followed by a number specifying ticks (in 1 PPQ), sets the current transport position. For example, to seek to the start of the fifth measure if the time signature is 4/4 the send the message &quot;seek 16&quot;.
			</description>
		</method>
		<method name="tempo">
			<arglist>
				<arg name="host-tempo" optional="0" type="float" />
			</arglist>
			<digest>
				Change the host tempo in samples per beat
			</digest>
			<description>
				The word <m>tempo</m>, followed by a number (in samples per beat), changes the host's tempo.
			</description>
		</method>
		<method name="timesig">
			<arglist>
				<arg name="host-time-signature (numerator)" optional="0" type="int" />
				<arg name="host-time-signature (denominator)" optional="0" type="int" />
			</arglist>
			<digest>
				Change the host's time signature
			</digest>
			<description>
				The word <m>timesig</m>, followed by two numbers that specify numerator and denominator values, changes the host's time signature. For example, to set the time signature to 3/4 send the message <m>timesig 3 4.</m> 
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="hostphasor~" />
		<seealso name="hostsync~" />
	</seealsolist>
	<misc name="Output">
		<entry name="Rewire">
			<description>
				Controls a Rewire host.
			</description>
		</entry>
	</misc>
</c74object>
