Close to getting NotDuration

Worked yesterday for 2 hours and last hour to determine the notes
duration for the MIDI file. Currently having issues converting a hex
value represented as a byte[] to a int or long value. After getting the
value I will be able to determine BPM and the note duration.
Printing BPM

Currently have BPM values coming out. With the bpm and ppqn(parts per
quarter note) I should be able to get a notes duration.