implementing midi module
test script for midi module