MOD (file format)
   HOME

TheInfoList



OR:

MOD is a computer file format used primarily to represent
music Music is generally defined as the art of arranging sound to create some combination of form, harmony, melody, rhythm or otherwise expressive content. Exact definitions of music vary considerably around the world, though it is an aspe ...
, and was the first
module file Module file (MOD music, tracker music) is a family of music file formats originating from the MOD file format on Amiga systems used in the late 1980s. Those who produce these files (using the software called music trackers) and listen to them ...
format. MOD files use the “.MOD”
file extension A filename extension, file name extension or file extension is a suffix to the name of a computer file (e.g., .txt, .docx, .md). The extension indicates a characteristic of the file contents or its intended use. A filename extension is typically d ...
, except on the Amiga which doesn't rely on filename extensions; instead, it reads a file's header to determine filetype. A MOD file contains a set of ''instruments'' in the form of samples, a number of ''patterns'' indicating how and when the samples are to be played, and a list of what patterns to play in what order.


History

The first version of the format was created by Karsten Obarski for use in the Ultimate Soundtracker, tracker software released for the Amiga computer in 1987. The format has since been supported by hundreds of playback programs and dozens of other trackers. The original version of the MOD format featured four channels of simultaneous audio playback, corresponding to the capabilities of the
original Amiga chipset The Original Chip Set (OCS) is a chipset used in the earliest Commodore Amiga computers and defined the Amiga's graphics and sound capabilities. It was succeeded by the slightly improved Enhanced Chip Set (ECS) and greatly improved Advanced Gra ...
, and up to 15 instruments. Later variations of the format have extended this to up to 32 channels and 31 instruments. The format was designed to be directly playable on the Amiga without additional processing: for example, samples are stored in 8-bit PCM format ready to be played on the Amiga DACs, and pattern data is not packed. Playback required very little CPU time on an Amiga, and many games used MOD files for their
background music Background music (British English: piped music) is a mode of musical performance in which the music is not intended to be a primary focus of potential listeners, but its content, character, and volume level are deliberately chosen to affect behav ...
. A common misconception is that the magic number "M.K." in the 0x438 offset of MOD files are the initials of Mahoney and Kaktus, two prominent Amiga demomakers at the time, who played an important part in the popularity of the format. They in fact stand for the initials of Michael Kleps a.k.a. Unknown / DOC, another developer of the format. After the Amiga's production ceased, the MOD format has had continued popularity in the
Demoscene The demoscene is an international computer art subculture focused on producing demos: self-contained, sometimes extremely small, computer programs that produce audiovisual presentations. The purpose of a demo is to show off programming, visual ...
and as background music for independent video games and Chiptunes. It is not uncommon to hear MOD music in
keygen A key generator (key-gen) is a computer program that generates a product licensing key, such as a serial number, necessary to activate for use of a software application. Keygens may be legitimately distributed by software manufacturers for lice ...
s either.


Format overview

A pattern is typically represented in a sequencer
user interface In the industrial design field of human–computer interaction, a user interface (UI) is the space where interactions between humans and machines occur. The goal of this interaction is to allow effective operation and control of the machine f ...
as a table with one column per channel, thus having four columns – one for each Amiga hardware channel. Each column has 64 rows. A cell in the table can cause one of several actions to happen on its column's channel when its row's time is reached: * Start an instrument playing a new note in this channel at a given volume, possibly with a special effect applied on it * Change the volume or special effect being applied to the current note * Change pattern flow; jump to a specific song or pattern position or loop inside a pattern * Do nothing; any existing note playing in this channel will continue to play An instrument is a single sample along with an optional indication of which portion of the sample can be repeated to hold a sustained note.


Timing

