Applying Data Science to Sega Genesis/Mega Drive Music Presets. Part 1: Discovery

The 80s and 90s were decades of innovation in the worlds of electronic music and video gaming, largely thanks to the iconic YM2612 chip from Yamaha, the sonic heart of the Sega Genesis/Mega Drive. Over the years, the number of VGM files on platforms like Project2612 or vgmrips has grown exponentially, capturing the sonic spirit of this gaming era.

VGM (Video Game Music) files are a digital music file format designed to store and playback video game music, specifically from gaming consoles and arcade systems. These files capture the precise sequence of data sent to sound chips, such as Yamaha’s YM2612, allowing the music from classic video games to be played back with high fidelity outside of the original hardware.

But why are they important? The significance of VGM files in relation to extracting presets lies in their structure. Since VGMs record the exact instructions sent to sound chips, they encompass details about how these chips were configured and manipulated to produce specific sounds. This means that, with the right software, it is possible to extract and isolate these configurations, or «presets», from the data stream within the VGM file. These presets are essentially the «recipes» of the original sounds, detailing how the sound chip parameters should be adjusted to recreate a particular sound.

This is exactly what DrWashington did. Extracting presets not from just a single VGM file, but from the entire collection on Project2612 up to 2010. His effort provided a vast repository of classic sounds from the video game music era. It was during a fortuitous online exploration that we stumbled upon a pack shared by this user forum on KVRist. This pack brought to the fore not just the sounds but a treasure trove of the times.

Screenshot of a 2010 KVR Audio forum post by DrWashington titled “For all you FM lovers out there…”, sharing Sega Genesis game music converted to OPM files for the VOPM synth

However, as we delved deeper into this vast sonic library, a thought struck us: the sheer amount of latent information in these files is staggering! Not just about the sounds themselves, but about the composers, the tools they used, and the composition techniques of the time.

But how to extract and understand all this rich information? Enter data science.

Imagine breaking down this extensive collection of presets alongside public databases about composers and video games for the Sega Genesis/Mega Drive. We could unveil relationships between games, observe regional differences in music, and understand the favored techniques and tools of renowned composers. We might even pinpoint the most popular presets and explore their unique configurations.

Employing modern data analysis techniques, we could answer intriguing questions like:

  • Are there specific patterns or signatures in the music from certain composers?
  • Were there sound differences in games released across different regions?
  • Which presets were most popular, and how were they featured across different titles?

🎛️ Hear these “recipes” on the real chip. Every preset hidden in those VGM files was written for the Yamaha YM2612. The DAFM synth GENESIS is built around that same chip (or its cleaner sibling, the YM3438), handmade in Santander, Spain, and it loads presets from an SD card as DMP files. Prefer to build it yourself? Grab the DIY kit. Also available at Perfect Circuit.

Such analysis would allow us not just to understand the sound of a generation but also to appreciate the craftsmanship and creativity of the composers from that era. It’s an exciting journey we’re embarking on, and we look forward to uncovering and sharing with you the sonic secrets of the Sega Genesis/Mega Drive.

Become a part of this adventure. Dive into the legacy with us! 🎵🎮

Update: Where This Journey Led — DAFMExplorer

This post was the first step. The full result is DAFMExplorer, our open-source project that turns 93,000+ Sega Genesis presets, each with 58 parameters, into an interactive map of sounds. We enriched the dataset with metadata from Sega Retro, VGMrips and Wikipedia (composers, nationalities, games that used the GEMS sound driver), and clustering revealed seven “sonic realms”, from Raw Signals to Experimental Playgrounds. The notebooks, the web app and the dataset are all on GitHub.

Quick FAQ

What is a VGM file?
A VGM (Video Game Music) file is a log of every command a game sent to its sound chip. Because it stores the instructions rather than the audio, a VGM player can reproduce the original music with high fidelity, and the chip settings behind each sound can be extracted from it. Archives like vgmrips and Project2612 collect thousands of them.

What is an OPM file?
OPM is a preset format that stores FM instrument settings. The pack shared by DrWashington converted Genesis game music into .opm files that can be loaded into the free VOPM FM synth plugin, and DAFMExplorer also extracts OPM presets from VGM files.

Can I play these presets on real hardware?
Yes. DAFMExplorer lets you collect presets in six memory slots and download them as a DMP file, the preset format used by the DefleMask tracker. You can load that file on a DAFM synth GENESIS from its SD card.

Will the presets sound the same on a YM2612 and a YM3438?
The two chips share the same FM engine, so a preset plays on both. The difference is in the output: the original YM2612 has the gritty “ladder effect”, while the YM3438 sounds cleaner and louder. We explain it in YM2612 vs YM3438: The Ladder Effect Explained.

Play the sounds of the Sega Genesis on the real YM2612!

Prefer to solder it yourself? Get the DAFM synth GENESIS DIY kit on Tindie. Also at Perfect Circuit.