vstnote — Sends a MIDI note with definite duration to a VST plugin.
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.
Example 521. Example for vstnote
/* 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