3 ms·
A bit disappointed to see this repo doesn't contain the source code for the sound effects. Defender's sound effects kicked ass and were a big part of what made
by msarnoff 5y ago
A bit disappointed to see this repo doesn't contain the source code for the sound effects. Defender's sound effects kicked ass and were a big part of what made the game experience so intense. Instantly memorable, quintessential sounds of the arcade era.
Williams used the same sound hardware (and many of the same sound effects as well) on all their arcade and pinball games from the late 1970s through the mid 1980s. And unlike other machines that used dedicated sound-generating chips like the AY-3-8910, the Williams sound board was just a 6800 CPU hooked up to an 8-bit DAC. It did everything in software. No square wave generators or hardware timers. The pitch of the sound was controlled by variable-length delay loops!
I spent a bit of time reverse-engineering the sound ROMs a while ago. From what I recall, there were a few different sound-generation algorithms. Some of them generated simple pulse waves or noise. Another was wavetable-based; it used samples in ROM and manipulated them in various clever ways. Another one, which was responsible for their coolest sounds, used a bonkers system of multiple nested loops generating variable-width pulse waves... I was never able to fully understand it...
- joezydeco 5y agoPssst. https://github.com/historicalsource/williams-soundroms https://github.com/historicalsource/williams-soundroms (Were you the one that ported the code to C# and generated new WAV files from the original algorithms? That was kick ass)
- msarnoff 5y agoThank you, that's awesome! I never published my reverse engineering work, but I think you're referring to http://lomont.org/software/misc/robotron/ http://lomont.org/software/misc/robotron/
- joezydeco 5y agoYes! That's the one. I've had it on my list to write a WASM port of this someday. Someday....
- CmdrKrool 5y agoHave a look here too :) http://www.dl.unospace.net/defender_sound/ http://www.dl.unospace.net/defender_sound/
- koz1000 5y agoWOW! That's incredible. This was exactly what I wanted to write someday. It definitely brings up a lot of memories if you played a lot of Williams' pinball machines as well. The sound ROM in Defender evolved from the pinball sound board, and some of the sounds marked as (?) came from all the games before Defender.
- ddingus 5y agoI spent a fair amount of time with this yesterday! WOW