Warning: Specifications are still subject to change!

# vstparamset, vstparamget

vst4cs -- VST plugin hosting in Csound on Windows.

## Description

vstparamset and vstparamget are used for parameter comunication to and from a VST plugin.

## Syntax

vstparamset instance, kparam, kvalue
kvalue vstparamget instance, kparam

## Initialization

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

## Performance

kparam -- The number of the parameter to set or get.

kvalue -- the value to set, or the the value returned by the plugin.

Parameters vary according to the plugin. To find out what parameters are available, use the verbose option when loading the plugin with vstinit.

## Examples

    /* orc */
    sr = 44100
    kr = 4410
    ksmps = 10
    nchnls = 2
    giHandle1 vstinit "c:/vstplugins/cheeze/cheeze machine.dll",1
    instr 3
    ain1 = 0
    ab1, ab2 vstaudio gihandle1, ain1, ain1
    outs ab1, ab2
    endin
    instr 4
    vstmidiout gihandle1,144,1,p4,p5
    kline line 0,p3,1
    vstparamset gihandle1, 3, kline
    endin
    /* sco */
    i 3 0 21
    i4 1 1 57 32
    i4 3 1 60 100
    i4 5 1 62 100
    i4 7 1 64 100
    i4 9 1 65 100
    i4 11 1 67 100
    i4 13 1 69 100
    i4 15 3 71 100
    i4 18 3 72 100
    e

## Credits

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