Difference between revisions of "Adding custom music"

From DoomWiki.org

[unchecked revision][unchecked revision]
m (capitalization, wikilinks)
Line 1: Line 1:
 
[[PWAD]]s 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 [[Wikipedia:MIDI|MIDI]].
 
[[PWAD]]s 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 [[Wikipedia:MIDI|MIDI]].
  
From v1.5 Doom was able to read standard format midi files for music, as long as they were no larger than 64kb. The Windows 95 version of Doom, [[Doom95]], however does not have the ability to play midi files.
+
Since [[Versions of Doom and Doom II#v1.5|v1.5]], Doom has been able to read standard format MIDI files for music, as long as they are no larger than 64kb. The Windows 95 version of Doom, [[Doom95]], however does not have the ability to play MIDI files.
  
Many modern ports will accept MIDI lumps without any limitation.
+
Many modern [[source port|ports]] will accept MIDI lumps without any limitation.
  
 
== Requirements ==
 
== Requirements ==
To add music to a wad you will need:
+
To add music to a WAD you will need:
  
* a midi file that you want in your level
+
* a MIDI file that you want in your level
 
* [[:Category:WAD editors|WAD resource editor]] such as [[XWE]]
 
* [[:Category:WAD editors|WAD resource editor]] such as [[XWE]]
  
 
== Importing ==
 
== Importing ==
  
# 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.
+
# 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.
 
# 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.
 
# 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.
  
Make sure that you do not alter or edit your [[IWAD]] (e.g. doom2.wad) as several ports will either no longer work properly or even start, with altered Iwads.
+
Make sure that you do not alter or edit your [[IWAD]] (e.g. doom2.wad) as several ports will either no longer work properly or even start, with altered IWADs.
  
 
== Creating MIDI files ==
 
== Creating MIDI files ==

Revision as of 18:59, 10 February 2011

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.

Since v1.5, Doom has been able to read standard format MIDI files for music, as long as they are no larger than 64kb. The Windows 95 version of Doom, Doom95, however does not have the ability to play MIDI files.

Many modern ports will accept MIDI lumps without any limitation.

Requirements

To add music to a WAD you will need:

Importing

  1. 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.
  2. 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.

Make sure that you do not alter or edit your IWAD (e.g. doom2.wad) as several ports will either no longer work properly or even start, with altered IWADs.

Creating MIDI files

There are several sequencers that can create MIDI files. Just search for MIDI sequencer and you'll most likely find one that suites your needs.

When creating a MIDI file make sure that no notes stretch out beyond the end of the MIDI file, or else your song will end with a silent bar of music.

MUS format

  • Doom MUS format uses 9 channels apart from MIDI's 16 channels using channel 1-8 for sounds and channel 9 for drums.
  • Each channel can only play 1 note at the time, so if you want to add a chord then you have to set 3 channels to the same patch and split the notes up that way.
  • MUS format uses the same MIDI patch layout as in General MIDI.
Under construction icon-yellow.svgThis article or section is a stub. Please help the Doom Wiki by adding to it.