updated script for midi module
updated script for midi module