YM3812
Yamaha YM3812 (OPL2)
Overview
The Yamaha YM3812, universally known as OPL2, is an FM synthesis sound chip released by Yamaha in 1985 as the second member of the OPL family, following directly on from the original YM3526 (OPL). The YM3812 would go on to become one of the most historically significant sound chips ever produced, thanks to its central role in defining the sound of early PC gaming through its widespread adoption in sound cards such as the AdLib and the original Sound Blaster.
The YM3812 is fully backward compatible with its predecessor, and in fact the two chips are nearly identical in architecture. Both provide up to nine channels of two-operator FM synthesis in melodic mode, or a reduced six melodic channels alongside five dedicated percussion voices in rhythm mode. Where the OPL2 distinguishes itself is through a single, carefully chosen enhancement: the addition of three new waveform options per operator, expanding the chip's tonal palette considerably despite the otherwise unchanged core design.
On the original YM3526, every FM operator could only produce a pure sine wave. The YM3812 keeps this original sine wave option but adds three additional shapes: a half-sine wave, where the negative portion of the waveform is simply muted to silence; an absolute-sine wave, where the negative portion is inverted rather than muted, doubling the wave's effective frequency content; and a pseudo-sawtooth wave, built from a quarter of the sine cycle followed by a silent gap. This distinctive, somewhat unconventional method of building extra waveforms directly out of a manipulated sine wave, rather than through more standard sawtooth or square-wave generators, gives the YM3812 its own particular tonal character, one still recognisable to chiptune and retro PC audio enthusiasts today.
Technical characteristics
- Manufacturer: Yamaha
- Model: YM3812 (OPL2)
- Channels: Up to 9 melodic voices, or 6 melody + 5 percussion voices in rhythm mode
- Operators per channel: 2
- Waveforms: 4 selectable per operator — sine, half-sine, absolute-sine, pseudo-sawtooth
- Registers: 244 write-only registers
- Output: Monaural (some sound cards, like the Sound Blaster Pro, paired two chips for stereo)
- Sample playback: Capable of basic unsigned 6-bit PCM sample playback through one channel's output level register
- DAC: External YM3014B monophonic DAC, shared with the YM3526
- Predecessor: YM3526 (OPL), fully backward compatible
- Successor: YMF262 (OPL3), with 4-operator synthesis and double the channels/waveforms
- Notable systems: AdLib Music Synthesizer Card, Sound Blaster, Sound Blaster Pro, numerous arcade boards
Sound design on the OPL2
Because the YM3812 remains limited to two-operator FM synthesis, in contrast to the four-operator designs found in chips like the YM2203 or YM2151, it is generally considered less capable of convincingly reproducing the timbres of real instruments or nuanced percussive sounds. Even so, composers and sound programmers found the chip's expanded waveform set gave it noticeably more tonal variety and "spaciousness" compared to the plain sine-only YM3526, making it sound considerably richer despite sharing almost the same underlying architecture.
In arcade hardware, the YM3812 was very frequently paired with a Yamaha OPN-family chip such as the YM2203, an approach that combined the OPL2's wide channel count and varied waveforms with the OPN chip's deeper four-operator FM channels, letting composers use the OPN chip for more complex leads or basslines while relying on the OPL2 to fill out the wider arrangement. This complementary pairing became a recognisable and well-regarded setup across numerous arcade titles of the mid-to-late 1980s.
On the PC side, the chip's legacy is inseparable from the AdLib and Sound Blaster cards that carried it into millions of households, where a huge body of game music and the once-ubiquitous "AdLib sound" of early PC gaming was built directly around the YM3812's specific combination of two-operator FM and its four Yamaha-style waveforms.
Legacy and importance
The YM3812 stands as one of the most consequential sound chips in PC history, largely because of the sheer scale of software written specifically for it during the AdLib and early Sound Blaster era. Its successor, the YMF262 (OPL3), expanded on this foundation substantially, adding four-operator synthesis capability, doubling the available channels and waveforms, and introducing proper four-channel stereo output, while still maintaining backward compatibility with software written for the OPL2.
Because of this direct lineage and the enormous amount of PC game music composed specifically around its capabilities, the YM3812 remains one of the most emulated and studied FM synthesis chips among retrocomputing and chiptune communities, and its distinctive "AdLib sound" continues to be recreated deliberately by musicians seeking that specific late-1980s/early-1990s PC gaming character.
YM3812 (OPL2) vs YM3526 (OPL): side-by-side comparison
| Feature | YM3812 (OPL2) | YM3526 (OPL) |
|---|---|---|
| Release year | 1985 | ~1985 (earlier) |
| Channels (melodic mode) | 9 | 9 |
| Channels (rhythm mode) | 6 melody + 5 percussion | 6 melody + 5 percussion |
| Operators per channel | 2 | 2 |
| Waveforms per operator | 4 (sine, half-sine, absolute-sine, pseudo-sawtooth) | 1 (sine only) |
| Backward compatibility | Fully compatible with YM3526 software | N/A (original chip) |
| PCM sample playback | Basic unsigned 6-bit PCM via output level register | Not documented as a standard feature |
| DAC used | YM3014B (external) | YM3014B (external) |
| Notable use | AdLib, Sound Blaster, Sound Blaster Pro, arcade boards | Commodore 64 Sound Expander, arcade games (Terra Cresta, Bubble Bobble) |
| Perceived sound | More varied, "spacious" due to extra waveforms | Plainer, more uniformly sine-based tone |
Further reading
In a nutshell
- Name: YM3812
- Manufacturer: Yamaha
- Family: OPL2
- Type: FM
- Year: 1985
- Channels: 9
- Synthesis: FM synthesis
- Sample support: 0
- Description: Nine-channel two-operator FM synthesizer best known for its use in AdLib sound cards.
- Aliases: OPL2
- Computer: IBM PC compatible
- Console:
- Arcade: Arcade systems
- Official Name: YM3812 OPL2