HOME

TheInfoList



OR:

Music Macro Language (MML) is a music description language used in
sequencing In genetics and biochemistry, sequencing means to determine the primary structure (sometimes incorrectly called the primary sequence) of an unbranched biopolymer. Sequencing results in a symbolic linear depiction known as a sequence which succ ...
music on
computer A computer is a machine that can be programmed to Execution (computing), carry out sequences of arithmetic or logical operations (computation) automatically. Modern digital electronic computers can perform generic sets of operations known as C ...
and
video game system A video game console is an electronic device that outputs a video signal or image to display a video game that can be played with a game controller. These may be home consoles, which are generally placed in a permanent location connected to a t ...
s.


Background

Early automatic music generation functions were used in arcade games, which used many computer sounds. An example of an early popular Arcade game with music is The ''
Circus A circus is a company of performers who put on diverse entertainment shows that may include clowns, acrobats, trained animals, trapeze acts, musicians, dancers, hoopers, tightrope walkers, jugglers, magicians, ventriloquists, and unicyclist ...
'' from Exidy Corporation in 1977. The boom in Japanese video games was heralded in 1978 by the appearance in Japanese game centers (
Amusement arcade An amusement arcade (often referred to as a video arcade, amusements or simply arcade) is a venue where people play arcade games, including arcade video games, pinball machines, electro-mechanical games, redemption games, merchandisers (such as cl ...
s) of ''
Space Invaders is a 1978 shoot 'em up arcade game developed by Tomohiro Nishikado. It was manufactured and sold by Taito in Japan, and licensed to the Midway division of Bally for overseas distribution. ''Space Invaders'' was the first fixed shooter and set ...
'' by
Taito is a Japanese company that specializes in video games, toys, arcade cabinets and game centers, based in Shinjuku, Tokyo. The company was founded by Michael Kogan in 1953 as the importing vodka, vending machines and jukeboxes into Japan. It b ...
.Compiled by worked in the Pacific Industrial Co.,Ltd. All compiled alone. The music was all proprietary (
closed source Proprietary software is software that is deemed within the free and open-source software to be non-free because its creator, publisher, or other rightsholder or rightsholder partner exercises a legal monopoly afforded by modern copyright and inte ...
). The 1978 release of the
Programmable interval timer In CPU, computing and in embedded systems, a programmable interval timer (PIT) is a Counter (digital), counter that generates an output signal when it reaches a programmed count. The output signal may trigger an interrupt. Common features PITs may ...
by
Intel Intel Corporation is an American multinational corporation and technology company headquartered in Santa Clara, California. It is the world's largest semiconductor chip manufacturer by revenue, and is one of the developers of the x86 seri ...
was significant. The
Intel 8253 The Intel 8253 and 8254 are programmable interval timers (PITs), which perform timing and counting functions using three 16-bit counters. The 825x family was primarily designed for the Intel 8080/ 8085-processors, but were later used in x86 ...
Mode 3 Square Wave generator was used for music, in the Kit computer MZ-40K () by
SHARP Corporation is a Japanese multinational corporation that designs and manufactures electronic products, headquartered in Sakai-ku, Sakai, Osaka Prefecture. Since 2016 it has been majority owned by the Taiwan-based Foxconn Group. Sharp employs more than 5 ...
, made in Japan at May 1978. Another Micro computer BASIC MASTER MB-6880(ja) used a 5Bit D/A converter music automated reference signal. Also important was the development of a method to generate using
BASIC BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...
software.PDF file;Micro Computer BASIC MASTER MB-6880 Music method
-
The machine was assembled by
Hitachi, Ltd. () is a Japanese multinational conglomerate corporation headquartered in Chiyoda, Tokyo, Japan. It is the parent company of the Hitachi Group (''Hitachi Gurūpu'') and had formed part of the Nissan ''zaibatsu'' and later DKB Group and Fuyo ...
and made in Japan in September 1978. The MZ-40K featured an
open Open or OPEN may refer to: Music * Open (band), Australian pop/rock band * The Open (band), English indie rock band * ''Open'' (Blues Image album), 1969 * ''Open'' (Gotthard album), 1999 * ''Open'' (Cowboy Junkies album), 2001 * ''Open'' (YF ...
architecture Architecture is the art and technique of designing and building, as distinguished from the skills associated with construction. It is both the process and the product of sketching, conceiving, planning, designing, and constructing building ...
and program sources, was therefore a kind of
open source software Open-source software (OSS) is computer software that is released under a license in which the copyright holder grants users the rights to use, study, change, and distribute the software and its source code to anyone and for any purpose. Open ...
.Remains
Apple An apple is an edible fruit produced by an apple tree (''Malus domestica''). Apple fruit tree, trees are agriculture, cultivated worldwide and are the most widely grown species in the genus ''Malus''. The tree originated in Central Asia, wh ...
Open technology by
Steve Wozniak Stephen Gary Wozniak (; born August 11, 1950), also known by his nickname "Woz", is an American electronics engineer, computer programmer, philanthropist, inventor, and technology entrepreneur. In 1976, with business partner Steve Jobs, he c ...
in 1977 like
Apple An apple is an edible fruit produced by an apple tree (''Malus domestica''). Apple fruit tree, trees are agriculture, cultivated worldwide and are the most widely grown species in the genus ''Malus''. The tree originated in Central Asia, wh ...
Red book Apple Computers.


Versions


Classical MML

The first commands for classical MML appeared in the internal architecture of the SP-1002 MONITOR IOCS and SP-5001
BASIC BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...
Operating Systems on the MZ-80K
8-bit In computer architecture, 8-bit Integer (computer science), integers or other Data (computing), data units are those that are 8 bits wide (1 octet (computing), octet). Also, 8-bit central processing unit (CPU) and arithmetic logic unit (ALU) arc ...
CPU is
Z-80 The Z80 is an 8-bit microprocessor introduced by Zilog as the startup company's first product. The Z80 was conceived by Federico Faggin in late 1974 and developed by him and his 11 employees starting in early 1975. The first working samples we ...
Zilog Zilog, Inc. is an American manufacturer of microprocessors and 8-bit and 16-bit microcontrollers. It is also a supplier of application-specific embedded system-on-chip (SoC) products. Its most famous product is the Z80 series of 8-bit microp ...
Licensed Secondary source
computer. Made by
SHARP Corporation is a Japanese multinational corporation that designs and manufactures electronic products, headquartered in Sakai-ku, Sakai, Osaka Prefecture. Since 2016 it has been majority owned by the Taiwan-based Foxconn Group. Sharp employs more than 5 ...
at 1978 in
Japan Japan ( ja, 日本, or , and formally , ''Nihonkoku'') is an island country in East Asia. It is situated in the northwest Pacific Ocean, and is bordered on the west by the Sea of Japan, while extending from the Sea of Okhotsk in the north ...
. It incorporated
Intel 8253 The Intel 8253 and 8254 are programmable interval timers (PITs), which perform timing and counting functions using three 16-bit counters. The 825x family was primarily designed for the Intel 8080/ 8085-processors, but were later used in x86 ...
hardware and memory mapped I/O. The sound-related
BASIC BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...
Statements were MUSIC, TEMPO, and BEEP. -Document(validation) Upper Version SP-5030 -


Syntax

Classical MML as used in
BASIC BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...
is described here. "''MML Commands''" are supplied to the MUSIC statement. Notes are specified in a three-octave range. A song is a sequence of mono single tones. "+" (or in some old code, " ̄") indicates upper octave, "- " (or in some old code, "_") indicates the lower octave. The characters "CDEFGAB" correspond to a scale ("Doremi Faso Lassi"). A semitone is indicated by following the note with a '#' character. The note names are followed by a tone length, indicated by a number from 0–9. Similarly, R indicates a rest, and is also followed by a number from 0-9 indicating length. Sound length Internal value × TEMPO values.Tone length Demisemiquaver is 0 (SP-1002 Internal value is 1)- Whole note is 9 (SP-1002 Internal value is 32). Music played on Call to $0030 SP-1002 IOCS program routine./ Statements TEMPO n is 1–9, the slowest 1.TEMPO 4 is similar T=120.


Example

Below is the popular Japanese song "
tōryanse is the name of the traditional Japanese children's tune (warabe uta). It is a common choice for music played by traffic lights in Japan when it is safe to cross. Tōryanse can be heard in many forms of popular culture, such as at crosswalks in an ...
" written using MML in MZ-731 SHARP
S-BASIC S-BASIC (for Structured Basic) was a "structured" BASIC variant, distributed with Kaypro CP/M systems. It was made by Topaz Programming is distributed by Micro-Ap (San Ramon, CA). SBasic was compatible with the syntax of BASIC, a programming ...
1Z-007B (SP-5001 Upper compatible). Programmed and arranged by Licensed #AAAP(Including Creative Commons CC-BY-SA and Text of GNU Free Documentation License.). 10 TEMPO 4 20 A$="E5R1E3R0D3R0E3R0E1R0D1R0-G4R1" 30 B$="F3R0F1R0F1R0A3R0F1R0E1R0D1R0D1R0E5R0" 40 C$="C3R0C1R0C1R0E3R0C1R0-B1R0C1R0-B1R0-A1R0-A1-B5R0" 50 D$="E1R0E1R0E1R0E1R0E1R0E1R0D1R0E1R0E1R0E1R0D1R0-A1R0-A1R0B3R1" 60 E$="-A1R0-B1R0C1R0D1R0E1R0F1R0E1R0F3R1A3R1B1R0A1R0F3R0E3R0E1R0E4R0" 100 MUSIC A$+B$+B$ 110 MUSIC C$+C$+B$ 120 MUSIC C$+D$+E$


Modern MML

Modern MML originally appeared in
Microsoft BASIC Microsoft BASIC is the foundation software product of the Microsoft company and evolved into a line of BASIC interpreters and compiler(s) adapted for many different microcomputers. It first appeared in 1975 as Altair BASIC, which was the first ve ...
and was common in the early 1970s and 1980s on
8-bit In computer architecture, 8-bit Integer (computer science), integers or other Data (computing), data units are those that are 8 bits wide (1 octet (computing), octet). Also, 8-bit central processing unit (CPU) and arithmetic logic unit (ALU) arc ...
and
16-bit 16-bit microcomputers are microcomputers that use 16-bit microprocessors. A 16-bit register can store 216 different values. The range of integer values that can be stored in 16 bits depends on the integer representation used. With the two mos ...
era
Japan Japan ( ja, 日本, or , and formally , ''Nihonkoku'') is an island country in East Asia. It is situated in the northwest Pacific Ocean, and is bordered on the west by the Sea of Japan, while extending from the Sea of Okhotsk in the north ...
ese
personal computer A personal computer (PC) is a multi-purpose microcomputer whose size, capabilities, and price make it feasible for individual use. Personal computers are intended to be operated directly by an end user, rather than by a computer expert or tec ...
s. The
NEC PC-6001 The NEC PC-6000 series is a series of 8-bit home computers introduced in November 1981 by NEC Home Electronics. There are several models in this series, such as the PC-6001, the PC-6001 MK2 and the PC-6001 MK2 SR. There is also an American versio ...
included Microsoft BASIC and the Programmable Sound Generator in 1981. The MML was especially popular on
NEC is a Japanese multinational information technology and electronics corporation, headquartered in Minato, Tokyo. The company was known as the Nippon Electric Company, Limited, before rebranding in 1983 as NEC. It provides IT and network soluti ...
's personal computers, such as the
NEC PC-8801 The , commonly shortened to PC-88, are a brand of Zilog Z80-based 8-bit home computers released by Nippon Electric Company (NEC) in 1981 and primarily sold in Japan. The PC-8800 series sold extremely well and became one of the three major Japane ...
. With the 2001 release of the mck (Music Creation Kit) software for compiling MML to play music on the
Nintendo Entertainment System The Nintendo Entertainment System (NES) is an 8-bit third-generation home video game console produced by Nintendo. It was first released in Japan in 1983 as the commonly known as the The NES, a redesigned version, was released in America ...
, awareness and use of MML increased. MML is presently popular among
Japan Japan ( ja, 日本, or , and formally , ''Nihonkoku'') is an island country in East Asia. It is situated in the northwest Pacific Ocean, and is bordered on the west by the Sea of Japan, while extending from the Sea of Okhotsk in the north ...
ese electronic musicians and musicians who create
chiptune Chiptune, also known as chip music or 8-bit music, is a style of synthesized electronic music made using the programmable sound generator (PSG) sound chips or synthesizers in vintage arcade machines, computers and video game consoles. The t ...
s as a way to write music for the
Nintendo Entertainment System The Nintendo Entertainment System (NES) is an 8-bit third-generation home video game console produced by Nintendo. It was first released in Japan in 1983 as the commonly known as the The NES, a redesigned version, was released in America ...
.


Syntax

Modern MML originated as a sub-language of
BASIC BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...
, then generally included in
ROM Rom, or ROM may refer to: Biomechanics and medicine * Risk of mortality, a medical classification to estimate the likelihood of death for a patient * Rupture of membranes, a term used during pregnancy to describe a rupture of the amniotic sac * ...
on micro-computers. A PLAY statement uses an
argument An argument is a statement or group of statements called premises intended to determine the degree of truth or acceptability of another statement called conclusion. Arguments can be studied from three main perspectives: the logical, the dialectic ...
to define a string of tones that the sound-chip played. MML code has a simple text format whereby letters and numbers are used to describe the
musical note In music, a note is the representation of a musical sound. Notes can represent the Pitch (music), pitch and Duration (music), duration of a sound in musical notation. A note can also represent a pitch class. Notes are the building blocks of much ...
s to be played. In addition, various implementations of MML add system extensions allowing parameters of audio synthesis to be altered with specialized commands or to simplify the entry of common musical figures such as
arpeggio A broken chord is a chord broken into a sequence of notes. A broken chord may repeat some of the notes from the chord and span one or more octaves. An arpeggio () is a type of broken chord, in which the notes that compose a chord are played ...
s. Though many platforms feature custom extensions and
letter case Letter case is the distinction between the Letter (alphabet), letters that are in larger uppercase or capitals (or more formally ''majuscule'') and smaller lowercase (or more formally ''minuscule'') in the written representation of certain lang ...
requirements and other minor syntactical features vary slightly in some implementations, the fundamental syntax rules, commands and features that define MML and are present in whole or in part in all implementations are as follows: *cdefgab — The letters a to g correspond to the
musical pitch Pitch is a perceptual property of sounds that allows their ordering on a frequency-related scale, or more commonly, pitch is the quality that makes it possible to judge sounds as "higher" and "lower" in the sense associated with musical melodie ...
es and cause the corresponding
note Note, notes, or NOTE may refer to: Music and entertainment * Musical note, a pitched sound (or a symbol for a sound) in music * ''Notes'' (album), a 1987 album by Paul Bley and Paul Motian * ''Notes'', a common (yet unofficial) shortened version ...
to be played.
Sharp Sharp or SHARP may refer to: Acronyms * SHARP (helmet ratings) (Safety Helmet Assessment and Rating Programme), a British motorcycle helmet safety rating scheme * Self Help Addiction Recovery Program, a charitable organisation founded in 19 ...
notes are produced by appending a + or #, and
flat Flat or flats may refer to: Architecture * Flat (housing), an apartment in the United Kingdom, Ireland, Australia and other Commonwealth countries Arts and entertainment * Flat (music), a symbol () which denotes a lower pitch * Flat (soldier), ...
notes by appending a -. The length of a note is specified by appending a number representing its length as a fraction of a
whole note A whole note (American) or semibreve (British) in musical notation is a single note equivalent to or lasting as long as two half notes or four quarter notes. Description The whole note or semibreve has a note head in the shape of a hollow o ...
 — for example, c8 represents a C
eighth note 180px, Figure 1. An eighth note with stem extending up, an eighth note with stem extending down, and an eighth rest. 180px, Figure 2. Four eighth notes beamed together. An eighth note (American) or a quaver (British) is a musical note play ...
, and f+2 an F♯
half note ''Half Note'' is a live album by saxophonist Clifford Jordan which was recorded in 1974 and first released on the SteepleChase label in 1985.
. *p — A pause or rest. Sometimes also r, although the original IBM and Microsoft BASIC used p, as do all clones (e.g. the Linux and BSD speaker devices). The length of the rest is specified in the same manner as the length of a note — for example, r1 produces a
whole rest A rest is a musical notation sign that indicates the absence of a sound. Each rest symbol and name corresponds with a particular note value for length, indicating how long the silence should last. Description Rests are intervals of silence in ...
. *o — Followed by a number, o selects the
octave In music, an octave ( la, octavus: eighth) or perfect octave (sometimes called the diapason) is the interval between one musical pitch and another with double its frequency. The octave relationship is a natural phenomenon that has been refer ...
the instrument will play in. *>, < — Used to step up or down one
octave In music, an octave ( la, octavus: eighth) or perfect octave (sometimes called the diapason) is the interval between one musical pitch and another with double its frequency. The octave relationship is a natural phenomenon that has been refer ...
. *l — Followed by a number, specifies the default length used by notes or rests which do not explicitly define one. For example, l8 g a b g l16 g a b g produces a series of four
eighth note 180px, Figure 1. An eighth note with stem extending up, an eighth note with stem extending down, and an eighth rest. 180px, Figure 2. Four eighth notes beamed together. An eighth note (American) or a quaver (British) is a musical note play ...
s followed by a series of four
sixteenth note Figure 1. A 16th note with stem facing up, a 16th note with stem facing down, and a 16th rest. Figure 2. Four 16th notes beamed together. In music, a 1/16, sixteenth note (American) or semiquaver (British) is a note played for half the dura ...
s. *v — Followed by a number, sets the
volume Volume is a measure of occupied three-dimensional space. It is often quantified numerically using SI derived units (such as the cubic metre and litre) or by various imperial or US customary units (such as the gallon, quart, cubic inch). The de ...
of the instrument. The range of values allowed is dependent upon the specific sound hardware being used. Some implementations also allow an
ADSR envelope ADSR may refer to: * ADSR envelope (attack decay sustain release), a common type of music envelope * Accelerator-driven sub-critical reactor, a nuclear reactor using a particle accelerator to generate a fission reaction in a sub-critical assembly ...
to be applied to the amplitude of each note. *t — Followed by a number, sets the
tempo In musical terminology, tempo (Italian, 'time'; plural ''tempos'', or ''tempi'' from the Italian plural) is the speed or pace of a given piece. In classical music, tempo is typically indicated with an instruction at the start of a piece (often ...
in
beats per minute Beat, beats or beating may refer to: Common uses * Patrol, or beat, a group of personnel assigned to monitor a specific area ** Beat (police), the territory that a police officer patrols ** Gay beat, an area frequented by gay men * Battery ( ...
. On hardware with more than one sound channel, it is often possible to set each channel to a different tempo. In addition to these, most implementations add their own keywords and symbols for system-specific enhancements or extensions.


Example

Below is a Modern MML transcription of Dance of the Cuckoos (with white-space for clarity, though some MML interpreters will require this to be stripped before playing).
t104
l4
>
c16f16
a>c8c8c8c8c8c8c8c8


SMX

Standard Musical eXpression (SMX) is a variant of Modern MML provided by Microsoft in
QBASIC QBasic is an integrated development environment (IDE) and interpreter for a variety of dialects of BASIC which are based on QuickBASIC. Code entered into the IDE is compiled to an intermediate representation (IR), and this IR is immediately e ...
,
BASICA The IBM Personal Computer Basic, commonly shortened to IBM BASIC, is a programming language first released by IBM with the IBM Personal Computer, Model 5150 (IBM PC) in 1981. IBM released four different versions of the Microsoft BASIC interpre ...
, and
GW-BASIC GW-BASIC is a dialect of the BASIC programming language developed by Microsoft from IBM BASICA. Functionally identical to BASICA, its BASIC interpreter is a fully self-contained executable and does not need the Cassette BASIC ROM found in the or ...
's statement. The version used by GW-BASIC is part of the modern BSDs,
FreeBSD FreeBSD is a free and open-source Unix-like operating system descended from the Berkeley Software Distribution (BSD), which was based on Research Unix. The first version of FreeBSD was released in 1993. In 2005, FreeBSD was the most popular ...
,FreeBSD speaker(4) manual page
/ref>
NetBSD NetBSD is a free and open-source Unix operating system based on the Berkeley Software Distribution (BSD). It was the first open-source BSD descendant officially released after 386BSD was forked. It continues to be actively developed and is a ...
,
OpenBSD OpenBSD is a security-focused, free and open-source, Unix-like operating system based on the Berkeley Software Distribution (BSD). Theo de Raadt created OpenBSD in 1995 by forking NetBSD 1.0. According to the website, the OpenBSD project em ...
, and MirOS; see speaker(4) for the language.


Languages, platforms and software

*
Epic Games Epic Games, Inc. is an American video game and software developer and publisher based in Cary, North Carolina. The company was founded by Tim Sweeney as Potomac Computer Systems in 1991, originally located in his parents' house in Potomac, M ...
's ZZT and Super ZZT, as well as the
open-source Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use the source code, design documents, or content of the product. The open-source model is a decentralized sof ...
clone named MegaZeux, use a very compact variant of MML for the PLAY command, with only one channel for the
PC Speaker A PC speaker is a loudspeaker built into some IBM PC compatible computers. The first IBM Personal Computer, model 5150, employed a standard 2.25 inch magnetic driven (dynamic) speaker. More recent computers use a tiny moving-iron or pie ...
*
Microsoft Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washing ...
's
QBASIC QBasic is an integrated development environment (IDE) and interpreter for a variety of dialects of BASIC which are based on QuickBASIC. Code entered into the IDE is compiled to an intermediate representation (IR), and this IR is immediately e ...
,
BASICA The IBM Personal Computer Basic, commonly shortened to IBM BASIC, is a programming language first released by IBM with the IBM Personal Computer, Model 5150 (IBM PC) in 1981. IBM released four different versions of the Microsoft BASIC interpre ...
, and
GW-BASIC GW-BASIC is a dialect of the BASIC programming language developed by Microsoft from IBM BASICA. Functionally identical to BASICA, its BASIC interpreter is a fully self-contained executable and does not need the Cassette BASIC ROM found in the or ...
all feature a PLAY statement which takes a string argument in the SMX format. The name "Music Macro Language" may originate with GW-BASIC, which provided a facility "to play music by embedding a music macro language into the string data type." The SBasic compiler from the German magazine DOS Extra, produced by DMV Widuch, offers the same PLAY command, and a few-line BASIC programme could be compiled into a small (few KiB) tool to play any MML files (often called *.PLY) given on the command line. **
Eric S. Raymond Eric Steven Raymond (born December 4, 1957), often referred to as ESR, is an American software developer, open-source software advocate, and author of the 1997 essay and 1999 book ''The Cathedral and the Bazaar''. He wrote a guidebook for the ...
wrote a UNIX System V driver that offers /dev/speaker in a
GW-BASIC GW-BASIC is a dialect of the BASIC programming language developed by Microsoft from IBM BASICA. Functionally identical to BASICA, its BASIC interpreter is a fully self-contained executable and does not need the Cassette BASIC ROM found in the or ...
-compatible format. It was subsequently ported to
386BSD 386BSD (also known as "Jolix") is a discontinued Unix operating system based on the Berkeley Software Distribution (BSD). It was released in 1992 and ran on PC-compatible computer systems based on the 32-bit Intel 80386 microprocessor. 386BSD inn ...
and is present modern
BSD The Berkeley Software Distribution or Berkeley Standard Distribution (BSD) is a discontinued operating system based on Research Unix, developed and distributed by the Computer Systems Research Group (CSRG) at the University of California, Berk ...
operating systems.speaker(4) manual page
/ref> * The
NEC PC-8801 The , commonly shortened to PC-88, are a brand of Zilog Z80-based 8-bit home computers released by Nippon Electric Company (NEC) in 1981 and primarily sold in Japan. The PC-8800 series sold extremely well and became one of the three major Japane ...
's BASIC dialect, N88-BASIC, used MML in its PLAY statement, as did several other implementations of BASIC produced or sold by
NEC is a Japanese multinational information technology and electronics corporation, headquartered in Minato, Tokyo. The company was known as the Nippon Electric Company, Limited, before rebranding in 1983 as NEC. It provides IT and network soluti ...
. **
Chiptune Chiptune, also known as chip music or 8-bit music, is a style of synthesized electronic music made using the programmable sound generator (PSG) sound chips or synthesizers in vintage arcade machines, computers and video game consoles. The t ...
composer
Yuzo Koshiro is a Japanese composer and sound programmer. He is often regarded as one of the most influential innovators in chiptune and video game music, producing music in a number of genres including rock, jazz, symphonic, and various electronic genres ...
created a heavily modified version. According to Koshiro, it "was more a BASIC-style language at first, but I modified it to be something more like
Assembly Assembly may refer to: Organisations and meetings * Deliberative assembly, a gathering of members who use parliamentary procedure for making decisions * General assembly, an official meeting of the members of an organization or of their representa ...
. I called it ‘Music Love'. I used it for all the '' Bare Knuckle'' Games." Reprinted from * Various MML utilities were written for the
NEC PC-9801 The , commonly shortened to PC-98 or , is a lineup of Japanese 16-bit and 32-bit personal computers manufactured by NEC from 1982 to 2000. The platform established NEC's dominance in the Japanese personal computer market, and, by 1999, more th ...
family of computers, including PMD (Professional Music Driver) by game composer Masahiro Kajihara (most commonly known as KAJA), which was used by composer
Ryu Umemoto was a Japanese video game music composer, born in Yokohama, Kanagawa Prefecture. He is known for composing soundtracks to various visual novel and shoot 'em up video games since the 1990s, for several companies including FamilySoft, C's Ware, ...
for games like ''EVE Burst Error'' and ''Grounseed'', as well as by game developer
ZUN The ''zun'' or ''yi'', used until the Song dynasty#Northern Song, 960–1127, Northern Song (960–1126) is a type of Chinese ritual bronzes, Chinese ritual bronze or ceramic wine vessel with a round or square vase-like form, sometimes in t ...
for most of his first five ''
Touhou Project The , also known simply as , is a bullet hell shoot 'em up video game series created by one-man independent Japanese ''doujin'' soft developer Team Shanghai Alice. Since 1995, the team's member, Jun'ya "ZUN" Ōta, has independently developed ...
'' games. * The mck, pmck, and ppmck utilities for creating
Nintendo Entertainment System The Nintendo Entertainment System (NES) is an 8-bit third-generation home video game console produced by Nintendo. It was first released in Japan in 1983 as the commonly known as the The NES, a redesigned version, was released in America ...
music, and a number of other tools for creating music for other hardware, such as the Bandai WonderSwan, the
NEC PC Engine The TurboGrafx-16, known as the outside North America, is a home video game console designed by Hudson Soft and sold by NEC, NEC Home Electronics. It was the first console marketed in the fourth generation of video game consoles, fourth genera ...
, and the
Sega Mega Drive The Sega Genesis, known as the outside North America, is a 16-bit Fourth generation of video game consoles, fourth generation home video game console developed and sold by Sega. It was Sega's third console and the successor to the Master Syst ...
. * The xpmck utility for creating music for various systems, including the
Sega Master System The is an 8-bit third-generation home video game console manufactured by Sega. It was originally a remodeled export version of the Sega Mark III, the third iteration of the SG-1000 series of consoles, which was released in Japan in 1985 and ...
,
Sega Game Gear The is an 8-bit fourth generation handheld game console released by Sega on October 6, 1990, in Japan, in April 1991 throughout North America and Europe, and during 1992 in Australia. The Game Gear primarily competed with Nintendo's Game Boy, ...
,
Sega Mega Drive The Sega Genesis, known as the outside North America, is a 16-bit Fourth generation of video game consoles, fourth generation home video game console developed and sold by Sega. It was Sega's third console and the successor to the Master Syst ...
,
Nintendo is a Japanese Multinational corporation, multinational video game company headquartered in Kyoto, Japan. It develops video games and video game consoles. Nintendo was founded in 1889 as by craftsman Fusajiro Yamauchi and originally produce ...
Game Boy The is an 8-bit fourth generation handheld game console developed and manufactured by Nintendo. It was first released in Japan on April 21, 1989, in North America later the same year, and in Europe in late 1990. It was designed by the same ...
, and
Commodore 64 The Commodore 64, also known as the C64, is an 8-bit home computer introduced in January 1982 by Commodore International (first shown at the Consumer Electronics Show, January 7–10, 1982, in Las Vegas). It has been listed in the Guinness ...
. * Some
cellular phone A mobile phone, cellular phone, cell phone, cellphone, handphone, hand phone or pocket phone, sometimes shortened to simply mobile, cell, or just phone, is a portable telephone that can make and receive calls over a radio frequency link while ...
s utilize MML as a
ringtone A ringtone, ring tone or ring is the sound made by a telephone to indicate an incoming call. Originally referring to and made by the electromechanical striking of bells, the term now refers to any sound on any device alerting of a new incoming ...
format. The RTTTL ringtone language exhibits many of the characteristics of MML. * An
escape sequence In computer science, an escape sequence is a combination of characters that has a meaning other than the literal characters contained therein; it is marked by one or more preceding (and possibly terminating) characters. Examples * In C and man ...
was defined to allow terminal programs play music encoded in MML. Because of this music in MML is sometimes called ANSI Music. * On the MSX computer system, the built-in
MSX BASIC MSX BASIC is a dialect of the BASIC programming language. It is an extended version of Microsoft's MBASIC Version 4.5, adding support for graphic, music, and various peripherals attached to MSX microcomputers. Generally, MSX BASIC is designed to ...
also uses MML with PLAY-command. Comma separated strings represent separate voice channels. Music hardware expansions such as MSX-Music, MSX-Audio and MSX-MIDI expand PLAY-command so that also FM-chips and external MIDI devices can be controlled through MML. *Sharp Pocket computer music routine PLAYX
MyArchive
Nihongo -> :ja:ポケットコンピュータの製品一覧.
Macrotune
is a free MML editor available for Windows and OS X while also offering
Shared libraries In computer science, a library is a collection of non-volatile resources used by computer programs, often for software development. These may include configuration data, documentation, help data, message templates, pre-written code and su ...
for software/game developers.
FlopPI-Musicarchived old documentation page
uses an extended format with a file header with metadata (such as Author, Title, etc.), a newline, and then one line for each staff, supporting multiple instruments, with bar lines. It's designed to output to up to eight 3½″ floppy disc drives on Raspberry Pi GPIO ports. It also contains
standalone MML parser and MusicXML exporter
library and utility, tested with MuseScore, allowing easy debugging of especially mass-parallel MML files, score sheet printing (ideally after some minimal postprocessing, but the defaults are usually legible), etc. – Floppi-Music and MMLlib is Free Software written in pure Python. *
Petit Computer ''Petit Computer'' is a software development application for the Nintendo DSi and later systems, developed by SmileBoom in Sapporo, Japan. The application is built around a custom dialect of BASIC known as SmileBASIC (not to be confused with the 3 ...
and SmileBASIC both offer BGMPLAY functions, which can either take a preset MML track or one provided as a string. * An MMO called
Mabinogi The ''Mabinogion'' () are the earliest Welsh prose stories, and belong to the Matter of Britain. The stories were compiled in Middle Welsh in the 12th–13th centuries from earlier oral traditions. There are two main source manuscripts, create ...
allows players to type MML code onto in-game music score scrolls which can then be played for everyone nearby to hear using an equipped instrument. Due to that social aspect, users often made their own MML versions of popular songs and uploaded them to
fan sites A fansite, fan site, fan blog or fan page is a website created and maintained by a fan or devotee about a celebrity, thing, or particular cultural phenomenon. Fansites may offer specialized information on the subject (e.g., episode listings, bi ...
. The game also teaches users the
syntax In linguistics, syntax () is the study of how words and morphemes combine to form larger units such as phrases and sentences. Central concerns of syntax include word order, grammatical relations, hierarchical sentence structure ( constituency) ...
via skill books, which doubled as a way to unlock a higher size limit when writing the code. ArcheAge MMO provides the same features. * A
Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for serv ...
program calle
3MLE
was made by a Mabinogi user to assist in writing MML scrolls. The program functions similarly to an IDE, allowing the user to write, optimize, and test MML code for different instruments.


See also

*
Chiptune Chiptune, also known as chip music or 8-bit music, is a style of synthesized electronic music made using the programmable sound generator (PSG) sound chips or synthesizers in vintage arcade machines, computers and video game consoles. The t ...
*
Electronic music Electronic music is a genre of music that employs electronic musical instruments, digital instruments, or circuitry-based music technology in its creation. It includes both music made using electronic and electromechanical means ( electroac ...
*
HTML5 audio HTML5 Audio is a subject of the HTML5 specification, incorporating audio input, playback, and synthesis, as well as speech to text, in the browser. <audio> element The element represents a sound, or an audio stream. It is commonly used ...
*
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 re ...
*
Synthetic music mobile application format Synthetic-musicsmaf-yamaha.com spells it Synthetic music Mobile Application Format, with the word "music" not capitalized so it does not participate in the abbreviation SMAF. However one editor expressed concern that this odd capitalization patter ...


References

{{reflist Music notation file formats Video game music file formats Audio programming languages Free audio software Electronic music software Video game music technology