PlayStreamEvent.midiTicksToNextNoteOnChannel

This is the count of midi clock ticks after this non-zero velocity note on event (if it is not one of those, this value will be zero) and the next note that will be sounded on its same channel.

While rests may throw this off, this number is the most help in this struct for determining the note length you'd put on sheet music. Divide it by MidiFile.timing to get the number of midi quarter notes, which is directly correlated to the musical beat.

Will be zero if this isn't actually a note on, the input stream was not seekable (e.g. a real time recording where the next note hasn't been struck yet), or if a note off was not found ahead in the stream.

struct PlayStreamEvent
int midiTicksToNextNoteOnChannel;

Meta