"bug fix"

Created a try... catch fix for the MIDI bug. Fixed src and min.