Is it possible to add a "note off" event to a SequenceTrack?

I think I figured it out. Adding a note event to the sequence with the same note and a velocity of 0 appears to send a "note off" event to the instrument.

Is this in fact the correct way to do it? If so, it should probably be added to the C API documentation!

(However, it also seems to produce incorrect behavior in regards to the instrument's ADSR envelope.)