Ym2413+instrumentsbin May 2026

The YM2413 is a cost-reduced FM synthesis chip by Yamaha. Unlike fully programmable FM chips (e.g., YM2612), the YM2413 operates in two modes: Melody mode (9 channels) and Percussion mode (6 channels + 5 percussion). It contains a fixed set of 15 predefined instrument presets, plus one user-programmable slot. The instruments.bin file, commonly found in emulators and tools like OPL3 Bank Editor or VGM Music Maker, stores custom patch parameters for that user slot. This paper examines the chip’s architecture, the binary structure of instrument patches, and the role of instruments.bin in retro game music.

Why can't you just rename a .wav file to .bin? Because the YM2413 speaks a very strict hardware language.

A standard YM2413 instrument binary (for the user slot) is exactly 8 bytes. Each byte configures a specific FM parameter:

If a single bit is off in your instruments.bin, your "Trumpet" will sound like a clicking modem.

If you are looking for the actual data to put into your instruments.bin:

Use VGMPlay (by Valley Bell) with the command line: vgmplay -opll_custom ym2413_instruments.bin my_tune.vgm

If your instrument sounds like a duck being stepped on, adjust the "Feedback" and "EG" (Envelope Generator) values. The most common mistake is setting the "Total Level" to 0, which produces maximum volume but clips horribly.


If you meant something else by "ym2413+instrumentsbin" (e.g., a specific file from a game or emulator), please provide more context (e.g., filename, platform, tool) so I can refine the paper.

Understanding the YM2413 and "instruments.bin" , also known as the

(FM Operator Type-LL), is a classic FM synthesis sound chip produced by Yamaha in the mid-1980s . It was famously used in the standard, the Japanese Sega Master System

, and various arcade machines to provide rich, multi-channel sound. In the context of modern emulation and software, instruments.bin ym2413_instruments.bin ) is a critical ROM file required by emulators like to accurately replicate the chip's unique sound. The Role of "instruments.bin"

Unlike more powerful FM chips, the YM2413 was designed as a cost-reduced version of the YM3812 (OPL2). To save on manufacturing costs, Yamaha hard-coded 15 specific instrument profiles directly into the chip's internal ROM. instruments.bin

file is a digital dump of this internal ROM. It contains the preset data for the 15 "hard-wired" instruments that game developers and musicians used for decades. Without this file, an emulator may be unable to produce any sound for games or applications that rely on these built-in presets. The YM2413 Instrument List The chip supports 16 instrument slots in total. is the only user-programmable slot, while slots 1 through 15 are the fixed presets found in the instruments.bin Acoustic Guitar Synthesizer Harpsichord Vibraphone Synth Bass Acoustic Bass Electric Guitar Additionally, the chip features a Rhythm Mode

that provides five fixed percussion sounds: Bass Drum, Snare Drum, Tom-tom, Top Cymbal, and Hi-hat. Technical Context in Emulation ym2413_instruments.bin (ym2413) - Not Found - Noobs

ym2413_instruments.bin file is a crucial device ROM used primarily by the MAME emulator

(starting from version 0.231) to accurately replicate the internal instrument data of the Yamaha YM2413 (OPLL) FM sound chip. This chip, famous for powering the Sega Master System Konami VRC7

, contains 15 hard-coded melody presets and 5 percussion sounds. Modern emulators and software synthesizers like vst2413 on GitHub

use these binary files to ensure the sound matches the original 80s hardware. Quick Post Summary YM2413 (OPLL)

is a cost-reduced FM synth chip used in early arcade boards, game consoles, and Yamaha Portasound keyboards. ym2413_instruments.bin

contains the lookup tables for the 15 built-in instruments (like Violin, Flute, and Synth Bass) that are otherwise uneditable in the original hardware. Where to find it: It is typically bundled in the ym2413.zip device file within MAME fullsets Creative Use: Musicians use these files in trackers like 0CC-LLTracker or through Arduino libraries

to build DIY synthesizers that recreate authentic chiptune textures. LaunchBox Community Forums Key Instruments Included ym2413+instrumentsbin

The ROM data defines the parameters (multipliers, envelopes, and modulation) for:

Violin, Guitar, Piano, Flute, Clarinet, Oboe, Trumpet, Organ, Horn, Synthesizer, Harpsichord, Vibraphone, Synth Bass, Acoustic Bass, and Electric Guitar. Percussion: Bass Drum, Snare, Tom-tom, Top Cymbal, and Hi-hat. SMS Power! Are you planning to use this file for (like MAME/MSX) or for a hardware project with a real YM2413 chip? AI responses may include mistakes. Learn more 0CC-LLTracker - an YM2413 tracker - Patreon

