Adding custom music

PWADs can include music lumps for custom music when played. Originally, these lumps were encoded in the MUS format. WAD editors need to convert between that and a format used by music authoring tools, such as MIDI.

Many modern ports will accept MIDI lumps.

Ingredients
To add music to a wad you will need:


 * a midi file that you want in your level
 * WAD resource editor such as XWE

Name your MIDI file
If your map occupies the MAP01 slot, you will have to rename the midi file to D_RUNNIN for it to work properly.

See music for a list of names used on other map slots.

Import the MIDI
Open your map in XWE. At the bottom of the screen you will see a tab that says music. Double click on that and open the MIDI file that you renamed in the previous step.