<?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="sfinfo~" module="msp" category="MSP I/O">
	<digest>
		Report audio file information
	</digest>
	<description>
		<o>sfinfo~</o> gives you the number of channels, sample size, sampling rate, sampletype, filename, and duration of a soundfile.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</metadata>
		<metadata name="tag">
			MSP I/O
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				open Opens File, bang Reports Info
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Number of Channels
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="OUTLET_TYPE">
			<digest>
				Sample Size in Bits
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="2" type="OUTLET_TYPE">
			<digest>
				Sampling Rate
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="3" type="OUTLET_TYPE">
			<digest>
				File Length in Milliseconds
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="4" type="OUTLET_TYPE">
			<digest>
				Sample Type
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="5" type="OUTLET_TYPE">
			<digest>
				File Name
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="filename" optional="1" type="symbol">
			<digest>
				Filename to reference
			</digest>
			<description>
				Names a file that <o>sfinfo~</o> will report about when it receives a subsequent <m>bang</m> message. The file must exist in the Max search path.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Get and output information about a named <o>sfplay~</o> object
			</digest>
			<description>
				If a file has already been opened, either with the <m>open</m> message or specified by an argument to <o>sfinfo~</o>, <m>bang</m> reports the number of channels, sample size, sample rate, and length in milliseconds out the <o>sfinfo~</o> object's outlets.
			</description>
		</method>
		<method name="(drag)">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</method>
		<method name="getnamed">
			<arglist>
				<arg name="object-name" optional="0" type="symbol" />
			</arglist>
			<digest>
				Get and output information about a named <o>sfplay~</o> object
			</digest>
			<description>
				In left inlet: The word <m>getnamed</m>, followed by a symbol which specifies the name of an <o>sfplay~</o> object, interrogates the named <o>sfplay~</o> object and reports the number of channels, sample size, sample rate, file length in milliseconds, sample type, and filename out its outlets.
			</description>
		</method>
		<method name="open">
			<arglist>
				<arg name="filename" optional="0" type="symbol" />
			</arglist>
			<digest>
				Open an audio file
			</digest>
			<description>
				The word <m>open</m>, followed by a name of an audio file, opens the file if it exists in Max's search path. Without a filename, <m>open</m> brings up a standard open file dialog allowing you to choose a file. After the file is opened, <o>sfinfo~</o> interrogates the file and reports the number of channels, sample size, sample rate, file length in milliseconds, sample type, and filename out its outlets.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="sfinfo~.png" caption="Report information about a specific audio file" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="info~" />
		<seealso name="sflist~" />
		<seealso name="sfplay~" />
		<seealso name="07_samplingchapter06" module="msp" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="int">
			<description>
				Out left outlet: The number of channels in the audio file.
				<br />
				<br />
				Out 2nd outlet: The audio file's sample size in bits (typically 16).
			</description>
		</entry>
		<entry name="float">
			<description>
				Out 3rd outlet: The audio file's sampling rate.
				<br />
				<br />
				Out 4th outlet: The duration of the audio file in milliseconds.
			</description>
		</entry>
		<entry name="symbol">
			<description>
				Out 5th outlet: the sample type of the audio file.
				<br />
				<br />
				The following types of sample data are supported:
			</description>
		</entry>
		<entry name="int8">
			<description>
				8-bit integer
			</description>
		</entry>
		<entry name="uint8">
			<description>
				unsigned 8-bit integer
			</description>
		</entry>
		<entry name="int16">
			<description>
				16-bit integer
			</description>
		</entry>
		<entry name="int24">
			<description>
				24-bit integer
			</description>
		</entry>
		<entry name="int32">
			<description>
				32-bit integer
			</description>
		</entry>
		<entry name="float32">
			<description>
				32-bit floating-point
			</description>
		</entry>
		<entry name="float64">
			<description>
				64-bit floating-point
			</description>
		</entry>
		<entry name="mulaw">
			<description>
				8-bit &quot;mu&quot;-law encoding
			</description>
		</entry>
		<entry name="alaw">
			<description>
				8-bit a-law encoding
				<br />
				<br />
				Out 6th outlet: The filename of the audio file
			</description>
		</entry>
	</misc>
</c74object>
