1
<refentry id="vstaudio">
2
<indexterm id="IndexVstAudio"><primary>vstaudio</primary></indexterm>
3
<refentryinfo><title>Plugin Hosting:VST</title></refentryinfo>
5
<refentrytitle>vstaudio, vstaudiog</refentrytitle>
9
<refname>vstaudio</refname>
10
<refpurpose>VST audio output.
15
<synopsis>aout1,aout2 <command>vstaudio</command> instance, [ain1, ain2]</synopsis>
16
<synopsis>aout1,aout2 <command>vstaudiog</command> instance, [ain1, ain2]</synopsis>
19
<title>Description</title>
20
<para><emphasis>vstaudio</emphasis> and <emphasis>vstaudiog</emphasis>
21
are used for sending and receiving audio from a VST plugin.</para>
22
<para><emphasis>vstaudio</emphasis> is used within an instrument
23
definition that contains a <emphasis>vstmidiout</emphasis> or
24
<emphasis>vstnote</emphasis> opcode. It outputs audio for only that
25
one instrument. Any audio remaining in the plugin after the end of the
26
note, for example a reverb tail, will be cut off and should be dealt
27
with using a damping envelope.</para>
28
<para><emphasis>vstaudiog</emphasis> (vstaudio global) is used in a
29
separate instrument to process audio from any number of VST notes or
30
MIDI events that share the same VST plugin instance (instance). The
31
<emphasis>vstaudiog</emphasis> instrument must be numbered higher than
32
all the instruments receiving notes or MIDI data, and the note
33
controlling the vstplug instrument must have an indefinite duration,
34
or at least a duration as long as the VST plugin is active.</para>
37
<title>Initialization</title>
38
<para><emphasis>instance</emphasis> - the number which identifies the
39
plugin, to be passed to other vst4cs opcodes.</para>
42
<title>Performance</title>
43
<para><emphasis>aout1, aout2</emphasis> - the audio output received from
45
<para><emphasis>ain1, ain2</emphasis> - the audio input sent to the
49
<title>Examples</title>
51
linkend="vstmidiout"><citetitle>vstmidiout</citetitle></link> and <link
52
linkend="vstparamset"><citetitle>vstparamset</citetitle></link> for examples.</para>
55
<title>Credits</title>
56
<para>By: &nameandres; and &namemichael;</para>
57
<para>Uses code from Hermann Seib's VSTHost and Thomas Grill's vst~
59
<para>VST is a trademark of Steinberg Media Technologies GmbH.
60
VST Plug-In Technology by Steinberg.</para>
1
<refentry id="vstaudio">
2
<indexterm id="IndexVstAudio"><primary>vstaudio</primary></indexterm>
3
<refentryinfo><title>Plugin Hosting:VST</title></refentryinfo>
5
<refentrytitle>vstaudio, vstaudiog</refentrytitle>
9
<refname>vstaudio</refname>
10
<refpurpose>VST audio output.
15
<synopsis>aout1,aout2 <command>vstaudio</command> instance, [ain1, ain2]</synopsis>
16
<synopsis>aout1,aout2 <command>vstaudiog</command> instance, [ain1, ain2]</synopsis>
19
<title>Description</title>
20
<para><emphasis>vstaudio</emphasis> and <emphasis>vstaudiog</emphasis>
21
are used for sending and receiving audio from a VST plugin.</para>
22
<para><emphasis>vstaudio</emphasis> is used within an instrument
23
definition that contains a <emphasis>vstmidiout</emphasis> or
24
<emphasis>vstnote</emphasis> opcode. It outputs audio for only that
25
one instrument. Any audio remaining in the plugin after the end of the
26
note, for example a reverb tail, will be cut off and should be dealt
27
with using a damping envelope.</para>
28
<para><emphasis>vstaudiog</emphasis> (vstaudio global) is used in a
29
separate instrument to process audio from any number of VST notes or
30
MIDI events that share the same VST plugin instance (instance). The
31
<emphasis>vstaudiog</emphasis> instrument must be numbered higher than
32
all the instruments receiving notes or MIDI data, and the note
33
controlling the vstplug instrument must have an indefinite duration,
34
or at least a duration as long as the VST plugin is active.</para>
37
<title>Initialization</title>
38
<para><emphasis>instance</emphasis> - the number which identifies the
39
plugin, to be passed to other vst4cs opcodes.</para>
42
<title>Performance</title>
43
<para><emphasis>aout1, aout2</emphasis> - the audio output received from
45
<para><emphasis>ain1, ain2</emphasis> - the audio input sent to the
49
<title>Examples</title>
51
Here is an example of the use of the <emphasis>vstaudio</emphasis> opcode. It uses the file <ulink url="examples/vst4cs.csd"><citetitle>vst4cs.csd</citetitle></ulink>.
53
<title>Example of the <emphasis>vstaudio</emphasis> opcode.</title>
54
<para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
55
<xi:include href="examples-xml/vst4cs.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
60
<title>Credits</title>
61
<para>By: &nameandres; and &namemichael;</para>
62
<para>Uses code from Hermann Seib's VSTHost and Thomas Grill's vst~
64
<para>VST is a trademark of Steinberg Media Technologies GmbH.
65
VST Plug-In Technology by Steinberg.</para>