
The YM2612, a.k.a. OPN2, is a
sound chip
A sound chip is an integrated circuit (chip) designed to produce audio signals through digital, analog or mixed-mode electronics. Sound chips are typically fabricated on metal–oxide–semiconductor (MOS) mixed-signal chips that process a ...
developed by
Yamaha
Yamaha may refer to:
People
* Torakusu Yamaha, a Japanese businessman and founder of the Yamaha Corporation
Companies
* Yamaha Corporation, a Japanese musical instrument and audio equipment manufacturer
** Yamaha Music Foundation, an organi ...
. It is a member of Yamaha's OPN family of
FM synthesis
Frequency modulation synthesis (or FM synthesis) is a form of sound synthesis whereby the frequency of a waveform is changed by modulating its frequency with a modulator. The (instantaneous) frequency of an oscillator is altered in accordance wi ...
chips, and was developed as a stripped-down version of the
YM2608
The YM2608, a.k.a. OPNA, is a sound chip developed by Yamaha Corporation, Yamaha. It is a member of Yamaha's OPN family of frequency modulation synthesis, FM synthesis chips, and is the successor to the Yamaha YM2203, YM2203. It was notably used i ...
.
The YM2612 is a six-channel FM synthesizer used in several game and computer systems, most notably in
Sega
is a Japanese video game company and subsidiary of Sega Sammy Holdings headquartered in Tokyo. It produces several List of best-selling video game franchises, multi-million-selling game franchises for arcade game, arcades and video game cons ...
's
Mega Drive/Genesis
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 Sys ...
video game console as well as
Fujitsu's
FM Towns
The is a Japanese personal computer built by Fujitsu from 1989 to 1997. It started as a proprietary PC variant intended for multimedia applications and PC games, but later became more compatible with IBM PC compatibles. In 1993, the FM Towns ...
computer series. It was also available in
CMOS
Complementary metal–oxide–semiconductor (CMOS, pronounced "sea-moss
", , ) is a type of MOSFET, metal–oxide–semiconductor field-effect transistor (MOSFET) semiconductor device fabrication, fabrication process that uses complementary an ...
form as the YM3438, a.k.a. OPN2C.
As with the YM3438, it was used by Sega in various
arcade game
An arcade game or coin-op game is a coin-operated entertainment machine typically installed in public businesses such as restaurants, bars and amusement arcades. Most arcade games are presented as primarily game of skill, games of skill and in ...
systems, including the
Mega-Play,
Sega System C
Sega is a video game developer, publisher, and hardware development company headquartered in Tokyo, Japan, with multiple offices around the world. The company's involvement in the arcade game industry began as a Japan-based distributor of coin- ...
and
Sega System 32
Sega is a video game developer, publisher, and hardware development company headquartered in Tokyo, Japan, with multiple offices around the world. The company's involvement in the arcade game industry began as a Japan-based distributor of coin- ...
; the YM3438 core was also integrated into an
ASIC
An application-specific integrated circuit (ASIC ) is an integrated circuit (IC) chip customized for a particular use, rather than intended for general-purpose use, such as a chip designed to run in a digital voice recorder or a high-efficien ...
in later revisions of the Mega Drive/Genesis.
Features
The YM2612 has the following features:
*Six concurrent
FM synthesis
Frequency modulation synthesis (or FM synthesis) is a form of sound synthesis whereby the frequency of a waveform is changed by modulating its frequency with a modulator. The (instantaneous) frequency of an oscillator is altered in accordance wi ...
channels (voices)
*Four operators per channel
*Two
interval timers
*A sine-wave
low frequency oscillator
Low-frequency oscillation (LFO) is an electronic frequency that is usually below 20 Hz and creates a rhythmic pulse or sweep. This is used to modulate musical equipment such as synthesizers to create audio effects such as vibrato, tremolo ...
(LFO)
*Integrated stereo output
digital-to-analog converter
In electronics, a digital-to-analog converter (DAC, D/A, D2A, or D-to-A) is a system that converts a digital signal into an analog signal. An analog-to-digital converter (ADC) performs the reverse function.
DACs are commonly used in musi ...
(most other contemporary Yamaha FM chips require a separate external D/A converter chip)
*Per-channel programmable stereo sound (left, right, or both left and right resulting in centre)
*For channel three, operator frequencies can be set independently, making dissonant harmonics possible. (Normally, they would have a simple relation like e.g. 2× or 3× relative to a common base frequency) This feature is common to the OPN family of chips.
Technical details
The YM2612 is based on the FM block featured in the YM2608 (which itself was based on the
YM2203
The YM2203, a.k.a. OPN (FM Operator Type-N), is a six-channel (3 FM and 3 SSG) sound chip developed by Yamaha. It was the progenitor of Yamaha's OPN family of FM synthesis chips used in many video game and computer systems throughout the 1980s ...
), integrating a stereo output
DAC and
LFO, but removes the
SSG component (although the vestigial SSG envelope generator remains on the chip's core) and
GPIO
A general-purpose input/output (GPIO) is an uncommitted digital signal pin on an integrated circuit or electronic circuit (e.g. MCUs/ MPUs) board that can be used as an input or output, or both, and is controllable by software.
GPIOs have no p ...
ports found on all other OPN chips such as the YM2203 and YM2608 (which are elements of the YM2149F that is integrated in most OPN series chips) as well as the seven
ADPCM
Adaptive differential pulse-code modulation (ADPCM) is a variant of differential pulse-code modulation (DPCM) that varies the size of the quantization step, to allow further reduction of the required data bandwidth for a given signal-to-noise rati ...
channels (one ADPCM, six Rhythm) found on its larger sibling.
The YM2612 is also referred to as being based on the YM2203 according to official documentations.
While high-end chips in the OPN series have dedicated ADPCM channels for playing sampled audio (i.e. YM2608 and
YM2610
The YM2610, a.k.a. OPNB, is a sound chip developed by Yamaha. It is a member of Yamaha's OPN family of FM synthesis chips, and related to the YM2608.
The YM2610 was most notably used in SNK's Neo Geo arcade and home video game systems from 1990 a ...
), the YM2612 does not. However, its sixth channel can act as a basic PCM channel by means of the 'DAC Enable' register, disabling FM output for that channel but allowing it to play 8-bit
pulse-code modulation
Pulse-code modulation (PCM) is a method used to digitally represent analog signals. It is the standard form of digital audio in computers, compact discs, digital telephony and other digital audio applications. In a PCM stream, the amplitud ...
sound samples.
Unlike other OPN chips with ADPCM support, the YM2612 does not provide any timing or buffering of samples, so all frequency control and buffering must be done in software by the host processor.
Low volume distortion of the built-in DAC
Unlike most Yamaha FM chips which require an external floating-point DAC, the YM2612 features a built-in 9-bit DAC, which uses
time-division multiplexing to play one sample of each channel in sequence, similar to the
YM2413.
Due to an error with the amplitude voltage in the original chip design, a peculiar form of
crossover distortion
Crossover distortion is a type of distortion which is caused by switching between devices driving a load. It is most commonly seen in complementary, or "push-pull", class-B amplifier stages, although it is occasionally seen in other types of circ ...
known as ''low volume distortion'' (and historically given the terms "TDM distortion" and "ladder effect") is introduced in the output. In this case, any output that is sufficiently low in volume undergoes an exaggerated quantization, including any usage of
fades in video game music.
Some early games in the Mega Drive/Genesis' lifespan such as
After Burner II
is a rail shooter arcade video game developed and released by Sega in 1987. The player controls an American Grumman F-14 Tomcat, F-14 Tomcat fighter jet and must clear each of the game's eighteen unique stages by destroying incoming enemies. Th ...
had their music written around this distortion to generate unique timbres or effects. As a consequence, games that used this musical trick would sound too quiet on later Mega Drive/Genesis consoles using the integrated YM3438 core on the ASIC. Also, because of the reduced dynamic range of the built-in DAC, additional distortion may be generated when playing sounds with a very high volume.
Variants
Yamaha YM3438
The YM3438, a.k.a. OPN2C, is a modified
CMOS
Complementary metal–oxide–semiconductor (CMOS, pronounced "sea-moss
", , ) is a type of MOSFET, metal–oxide–semiconductor field-effect transistor (MOSFET) semiconductor device fabrication, fabrication process that uses complementary an ...
version of the YM2612, commonly used in Sega's
arcade system boards
An arcade video game is an arcade game that takes player input from its controls, processes it through electrical or computerized components, and displays output to an electronic monitor or similar display. All arcade video games are coin-oper ...
as well as being used in Fujitsu's
FM Towns Marty
The FM Towns Marty is a home video game console released in 1993 by Fujitsu, exclusively for the Japanese market. It uses the AMD 386SX, a CPU that is internally 32-bit but with a 16-bit data bus. The console comes with a built-in CD-ROM dri ...
. This version has an improved built-in DAC that significantly reduces the presence of crossover distortion from the original chip with a higher
signal-to-noise ratio
Signal-to-noise ratio (SNR or S/N) is a measure used in science and engineering that compares the level of a desired signal to the level of background noise. SNR is defined as the ratio of signal power to noise power, often expressed in deci ...
than the YM2612. It is not a direct, drop-in replacement for the YM2612 however, as the sound outputs have higher impedance.
Yamaha YMF276
The YMF276, a.k.a. OPN2L, is a low-powered version of the YM3438, used in later models of Fujitsu's FM Towns series (particularly the FM Towns II models). It came in a smaller 24-pin SOP package. Unlike the YM2612 and YM3438, the YMF276 requires an external DAC chip, similar to most other Yamaha FM chips. This is usually a YM3433B external DAC chip (as used in the FM Towns II models) or other equivalent DAC chips. As such, it does not produce significant low volume distortion as with the YM2612/YM3438 chips due to its usage of an external DAC chip.
Yamaha-created ASICs
The YM3438 core was also integrated in custom ASICs made by Yamaha for use with Sega's Mega Drive/Genesis, which were used in the final revision of the original model and most revisions of the revised models (FC1004, FF1004 and FJ3002) as well as the Genesis 3 released by Majesco (FJ3002 and FQ8007). The ASICs contained both the video and sound chips (and later the
main CPU and
sound CPU on the FJ3002 and FQ8007 ASICs) combined into one chip, which also includes the YM7101
VDP that houses the integrated
Texas Instruments SN76489
The Texas Instruments SN76489 is a programmable sound generator chip from the 1980s, used to create music and sound effects on computers and video game systems. Initially developed by Texas Instruments for its TI-99/4A home computer, it was late ...
PSG. The YM3438 core used in these revisions have been modified to further reduce the presence of the low volume distortion bug more so than with standalone YM3438 chips.
Emulation
With the advent of
emulation, the YM2612 and its variants have been faithfully replicated in software through years of
reverse engineering
Reverse engineering (also known as backwards engineering or back engineering) is a process or method through which one attempts to understand through deductive reasoning how a previously made device, process, system, or piece of software accompl ...
the chips, with various improvements being made to the emulation accuracy of the sound chips over time. Such changes included the implementation of the low volume distortion bug in the YM2612, as well as certain features such as the SSG envelope generator and undocumented registers. In recent years, cycle-accurate emulation of the YM2612 and its variants have also been done as well, using
die shot
A die shot or die photography is a photo or recording of the layout of an integrated circuit, showings its design with any packaging removed. A die shot can be compared with the cross-section of an (almost) two-dimensional computer chip, on whic ...
reverse engineering of the chips.
Many
video game console emulator
A video game console emulator is a type of emulator that allows a computing device to emulate a video game console's hardware and play its games on the emulating platform. More often than not, emulators carry additional features that surpass ...
s (especially those for the Mega Drive/Genesis) and even arcade game emulators such as
MAME
MAME (formerly an acronym of Multiple Arcade Machine Emulator) is a free and open-source emulator designed to emulate the hardware of arcade games, video game consoles, old computers and other systems in software on modern personal computers and ...
implemented various emulated versions of the YM2612, with most modern Mega Drive/Genesis emulators having the option to replicate the sound outputs of the original and revised models of the Mega Drive/Genesis using the emulated YM2612 or YM3438 cores (which can also be used in conjunction with a
low-pass filter
A low-pass filter is a filter that passes signals with a frequency lower than a selected cutoff frequency and attenuates signals with frequencies higher than the cutoff frequency. The exact frequency response of the filter depends on the filt ...
to further simulate an original model Mega Drive/Genesis) or by implementing a function in the emulated chip to apply a low volume distortion effect to simulate a discrete YM2612.
Game audio
Used in conjunction with the Texas Instruments SN76489 PSG as the main sound generators of the Sega Mega Drive/Genesis console, the YM2612 was prominently utilized by numerous prolific
video game music composers, most notably
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 s ...
.
See also
*
VGM – an audio file format for multiple video game platforms, including the Sega Mega Drive/Genesis
*
Yamaha YM2203
The YM2203, a.k.a. OPN (FM Operator Type-N), is a six-channel (3 FM and 3 SSG) sound chip developed by Yamaha. It was the progenitor of Yamaha's OPN family of FM synthesis chips used in many video game and computer systems throughout the 1980s ...
*
Yamaha YM2608
The YM2608, a.k.a. OPNA, is a sound chip developed by Yamaha Corporation, Yamaha. It is a member of Yamaha's OPN family of frequency modulation synthesis, FM synthesis chips, and is the successor to the Yamaha YM2203, YM2203. It was notably used i ...
*
Yamaha YM2610
The YM2610, a.k.a. OPNB, is a sound chip developed by Yamaha. It is a member of Yamaha's OPN family of FM synthesis chips, and related to the YM2608.
The YM2610 was most notably used in SNK's Neo Geo arcade and home video game systems from 1990 a ...
References
External links
Nuked-OPN2 YM3438/YM2612 emulator
{{Yamaha soundchips
YM2612
Video game music technology