There's a tool to do it for you, it's called MPAGD Musicizer. I don't have a link but do a quick web search for it