<?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="vst~" module="msp" category="MSP Plug-ins">
	<digest>
		Host VST and Audio Unit plug-ins
	</digest>
	<description>
		Use the <o>vst~</o> object to load a real-time VST or Audio Unit plug-in and use its audio processing in MSP.
	</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="INLET_TYPE">
			<digest>
				Audio/Control Input
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="signal">
			<digest>
				Audio Input 2
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal">
			<digest>
				Audio Output 1
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="signal">
			<digest>
				Audio Output 2
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="2" type="signal">
			<digest>
				Parameter Names
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="3" type="signal">
			<digest>
				Parameter Index and Value When Changed
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="4" type="signal">
			<digest>
				Plug-in Generated MIDI Events
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="5" type="signal">
			<digest>
				Program Names
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="6" type="signal">
			<digest>
				Subnames (VST Shell Plug-ins Only)
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="7" type="signal">
			<digest>
				Preset Names (Audio Unit Plug-ins Only)
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="number-of-inputs/outputs" optional="1" type="int">
			<digest>
				Number of inputs/outputs
			</digest>
			<description>
				If the first or first and second arguments are numbers, they set the number of audio inputs and outputs. If there is only one number, it sets the number of outlets. If there are two numbers, the first one sets the number of inlets and the second sets the number of outlets.
			</description>
		</objarg>
		<objarg name="VST-plugin-filename" optional="1" type="symbol">
			<digest>
				Plug-in filename
			</digest>
			<description>
				Sets the name of a VST or Audio Unit plug-in file to load when the object is created. You can load a plug-in after the object is created (or replace the one currently in use) with the <m>plug</m> message.
			</description>
		</objarg>
		<objarg name="preset-effects-name" optional="1" type="symbol">
			<digest>
				Preset name
			</digest>
			<description>
				After the plug-in name, a name containing preset effects for the plug-in can be specified. If found, it will be loaded after the plug-in has been loaded.
			</description>
		</objarg>
	</objarglist>
	<!--parameter-->
	<parameter />
	<!--MESSAGES-->
	<methodlist>
		<method name="int">
			<arglist>
				<arg name="effect-program" optional="0" type="int" />
			</arglist>
			<digest>
				Change the plug-in preset
			</digest>
			<description>
				In left inlet: Changes the effect program of the currently loaded plug-in. The first program is number 1.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="effect-program" optional="0" type="float" />
			</arglist>
			<digest>
				Change the plug-in preset
			</digest>
			<description>
				In left inlet: Floating point values are converted to <m>int</m> values and used to change the effect program of the currently loaded plug-in. The first program is number 1.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="plugin-parameter" optional="0" type="symbol" />
				<arg name="setting" optional="0" type="float" />
			</arglist>
			<digest>
				Change a parameter value in the currently loaded plug-in
			</digest>
			<description>
				In left inlet: Changes a parameter value in the currently loaded plug-in. The first list element is the parameter number (starting at 1) and the second element is the parameter value. The second number should be a float between 0 and 1, where 0 is the minimum value of the parameter and 1 is the maximum.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="plugin-parameter" optional="0" type="symbol" />
				<arg name="setting" optional="0" type="float" />
			</arglist>
			<digest>
				Set the value of a parameter
			</digest>
			<description>
				A symbol that names a plug-in parameter followed by a float between 0 and 1 set the value of the parameter.
			</description>
		</method>
		<method name="(drag)">
			<digest>
				Click and drag to load a plug-in
			</digest>
			<description>
				When a plug-in file is dragged from the file browser to a <o>vst~</o> object, the plug-in will be loaded.
			</description>
		</method>
		<method name="(mouse)">
			<digest>
				Double-click to open the plug-in's edit window
			</digest>
			<description>
				Double-clicking on a <o>vst~</o> object opens the plug-in's edit window.
			</description>
		</method>
		<method name="disable">
			<arglist>
				<arg name="mute-flag (0 or nonzero)" optional="0" type="int" />
			</arglist>
			<digest>
				Stop plug-in processing and output a zero signal
			</digest>
			<description>
				The word <m>disable</m>, followed by a non-zero argument, stops any further processing by the currently loaded plug-in and outputs a zero signal. <m>disable 0</m> enables processing for the plug-in.
			</description>
		</method>
		<method name="get">
			<arglist>
				<arg name="parameter-data-query-index" optional="0" type="int" />
			</arglist>
			<digest>
				Report parameter values and plug-in information
			</digest>
			<description>
				The word <m>get</m>, followed by a number argument, reports parameter values and plug-in information. This is output from the fifth-from-right outlet of <o>vst~</o> as a list with the said number argument as the first element and the desired information as the second element. If the number argument is between 1 and the number of parameters of the currently loaded plug-in (inclusive), the <m>get</m> message outputs the current parameter value (a float between 0 and 1) of the numbered parameter. If the argument is 0 nothing is output. If the argument is negative, the <m>get</m> message outputs a list with the first element specifying the number argument and the remaining elements specifying the following information:
				<br />
				<br />
				<m>get -1</m> the plug-in's number of inputs
				<br />
				<m>get -2</m> the plug-in's number of outputs
				<br />
				<m>get -3</m> the plug-in's number of programs (VST) or factory presets (Audio Unit)
				<br />
				<m>get -4</m> the plug-in's number of parameters
				<br />
				<m>get -5</m> whether the plug-in's canMono flag is set. This indicates that the plug-in can be used in either a stereo or mono context
				<br />
				<m>get -6</m> 1 if the plug-in has its own edit window, 0 if it doesn't
				<br />
				<m>get -7</m> 1 if the plug-in is a synth plug-in, 0 if it isn't
				<br />
				<m>get -8</m> the unique ID of the plug-in as an integer value
				<br />
				<m>get -9</m> four integer values representing the left, top, right, and bottom coordinates of the desired rectangle of the plug-in UI edit window
				<br />
				<m>get -10</m> an integer value representing the initial delay of the plug-in in samples to allow you to automatically compensate for the plugin's latency in your patch
				<br />
				<m>get -11</m> the plug-in's number of user preset files (Audio Unit only)
			</description>
		</method>
		<method name="getsubnames">
			<arglist />
			<digest>
				Report a list of sub plug-in names when hosting a VST shell plug-in
			</digest>
			<description>
				In left inlet: When using the <o>vst~</o> object to host a VST shell plug-in (e.g., WaveShell) that is not instantiated with a specific plug-in name, the word <m>getsubnames</m> causes a list of sub plug-in names to be sent out the second-from-right outlet of the <o>vst~</o> object.
			</description>
		</method>
		<method name="midievent">
			<arglist>
				<arg name="MIDI-message (2 to 4 numbers)" optional="0" type="list" />
			</arglist>
			<digest>
				Send a MIDI event to the plug-in
			</digest>
			<description>
				The word <m>midievent</m>, followed by two to four numbers, sends a MIDI event to the plug-in. The first three number arguments are the bytes of the MIDI message. The fourth, optional, argument is a detune parameter used for MIDI note messages. The value ranges from -63 to 64 cents, with 0 being the default.
			</description>
		</method>
		<method name="mix">
			<arglist>
				<arg name="mix-mode" optional="0" type="list" />
			</arglist>
			<digest>
				Mix plug-in output together with the dry signal input.
			</digest>
			<description>
				In left inlet: <m>mix 1</m> turns mix mode on, in which the plug-in's output is added to the input. <m>mix 0</m> turns mix mode off. When mix mode is off, the plug-in's output is not added to the input. Only the plug-in's output is sent to the <o>vst~</o> object's signal outlets.
			</description>
		</method>
		<method name="mpeevent">
			<arglist>
				<arg name="ARG_NAME_0" type="list" optional="0" />
			</arglist>
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</method>
		<method name="params">
			<arglist />
			<digest>
				Print a list of the plug-in's parameters
			</digest>
			<description>
				The word <m>params</m> causes a list of the plug-in's parameters to be sent out the sixth-from-right outlet.
			</description>
		</method>
		<method name="pgmnames">
			<arglist />
			<digest>
				Output a list of the plug-in's program names
			</digest>
			<description>
				The word <m>pgmnames</m> causes a list of the plug-in's current program names to be sent out the right outlet.
			</description>
		</method>
		<method name="plug">
			<arglist>
				<arg name="plug-in-name" optional="0" type="symbol" />
			</arglist>
			<digest>
				Load a plug-in
			</digest>
			<description>
				In left inlet: The word <m>plug</m> with no arguments opens a standard open file dialog allowing you to choose a new VST or Audio Unit plug-in to host. The word <m>plug</m> followed by a symbol argument searches for plug-in with the specified name in the Max search path. If a new plug-in is opened and found, the old plug-in (if any) is discarded and the new one loaded. An optional second argument to the <m>plug</m> message can be used to specify a plug-in name within a shell plug-in (e.g., WaveShell). This can either be a symbolic plug-in name or an associated ID value as displayed by the <m>printids</m> message).
				<br />
				<br />
				When the Max application starts up, the system VST folder will be added to the max search path. On the Macintosh this is generally /Library/Audio/Plug-ins/VST/ and on windows this is the folder specified in the VstPluginsPath string value under the registry key HKLM\Software\VST. On Mac OS, Audio Unit plug-ins will be scanned and .auinfo files for Apple built-in and user-installed plug-ins will be added to the search path.
			</description>
		</method>
		<method name="presetnames">
			<arglist />
			<digest>
				Output a list of the plug-in's user preset filenames
			</digest>
			<description>
				For Audio Unit plug-ins only, the word <m>presetnames</m> causes a list of the plug-in's user preset filenames to be sent out the right outlet.
			</description>
		</method>
		<method name="open">
			<arglist>
				<arg name="window-coordinates" optional="0" type="list" />
			</arglist>
			<digest>
				Open the plug-in edit window
			</digest>
			<description>
				The word <m>open</m> with no arguments opens the plug-in's edit window. If the window was previously opened then the edit window location will persist. The word <m>open</m> followed by two integer values specifying the left and top window coordinates respectively will open or move the plug-in's edit window to the given coordinates.
			</description>
		</method>
		<method name="printids">
			<arglist />
			<digest>
				Print a list of sub plug-in IDs for a VST shell plug-in to the Max Console
			</digest>
			<description>
				In left inlet: When using the <o>vst~</o> object to host a VST shell plug-in (e.g., WaveShell) that is not instantiated with a specific plug-in name, the word <m>printids</m> causes a list of sub plug-in IDs to be displayed in the Max Console.
			</description>
		</method>
		<method name="read">
			<arglist>
				<arg name="filename" optional="0" type="symbol" />
			</arglist>
			<digest>
				Read an effect program in bank or individual program format
			</digest>
			<description>
				With no arguments, <m>read</m> opens a standard open file dialog prompting for a file of effect programs, either in bank or individual program format. <m>read</m> accepts an optional symbol argument where it looks for a VST plug-in bank or effect program file in the Max search path.
			</description>
		</method>
		<method name="set">
			<arglist>
				<arg name="effect-program-name" optional="0" type="symbol" />
			</arglist>
			<digest>
				Change the name of the current effect program
			</digest>
			<description>
				In left inlet: The word <m>set</m>, followed by a symbol, changes the name of the current effect program to the symbol.
			</description>
		</method>
		<method name="settitle">
			<arglist>
				<arg name="window-title" optional="0" type="symbol" />
			</arglist>
			<digest>
				Change the display window title
			</digest>
			<description>
				In left inlet: The word <m>settitle</m>, followed by a symbol, changes the title displayed for the name of the plug-in's edit window.
			</description>
		</method>
		<method name="signal">
			<arglist />
			<digest>
				Input to be processed by the plug-in
			</digest>
			<description>
				Input to be processed by the plug-in. If the plug-in is an instrument plug-in, the input will be ignored.
			</description>
		</method>
		<method name="subname">
			<arglist>
				<arg name="plug-in-name" optional="0" type="symbol" />
			</arglist>
			<digest>
				Load a shell VST plug-in
			</digest>
			<description>
				In left inlet: The word <m>subname</m>, followed by a plug-in name or plug-in ID, will cause a shell VST plug-in (e.g., WaveShell) to be re-instantiated with the specified name/ID.
			</description>
		</method>
		<method name="wclose">
			<arglist />
			<digest>
				Close the plug-in edit window
			</digest>
			<description>
				Closes the plug-in's edit window.
			</description>
		</method>
		<method name="write">
			<arglist>
				<arg name="file/pathname" optional="0" type="symbol" />
			</arglist>
			<digest>
				Write an effect program file
			</digest>
			<description>
				For VST plug-ins, with no arguments, <m>write</m> opens a standard Save As dialog box prompting you to choose the name and type of the effect program file (single program or bank). <m>write</m> accepts an optional symbol argument that specifies a full or partial destination pathname. An individual program file is written in this case. For Audio Unit plug-ins, the filename argument is required, and specifies the name of a user preset that will be written to a standard plug-in user preset location.
			</description>
		</method>
		<method name="writebank">
			<arglist>
				<arg name="program-bank-file/pathname" optional="0" type="symbol" />
			</arglist>
			<digest>
				Write an effect program bank file
			</digest>
			<description>
				With no arguments, <m>writebank</m> opens a standard Save As dialog box prompting you to choose the name of the effect program bank file. <m>writebank</m> accepts an optional symbol argument that specifies a full or partial destination pathname. For Audio Unit plug-ins, the <m>writebank</m> message is the same as <m>write</m> and saves only the current settings to a named file.
			</description>
		</method>
		<method name="writepgm">
			<arglist>
				<arg name="inividual-effect-program-file/pathname" optional="0" type="symbol" />
			</arglist>
			<digest>
				Write an individual effect program file
			</digest>
			<description>
				With no arguments, <m>writepgm</m> opens a standard Save As dialog box prompting you to choose the name of the individual effect program file. <m>writepgm</m> accepts an optional symbol argument that specifies a full or partial destination pathname. For Audio Unit plug-ins, the <m>writepgm</m> message is the same as <m>write</m> and saves the current settings to a named file.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="bypass" get="1" set="1" type="int" size="1">
			<digest>
				Bypass
			</digest>
			<description>
				Bypasses plug-in processing and passes all audio through the <o>vst~</o> object.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Behavior" />
				<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="Bypass" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="enablehscroll" get="1" set="1" type="int" size="1">
			<digest>
				Enable Horizontal Scrollbar
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Behavior" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="7.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Enable Horizontal Scrollbar" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="enablevscroll" get="1" set="1" type="int" size="1">
			<digest>
				Enable Vertical Scrollbar
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Behavior" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="7.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Enable Vertical Scrollbar" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="genericeditor" get="1" set="1" type="int" size="1">
			<digest>
				Use Generic Editor
			</digest>
			<description>
				Use a generic editor interface for a plug-in. Note that some Audio Unit plug-ins will not show generic interfaces.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Behavior" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="7.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Always Use Generic Editor" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="parameter_enable" get="1" set="1" type="int" size="1">
			<digest>
				Enable parameter mode handling
			</digest>
			<description>
				Enables use of this object with <link type="vignette" module="core" name="live_parameters">Max for Live Parameters</link> and allows for <link type="vignette" module="core" name="parameter_enable">setting initial parameter values</link> in the Max environment.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Parameter" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Parameter Mode Enable" />
				<attribute name="order" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
	</attributelist>
	<snapshot />
	<!--EXAMPLE-->
	<examplelist>
		<example img="vst~.png" caption="Process an audio signal with a plug-in" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="rewire~" />
		<seealso name="amxd~" />
	</seealsolist>
	<discussion>
		Some plug-ins have their own editing window, which is visible when you double-click on the object. Otherwise, double-clicking on the object displays a default parameter editing window. The number of signal inputs and outputs default to 2, but the number required by the plug-in may be less than that. If you want to specify a larger number of inputs and outputs, you can supply them as optional arguments.
		<br />
		Audio plug-ins loaded into a <o>vst~</o> object can be synchronized by enabling the global transport (choose <b>GlobalTransport</b> from the Extras menu and click on the global transport's Activate button).
	</discussion>
	<misc name="Output">
		<entry name="int">
			<description>
				Out fifth-from-right outlet: Parameter values or plug-in informational values in response to the <m>get</m> message.
				<br />
				<br />
				Out fourth-from-right outlet: Raw MIDI bytes received by the plug-in (but not any MIDI messages received using the <m>midievent</m> message).
			</description>
		</entry>
		<entry name="float">
			<description>
				Out fifth-from-right outlet: Parameter values or plug-in informational values in response to the <m>get</m> message.
			</description>
		</entry>
		<entry name="list">
			<description>
				Out second-from-right outlet: When a VST shell plug-in (e.g., WaveShell) is instantiated without specifying a plug-in name, a list of symbols specifying sub plug-in IDs are sent out the seventh outlet in response to the <m>printids</m> message.
			</description>
		</entry>
		<entry name="signal">
			<description>
				Out left outlet (and other signal outlets as defined by the number of outputs argument): Audio output from the plug-in. The left outlet is the left channel (or channel 1).
			</description>
		</entry>
		<entry name="symbol">
			<description>
				Out sixth-from-right outlet: The plug-in's parameters are sent out as a series of symbols in response to the <m>params</m> message.
				<br />
				Note: Some plug-ins, especially those with their own editors, fail to name the parameters.
				<br />
				<br />
				Out third-from-right outlet: A series of symbols are sent out in response to the <m>pgmnames</m> message. If there are no program names, the message <m>pgmnames: Default</m> is output.
				<br />
				<br />
				Out second-from-right outlet: When a VST shell plug-in (e.g., WaveShell) is instantiated without specifying a plug-in name, a series of symbols specifying plug-in names are sent out the seventh outlet in response to the <m>getsubnames</m> message.
				<br />
				<br />
				Out right outlet: An Audio Unit plug-in's user preset files are sent out as a series of symbols in response to the <m>presetnames</m> message.
			</description>
		</entry>
	</misc>
</c74object>
