Warning: Specifications are still subject to change!





vstnote

vst4cs -- VST plugin hosting in Csound on Windows.

Description

vstnote sends a MIDI note with definite duration to a VST plugin.

Syntax

vstnote instance, kchan, knote, kveloc, kdur

Initialization

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

Performance

kchan -- The midi channel to trasnmit the note on.

knote -- The midi note number to send.

kveloc -- The midi note's velocity.

kdur -- The midi note's duration in seconds.



Note: Be sure the instrument containing vstnote is not finished before the duration of the note, otherwise you'll have a 'hung' note.

Examples

/* orc */
sr = 44100
kr = 4410
ksmps = 10
nchnls = 2
giHandle5 vstinit "c:/vstplugins/cheeze/cheeze machine.dll",1
instr 3
ain1 = 0
ga1, ga2 vstplugg gihandle5, ain1, ain1
endin
instr 4
vstnote giHandle5, 1, p4, p5, p3
endin
instr 10
outs ga1, ga2
endin
/* sco */
i 3 0 21
i 10 0 21
i4 1 3 57 55
i4 3 3 60 100
i4 5 3 62 100
i4 7 3 64 100
i4 9 2 65 100
i4 11 1 67 100
i4 13 1 69 100
i4 15 3 71 100
i4 18 3 72 100

Credits

Author: Cabrera,Andres; Goggins, Michael

Bogota, Colombia

2004