<?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="array.tobuffer" module="max" category="Array">
	<digest>
		Write array object values to an audio buffer
	</digest>
	<description>
		Values are assumed to be between <m>-1</m> and <m>1</m>. If the array contains multichannel data, each channel should be wrapped inside of a subarray (e.g. <m>[ [ -1, 0, 1 ], [ -1, 0, -1 ] ]</m>).
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			TEXT_HERE
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				array, messages in
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				array, messages in
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				bang on successful buffer write
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="buffer-name" type="symbol" optional="0">
			<digest>
				Buffer name
			</digest>
			<description>
				The name of the target <o>buffer~</o> object
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Trigger output
			</digest>
			<description>
				Reprocess previously received array and trigger output.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="ARG_NAME_0" type="int" optional="0" />
			</arglist>
			<digest>
				Convert an integer to an array.
			</digest>
			<description>
				Convert an incoming integer to an array, then process as described for the <m>array</m> message.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="ARG_NAME_0" type="float" optional="0" />
			</arglist>
			<digest>
				Convert a floating-point number to an array.
			</digest>
			<description>
				Convert an incoming floating-point number to an array, then process as described for the <m>array</m> message.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="ARG_NAME_0" type="list" optional="0" />
			</arglist>
			<digest>
				Convert a list to an array.
			</digest>
			<description>
				Convert an incoming list to an array, then process as described for the <m>array</m> message.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="ARG_NAME_0" type="list" optional="0" />
			</arglist>
			<digest>
				Convert a list to an array.
			</digest>
			<description>
				Convert an incoming list to an array, then process as described for the <m>array</m> message.
			</description>
		</method>
		<method name="array">
			<arglist>
				<arg name="ARG_NAME_0" type="list" optional="0" />
			</arglist>
			<digest>
				Write array values into a buffer and trigger output.
			</digest>
			<description>
				The <o>buffer~</o> object expects floating-point values between <m>-1</m> and <m>1</m>.
			</description>
		</method>
		<method name="dictionary">
			<arglist>
				<arg name="ARG_NAME_0" type="list" optional="0" />
			</arglist>
			<digest>
				Wrap a dictionary object in an array.
			</digest>
			<description>
				Wrap an incoming dictionary object in an array, then process as described for the <m>array</m> message.
			</description>
		</method>
		<method name="string">
			<arglist>
				<arg name="ARG_NAME_0" type="list" optional="0" />
			</arglist>
			<digest>
				Wrap a string object in an array.
			</digest>
			<description>
				Wrap a string object in an array, then process as described for the <m>array</m> message.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="buffername" get="1" set="1" type="symbol" size="1">
			<digest>
				Buffer Name
			</digest>
			<description>
				The name of the target <o>buffer~</o> object
			</description>
			<attributelist>
				<attribute name="default" get="1" set="1" type="symbol" size="1" value="" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Buffer Name" />
				<attribute name="order" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
		<attribute name="channelstart" get="1" set="1" type="int" size="1">
			<digest>
				First Channel in Buffer To Write
			</digest>
			<description>
				The 0-based channel index to which to write array values.
			</description>
			<attributelist>
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="First Channel in Buffer To Write" />
				<attribute name="order" get="1" set="1" type="int" size="1" value="4" />
			</attributelist>
		</attribute>
		<attribute name="framelength" get="1" set="1" type="int" size="1">
			<digest>
				Number of Frames to Write To Buffer
			</digest>
			<description>
				The number of samples (per channel) to write from the array values.
			</description>
			<attributelist>
				<attribute name="default" get="1" set="1" type="int" size="1" value="-1" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Number of Frames to Write To Buffer" />
				<attribute name="order" get="1" set="1" type="int" size="1" value="3" />
			</attributelist>
		</attribute>
		<attribute name="frameoffset" get="1" set="1" type="int" size="1">
			<digest>
				Frame Offset into Buffer
			</digest>
			<description>
				The 0-based frame offset to which to write array values.
			</description>
			<attributelist>
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Frame Offset into Buffer" />
				<attribute name="order" get="1" set="1" type="int" size="1" value="2" />
			</attributelist>
		</attribute>
		<attribute name="resize" get="1" set="1" type="int" size="1">
			<digest>
				Resize Buffer To Fit Data
			</digest>
			<description>
				When enabled, the buffer will be resized to accommodate the incoming data.
			</description>
			<attributelist>
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Resize Buffer To Fit Data" />
				<attribute name="order" get="1" set="1" type="int" size="1" value="5" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example caption="" img="" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="array" />
		<seealso name="array.frombuffer" />
		<seealso name="peek~" />
		<seealso name="poke~" />
	</seealsolist>
</c74object>
