vstnote
Prev | Orchestra Opcodes and Operators | Next

## vstnote

vstnote — Sends a MIDI note with definite duration to a VST plugin.

## Syntax

    vstnote instance, kchan, knote, kveloc, kdur

## Description

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

## Initialization

instance - the number which identifies the plugin, to be passed to other vst4cs opcodes.

## 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

Example 419.

    /* 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

By: Andres Cabrera and Michael Gogins

Uses code from Hermann Seib's VSTHost and Thomas Grill's vst~ object.

VST is a trademark of Steinberg Media Technologies GmbH. VST Plug-In Technology by Steinberg.

Prev | Up | Next
vstmidiout | Home | vstparamset,vstparamget