PDA

View Full Version : Audio Library for SN76489 Sound Generator



db-electronics
02-16-2016, 08:38 PM
Hi all,

First time poster here, I've been working on a SN76489 (http://console5.com/techwiki/images/b/b0/SN76489.pdf) (sound chip in Sega Master System, Colecovision, etc...) implementation for Teensy these last few days. I was inspired to do this when I saw the SID implementation library on this forum. I figured why not make a library for my favourite system!

I've got the code working with playback of a VGM (http://www.smspower.org/Music/VGMFileFormat?from=Development.VGMFormat) file (intro music to the Sonic The Hedgehog game on Master System). VGM is a 44100Hz sample-accurate logging format which logs the data written to the sound chips by various game consoles. You can preview this by loading the PlayVGMFromMemory example sketch provided with the library - the VGM file is provided as a header file included in the example sketch.

Currently the VGM playback is from Teensy ROM but it will be trivial to add playback of *whichever* file from an SD card.

Github:
https://github.com/db-electronics/TDSN76489

Next I want to port code for the Yamaha YM2413 to Teensy, this FM synthesizer IC was used in the Japanese version of the Sega Master System.

Frank B
02-16-2016, 09:35 PM
thats amazing !