In the original MOD file the minimum time frame was 0.02 seconds, or a " vertical blanking" (VSync) interval, because the original software used the VSync timing of the monitor running at 50 Hz (for
PAL Phase Alternating Line (PAL) is a colour encoding system for analogue television. It was one of three major analogue colour television standards, the others being NTSC and SECAM. In most countries it was broadcast at 625 lines, 50 fields (25 ...
) or 60 Hz (for
NTSC The first American standard for analog television broadcast was developed by National Television System Committee (NTSC)National Television System Committee (1951–1953), Report and Reports of Panel No. 11, 11-A, 12–19, with Some supplement ...
) for timing. The rate at which pattern data is played is defined by a ''speed setting''. Each row in the pattern data lasts one vertical blanking (or 0.02 seconds) times the current speed setting. The speed setting varied from 1 to 255. In later versions of the format, the vertical blanking was replaced with an adjustable time period staying in the range .01, 0.078seconds. The old speed setting command was replaced with a new one that was used to change both the old speed setting and the new adjustable time period. Unfortunately, some of the old functionality was broken, because the new speed setting command had an identical code value to the old command. Values in the range
, 31 The comma is a punctuation mark that appears in several variants in different languages. It has the same shape as an apostrophe or single closing quotation mark () in many typefaces, but it differs from them in being placed on the baseline o ...
were interpreted as the old speed settings, but other values were regarded as modifications to the adjustable time period. Hence, values in the range 2, 255used in some old songs broke in new versions of the player. Further information on the MOD format can be found at the alt.binaries.sounds.mods FAQ.


Other formats that use the MOD extension

MOD is the
file extension A filename extension, file name extension or file extension is a suffix to the name of a computer file (e.g., .txt, .docx, .md). The extension indicates a characteristic of the file contents or its intended use. A filename extension is typically d ...
for several other applications: * The
video file format A video file format is a type of file format for storing digital video data on a computer system. Video is almost always stored using lossy compression to reduce the file size. A video file normally consists of a container (e.g. in the Matros ...
used on many digital
camcorder A camcorder is a self-contained portable electronic device with video and recording as its primary function. It is typically equipped with an articulating screen mounted on the left side, a belt to facilitate holding on the right side, hot-swa ...
s, such as the JVC Everio, the Canon FS100 and the Panasonic D-Snap SD-card camcorders. * Game modules in Neverwinter Nights. *
AMPL AMPL (A Mathematical Programming Language) is an algebraic modeling language to describe and solve high-complexity problems for large-scale mathematical computing (i.e., large-scale optimization and scheduling-type problems). It was developed ...
model files. * Old
phpBB phpBB is an Internet forum package written in the PHP scripting language. The name "phpBB" is an abbreviation of ''PHP Bulletin Board''. Available under the GNU General Public License, phpBB is free and open-source. Features of phpBB include ...
modification templates. * Module files in
Femap Femap (''Finite Element Modeling And Postprocessing'') is an engineering analysis program sold by Siemens Digital Industries Software that is used to build finite element models of complex engineering problems ("pre-processing") and view solution ...
* The extension for the
binary Binary may refer to: Science and technology Mathematics * Binary number, a representation of numbers using only two digits (0 and 1) * Binary function, a function that takes two arguments * Binary operation, a mathematical operation that ta ...
variant of the Wavefront .obj format. * The extension for some games using the Vassal game engine. * The extension for Fortran module files. * The extension for legacy Visual Basic module files, for versions before the release of
Visual Basic .NET Visual Basic, originally called Visual Basic .NET (VB.NET), is a multi-paradigm, object-oriented programming language, implemented on .NET, Mono, and the .NET Framework. Microsoft launched VB.NET in 2002 as the successor to its original Visua ...
. * The extension for Go module files, used for package versioning. * Module for ABB Robotics IRC5 and S4 robot controllers. Contains robotic motion programs written in the language RAPID. * Lanner WITNESS simulation software model files *
Paradox Development Studio Paradox Development Studio (PDS) is a Swedish video game developer founded in 1995. It is closely associated with its parent company and video game publisher, Paradox Interactive. It is best known for its grand strategy wargame series ''Europa U ...
uses a ".MOD" format for user-created modifications of their games. * DND adventure modules for
Fantasy Grounds Fantasy Grounds is a virtual tabletop application, which contains a set of tools to assist players of tabletop role-playing games playing either in person or remotely. History Fantasy Grounds was first released in 2004 by SmiteWorks, originall ...
, a virtual tabletop application. *
GNU GRUB GNU GRUB (short for GNU GRand Unified Bootloader, commonly referred to as GRUB) is a boot loader package from the GNU Project. GRUB is the reference implementation of the Free Software Foundation's Multiboot Specification, which provides a u ...
boot modules (when found in /boot)


See also

*
Module file Module file (MOD music, tracker music) is a family of music file formats originating from the MOD file format on Amiga systems used in the late 1980s. Those who produce these files (using the software called music trackers) and listen to them ...
*
Tracker (music software) A music tracker (sometimes referred to as just tracker for short) is a type of music sequencer software for creating music. The music is represented as discrete musical notes positioned in several channels at discrete chronological positions on ...
* Mod (disambiguation) * MOD and TOD (video format) * List of Amiga music format players *
MIDI MIDI (; Musical Instrument Digital Interface) is a technical standard that describes a communications protocol, digital interface, and electrical connectors that connect a wide variety of electronic musical instruments, computers, and ...


References


External links


Noisetracker/Soundtracker/Protracker Module Format - 3rd Revision


* ttp://aminet.net/tree?path=mods Music data index site
Modarchive
{{DEFAULTSORT:Mod (File Format) Amiga music formats AmigaOS Module file formats Video game music file formats