adds fix for zero-length note issue

when there was a pad that was only nonzero for a single sample, the
velocity algorithm would send both the note-on and note-off within the
same frame, which caused stuck notes in several synths.