This project has moved and is read-only. For the latest updates, please go here.

How to switch note off

Nov 17, 2010 at 9:30 AM

Hi. Simple question: How to switch note off? I have loaded a vst plugin into my host, and I put just one event to command stub:

VstMidiEvent(0, 10, 0, new byte[] { 144, 72, 100, 0 }, 0, 127));

I have putting this event only if user push the key down, but my VST instrument starts playing infinitely.

What must be done, to tell VST instrement, that none of notes is triggered? I want to play one note for 1 second.

Thank's in advance for help.

Nov 18, 2010 at 7:07 AM

Read up on the Midi specifications. This site might help you.

The answer is that you have to send a Note-off midi message with the same note number.

Hope it helps.