BEE2 is a tool for Portal 2 that adds various items to the editor, including changing music. However, to mod your music into it you have to script your own music packages. This is not the simplest thing, so what is the next best thing? Autogenerating scripts, of course! That is exactly what BMMX hopes to accomplish.
This is the documentation of the script.