Warning: Specifications are still subject to change!

# vstaudio, vstaudiog

vst4cs -- VST plugin hosting in Csound on Windows.

## Description

vstaudio and vstaudiog are used for sending and receiving audio from a VST plugin.

vstaudio is used within an instrument definition that contains a vstmidiout or vstnote opcode. It outputs audio for only that one instrument. Any audio remaining in the plugin after the end of the note, for example a reverb tail, will be cut off and should be dealt with using a damping envelope.

vstaudiog (vstaudio global) is used in a separate instrument to process audio from any number of VST notes or MIDI events that share the same VST plugin instance (instance). The vstaudiog instrument must be numbered higher than all the instruments receiving notes or MIDI data, and the note controlling the vstplugg instrument must have an indefinite duration, or at least a duration as long as the VST plugin is active.

## Syntax

aout1,aout2 vstaudio instance, ain1, ain2

aout1,aout2 vstaudiog instance, ain1, ain2

## Initialization

instance -- the number which identifies the plugin, returned previously by the vstinit opcode.

## Performance

aout1, aout2 -- the audio output given by the plugin.

ain1, ain2 -- the audio sent to the plug in for processing. For vst instruments, input is usually ignored.

## Examples

See vstmidiout or vstparamset for examples.

## Credits

Authors:
Cabrera, Andres
Bogota, Colombia
2004
Gogins, Michael
New York, USA
2004