"clean up midi for magma" script