How Early Games made their Sounds and Music

Hello, this is David from The 8-Bit Guy. Today, I’ve got a special guest star with me, Rob from The Obsolete Geek. Today we’re going to talk about how old school music works.

David: In the early days of home computers, most of them just had a simple beeper speaker. Examples would be the IBM PC and the Apple II. The speakers were controlled directly by the computer CPU. The speaker could make clicking noises and the CPU would have to time the clicking noises exactly right in order to produce certain tones. If a programmer wanted to spend the time, some very advance sound of music could be produced this way but the trouble was it would require all of the CPU’s run time to accomplish that leaving nothing left over for the computer to do anything else.

By the early 1980’s most computers and game consoles had dedicated sound chips to take this load away from the CPU. Each system in that time had a very characteristic sound along with its unique style and graphics which helped to get each system its own personality. Okay, the first thing you need to understand is that different systems had different numbers of voices or channels. To better explain how that works, let me show you this old musical keyboard. It only has a single voice. As you can see it cannot play more than one note at a time. In order to do that you would need to have at least two voices.

Now, this keyboard here is considerably more advance than the other one. It has a total of 4 voices. That means you could play up to four notes at the same time. Having multiple voices is great but those voices also need to be flexible as in able to create different types of wave forms. For example, this keyboard can change the wave form of its voice to produce different types of sounds. Okay, let’s take a look at two of the more popular systems from the 1980’s in order to see two different approaches to creating music.

Rob: The Nintendo Entertainment System had five voices. The Commodore 64 had three voices. Now, you might immediately assume the Nintendo was better but actually it wasn’t. Here’s why. The voices used in the NES are for the most part stuck making one type of sound. The first two voices can only produce square waves that sound like this. The third voice can only produce a triangle and it’s typically used for the low base notes. The fourth voice can only produce noise. The fifth voice is for PCM sampled sounds which was rarely used.

“The Commodore 64 had three voices. It could produce four different types of wave forms. Square, triangle, saw tooth, noise or any combination of those.”
A good example would be Super Mario Brothers 3. You can clearly hear the steel drum sound being used. Because of the way Nintendo music worked, all game music sounded pretty much exactly the same. The tune might be different but it was like they used the same instrument so to speak. The Commodore 64 had three voices. It could produce four different types of wave forms. Square, triangle, saw tooth, noise or any combination of those.
In the early days, most programmers would just assign a certain sound to particular voice and just leave it that way throughout the entire song. That was the simplest thing to do. Here’s an example from the game Mule. Not long after, some clever programmers realized that it was possible to dynamically reassign the voices to other wave forms on the fly. This gave the illusion of having more than three voices. Take this example from Commando.

In order to better understand what’s going on here, try listening to one voice at a time.

David: A few years later, the IBM PC finally got a decent sound upgrade in the form of the AdLib card which use the Yamaha YM3812 sound chip. Shortly after the market share was lost in favor of the Sound Blaster card which also use the same YM3812 sound chip. This chip was basically the foundation of computer music in the IBM PC world for the next ten years. The YM3812 had nine voices and much like the Commodore 64, the voices were independently programmable.

center-img-soundIncidentally, this chip was also used in several Yamaha keyboards such as this one. Take a look inside and you’ll see the YM3812 sound chip. It’s almost as if you could take a sound blaster card and attach keys and speakers to it and you could play it like an instrument. Take a listen to this little sample of music from the game Ultima VI. Now, listen as I recreate that same sound on this keyboard. All right, let’s talk about sampling for a moment. Now, one of the neat things about this keyboard that I haven’t shown you yet, this came out around 1985 and has four voices but one of the things that makes it interesting is that it’s a sampling keyboard.

Now, let me show you exactly what that means. 8-Bit Guy. 8-Bit Guy. 8-Bit Guy. This was not the only device that came out in 1985 that featured a four voice sampling system. The other was the Commodore Amiga. The Commodore Amiga was the first affordable home computer that featured a four voice stereo sampling sound system. With it came a new type of computer music known as the MOD tracker. These were music files that contain samples of different sounds and then the associated music information. The original MOD tracker used a four track system designed around the Amiga sound chip. Later versions eventually added many more tracks for more sophisticated sound cards. This type of format is still in use today as a method for composing new music. The MOD tracker format is not used quite so often anymore with the abundance of storage and memory on modern machines. They pretty much just forgo all of that type of music synthesis in favor of just using one gigantic sample usually in the form of an MP3 file or something like that. All right, that about wraps that up. I hope you’ve found that interesting. Maybe learn something you didn’t already know.

It also may have come to your attention that I have changed the name of my channel. The reason is that’s been pointed out to me on several occasions that I haven’t made really videos about Apple iBooks in quite some time so I changed name from The iBook Guy to The 8-Bit Guy because it’s a little bit more representative of what I actually do here. Also, I want to take a moment to thank Rob for being on my show and why don’t you tell us a little bit about your channel for a moment?

Rob: Thank you for having me on your show. I’m a big fan of your channel. One of the things I like to talk about on my channel are a little bit more obscure, a little more unusual hardware as it relates to video games like this Sharp X68000 computer from Japan. One of my all time favorite systems.

David: If you want to see a little bit more about this piece of obscure equipment, there’s a link down in the description field you can click to take you over to his channel. He’s got a lot of other really obscure stuff in his collection that you can have a look at. All right, also don’t forget to visit me on Facebook and I’ll see you next time.