This article provides a comprehensive overview of the YM2413 sound chip, specifically focusing on the instruments.bin file format used to define its FM instrument sounds.

Understanding YM2413 instruments.bin: Unlocking OPLL Sound Synthesis

The Yamaha YM2413, often referred to as the OPLL (FM Operator Type-LL), is a legendary sound chip that defined the audio landscape of 8-bit and early 16-bit computing, most notably in the Sega Master System, MSX computers, and various arcade machines.

While the chip provides 9 channels of FM synthesis or 6 FM channels plus 5 percussion instruments, its true power lies in its capability for instrument customization. The data defining these sounds—patches, operator settings, and envelope behaviors—is often stored in a binary format known as instruments.bin.

This article explores what instruments.bin is, its structure, and how it is used to customize the sound of the YM2413. What is the YM2413 (OPLL)?

Before diving into the data structure, it is essential to understand what the chip does. The YM2413 is a 2-operator FM synthesis chip. Unlike later, more complex chips (like the YM2612), the YM2413 is designed to be inexpensive and easy to implement.

9 channels: Can be used as 9 melodic channels or 6 melodic + 5 rhythm. 2 Operators per channel: One carrier and one modulator.

Internal ROM/RAM: It has 15 pre-set instrument sounds in its ROM, but it allows for one user-defined instrument (user patch) to be loaded into RAM to replace one of the fixed sounds [1]. The instruments.bin Format

