adding midi support, using modified jasmid library