script for midi module