midi test code