Introduction
An .imf or .wlf file is game music in the id Software Music Format: the bytes to send
to the AdLib OPL2 sound chip, with the waits between them. Wolfenstein 3-D, Commander Keen 4 to 6 and Duke
Nukem II are among the games that use it.
Structure
The music is a run of four-byte events: a register, a value and a little-endian 16-bit delay. A type 0 file is nothing but events. A type 1 file begins with the 16-bit length of the event data and may carry tags after it. The playing rate is not stored: games use 280, 560 or 700 ticks a second.
Not described
This page is a first outline. The details of the layout are not yet described here.
Known, not yet covered
- Reference: telling the two types apart, the tag layouts and the OPL registers, which the ModdingWiki page discusses.
- Viewer: the site has no viewer for this format.
Links
Software
- AdPlug – free AdLib music player library, with player front ends
Reference
- ModdingWiki: IMF Format – types, events, timing and tags