Warning: Specifications are still subject to change!





vstplug, vstplugg

vst4cs -- VST plugin hosting in Csound on Windows.

Description

vstplug and vstplugg are used for sending and receiving audio from a VST plugin.

vstplug is used within an instrument definition that contains a vstout 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.

vstplugg (vstplug 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 vstplugg 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 vstplug instance, ain1, ain2

aout1,aout2 vstplugg 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 vstout or vstpsend for examples.


Credits

Authors:

Cabrera, Andres

Bogota, Colombia

2004

Gogins, Michael

New York, USA

2004