Research on Midi note duration

Found a way to determine notes play duration for the MIDI file. Looking
to implement it next.