The instruments.bin file is a direct, byte-for-byte representation of the registry data required to program the YM2413's user instrument slot. Typically, this file is small, representing 8 bytes of data per patch, as defined by the OPLL's internal registers (often addresses Structure of a YM2413 Instrument

An instrument on the YM2413 is defined by 8 bytes, which control the two operators: Operator 1 (Modulator): Controls character/timber. Operator 2 (Carrier): Controls volume and envelope. The 8 bytes define:

Amplitude Modulation (AM) / Vibrato (VIB) / Sustaining (SUS) / Key Scaling (KSR) / Frequency Multiplier (MULT): These set the basic envelope behavior and harmonics.

Key Scale Level (KSL) / Total Level (TL): Controls volume and how it changes across the keyboard.

Attack Rate (AR) / Decay Rate (DR): Sets how quickly the sound starts and fades.

Sustain Level (SL) / Release Rate (RR): Sets how long the sound lingers.

Feedback (FB) / Algorithm: Determines how the modulator affects the carrier. Anatomy of instruments.bin

When dealing with a instruments.bin file, it usually contains a specific number of patches arranged sequentially. A single instrument entry might look like this in raw hex: 00 00 00 00 00 00 00 00 (A default, silent patch)

A user-defined brass sound might look like:41 61 74 18 83 82 51 01

Bytes 0-1: Frequency Multiplier and Envelope settings for Operator 1. The YM2413 is a cost-reduced FM synthesis chip by Yamaha

Bytes 2-3: Key Scale Level and Total Level (Volume) for Operator 1. Bytes 4-5: Attack/Decay Rate for Operator 1/2. Bytes 6-7: Sustain/Release Rate for Operator 1/2. Working with instruments.bin

Several tools exist to create or edit instruments.bin files, allowing developers and musicians to create custom sounds for game development or emulation.

OPLLEdit: Often used in emulator development to modify the instruments.bin file [1].

VGM Tools: Files can be embedded into VGM (Video Game Music) logs for playback on original hardware. Loading and Emulation

When running in an emulator (like MESS or Fusion), the emulator looks for a file named ym2413.bin or instruments.bin to initialize the user patch slot, replacing the default instrument ( ) with the custom sound defined in the file. Why Customize instruments.bin?

Sound Variety: The built-in 15 sounds are iconic but limited. Custom instruments can create complex pads, percussive sounds, or sharper basslines.

Music Composition: Using tracker software, composers can create unique soundbanks to make their music stand out from standard YM2413 compositions. Conclusion

The instruments.bin file is the gateway to unlocking custom audio on the Yamaha YM2413. By understanding how the 8 bytes of register data control the 2-operator FM synthesis, users can significantly expand the sonic capabilities of the OPLL, pushing the boundaries of 8-bit sound design. To better assist you, are you:

Developing for an emulator and need help locating where to place the file?

Creating music for a tracker (like DefleMask) and looking for pre-made patch sets? Trying to write software to generate this binary data?

(starting with version 0.231) to accurately simulate the internal Instruments ROM of the Yamaha YM2413 (OPLL) sound chip. Key Functions of the YM2413 Instruments File

The ym2413_instruments.bin file contains the hard-coded register data for the chip's built-in sound presets. Its primary features include:

Preset Storage: It holds the parameters for the 15 built-in melody tones (such as piano, violin, and guitar) and 5 percussion sounds (bass drum, snare, tom-tom, top cymbal, and hi-hat).

Simplified Sound Generation: By having these tones pre-defined in a ROM (replicated by the .bin file in emulators), the processor only needs to send a single instrument selection command instead of complex register settings for every sound change.

Emulation Accuracy: Modern emulators use this file to ensure that "into the screen" games like Super Pang or titles for the Sega Master System and MSX2 sound exactly as they did on original hardware. Technical Specifications ym2413_instruments.bin (ym2413) - Not Found - Noobs

The YM2413, also known as the OPLL (Operator Type-L), represents a fascinating chapter in the evolution of digital audio. Originally developed by Yamaha in the late 1980s as a cost-effective alternative to more advanced FM synthesis chips like the OPL2, it became a cornerstone of retro gaming and home computing audio.

Its unique character and limitations have recently gained renewed interest through projects like YM2413-MDB, a comprehensive dataset of 80s video game music designed for research into emotion-conditioned music generation. Technical Architecture and Limitations

The YM2413’s design was driven by the need for affordability. To reduce manufacturing costs, Yamaha implemented several key constraints:

Fixed Instruments: Unlike more expensive chips that allowed full customization of every channel, the YM2413 features 15 hard-coded instrument presets stored in an internal ROM. These include recognizable sounds such as violin, piano, and synthesizer bass.

User-Defined Patch: Users are restricted to only one custom instrument at any given time. This single custom voice must be shared if multiple channels require a non-preset sound. Channel Configuration: The chip can operate in two modes: If a single bit is off in your instruments

9 Melodic Channels: Allowing for complex polyphonic arrangements.

6 Melodic + 5 Percussion Channels: Where the last three melodic channels are sacrificed to provide rhythm sounds like bass drum, snare, and tom-tom.

Synthesis Engine: It uses 2-operator FM synthesis with only two available waveforms: sine and half-sine. This creates a distinctively "thin" or "brittle" sound that has become synonymous with the era's aesthetic. Historical Context and Usage

The chip’s affordability made it the perfect choice for consumer electronics where high-fidelity audio was not the primary focus but a necessary feature:

The file ym2413_instruments.bin is a essential ROM/device file used by emulators like MAME to accurately simulate the Yamaha YM2413 (OPLL) FM sound chip. This chip was famous for its 15 built-in instrument presets and was widely used in hardware like the Sega Master System (Japanese version), MSX-Music, and various arcade boards. Why You Need This File

In recent years, emulation projects like MAME updated their Yamaha FM synthesis cores for better accuracy. As a result, the internal ROM data that defines the YM2413's instrument timbres was moved into its own separate device file. Without this file, games using the YM2413 chip may have missing or incorrect sound. How to Fix "File Not Found" Errors

If you are seeing errors that ym2413_instruments.bin is missing, you typically need to acquire the ym2413.zip device ROM.

MAME Users: Place the ym2413.zip file (containing the bin) into your main roms directory. Note that this file became a requirement starting around MAME version 0.231.

Core-Specific Needs: Some hardware-level tools, such as the Everdrive N8, allow switching between different instrument ROMs (like VRC7 vs. YM2413) to change the sound profile of the FM output.

Finding the File: Since it is a copyrighted ROM, it is often found on ROM archive sites like Arcade Italia or within specialized "BIOS" or "Device" sets. Technical Context

Instruments: The YM2413 is a cost-reduced "Operator Type-L" (OPLL) chip that relies on 15 hard-coded instruments (like Violin, Flute, and Piano) plus one user-definable slot. The .bin file contains the digital data for these preset waveforms.

Modern Use: It is also used in modern music datasets like YM2413-MDB for research in AI-generated retro music.

Are you setting this up for a specific emulator like RetroArch, or are you trying to use it with a MIDI sequencer? ym2413_instruments.bin (ym2413) - Not Found - Noobs

It sounds like you're asking for an analysis or a technical paper on the YM2413 (an FM synthesis chip) and its associated instruments binary file (often named instruments.bin or similar). The YM2413 is also known as the OPLL (FM Operator Type-L), used in MSX computers, Sega Master System add-ons, and some arcade boards.

Below is a structured mini-paper or technical report you can use as a draft or reference. If you need a downloadable file, you can copy this text into a .docx or .pdf.


If you have ever downloaded an MSX music player, a VGM (Video Game Music) pack, or a tracker like Arkos Tracker for OPLL use, you have likely encountered a file named instruments.bin.

Even with the correct ym2413+instruments.bin, you might hit walls.

Issue 1: "The emulator says 'Instrument ROM mismatch.'"

Issue 2: The User channel is silent.

Issue 3: Rhythm mode sounds wrong.