implementing midi module