VSTPluginMIDIProxy:
Filter:
vstplugin/Classes (extension) | Server > Abstractions

VSTPluginMIDIProxy
ExtensionExtension

MIDI interface for VSTPluginController

Description

This class mimicks the interface of MIDIOut, so you don`t have to send raw MIDI messages.

Every VSTPluginController instance has its own VSTPluginMIDIProxy instance that you can access with VSTPluginController: -midi.

It is used internally by Pbinds of Event type \vst_midi (see VSTPluginController: Sequencing), but it can also be used for playing a VSTi with a MIDI keyboard, for manually scheduling MIDI events in a Routine, etc.

See VSTPluginController: VST Instruments for some usage examples.

WARNING: This class is not a drop-in replacement for MIDIOut! More specifically, it is not meant to be used with the \midi Event type. Instead, use the dedicated \vst_midi Event type mentioned above.

Instance Methods

All methods have a corresponding *Msg version which returns a raw OSC message, so they can be scheduled as bundles.

.noteOn

Arguments:

chan

the MIDI channel

note

the pitch

veloc

the velocity

Discussion:

The pitch argument does not have to be an Integer, it can also be a fractional value (= microtonal)!

NOTE: This is not part of the MIDI standard and not all VST instruments actually support it!

Tip: SFZ samplers like sfizz or sforzando do support microtonal playback.