video games

All posts tagged video games

When I was a kid, my brothers and I played the fuck out of some Commodore 64, and later NES, games. We were forced to take turns (sharing sucks), and since some games were quick (Green Beret) while others were not (African Adventure), my brothers and I somehow agreed on 30 minute turns. That way, if we were playing a quick game (or died too quickly), we could try again without worrying about a brother playing a long-ass turn of Dragon Warrior. I was a software pirate then, getting pirated games from friends who’d learned to copy games, and to use a hole-punch to turn a single-sided floppy disc into a double-sided one so we could save money on blank discs.

One game that my brothers and I all agreed on, though, was World Karate Championship, or International Karate as it was known before being licensed by Epyx. It was quite playable, and posed a decent challenge without being too difficult. Additionally, it boasted a killer score:

Before I go any further, let me just say that although I love this tune to this day, I do recognize it’s inherently problematic, as Rob Hubbard relied heavily on a stereotypical “Oriental riff“-type feel in its melody (which he did even more egregiously in the score to Mastertronic’s Ninja). I’ll have more to say on this specific facet of music in an upcoming post about guilty pleasures, but for now, try to grit your teeth and bear it for now.

At this point, I’ve been delighted by this song for nearly three decades. It rolls along unchanged for a few minutes, then a drum fill heralds the coming of an uptempo section at about four minutes. This new section was exciting, as it meant the game was going particularly well. And whoa boy, if you got six minutes into the game, you were treated to a total shredding lead solo. Exciting! Only once, that I can remember, did I last long enough in the game to get to the coda, a reprise of the initial melody and feel, with extra “Oriental” bits added (challenging the blush response of the Progressive I have become in my old age).

Today, in a discussion with Evan, I was poking around youtube looking for this tune and others to paste into FB when I discovered a copy of the above tune with some actual video content beyond game screengrabs:

This video is a combined view of the Commodore 64’s SID chip‘s three oscillators, each rendered oscilloscope-style, but centered in the middle of the screen. Initially, there are three flat lines, and then the middle line begins oscillating with a sawtooth waveform. After a few seconds, the other two oscillators come in, as square (or pulse) waves. You can see all three stretch and shrink as the pitches down and up (the number of “squares” on the screen increases with pitch).

The SID chip only had three oscillators, so when you needed, for example, drums, in addition to the three voices already going strong, you had to get creative. Hubbard, on this track, did that by sneaking the drums (as filtered white noise) into the bassline track, the bottom line in this video. (Watch for when the line gets all crazy, then goes back to squares — those are the drum sounds).

All this was interesting to me, not just because I grew up playing this game and hearing this song on a loop for 30 minutes at a time in the 80s, but because I recently bought an actual oscilloscope to use with my modular synthesizer. I’d not used an oscilloscope since the 90s, when I was working toward my (useless) Physics degree, but I figured I’d retained enough to be able to get some use out of my new Craigslist find. I brought it home, secured the right cables on ebay, and pointed my Braids into the oscilloscope.

Now, Braids is a gorgeous sounding synth, but looking at it on an oscilloscope was a whole new experience:

Braids is beautiful even without hearing it. #modularsynth

A photo posted by dj empirical (@dj_empirical) on

Of course, Braids is quite complex, far more so than the C64’s SID chip was.

This new C64 video intrigued me, and I watched it a few times, listening along to the sounds, realizing that I could already kinda tell the difference between square, triangle, and sawtooth waveforms by ear, which is cool. Something else, though, caught my ear/eye.

Play that video at about the 1:31 point, right when the new melody comes in (on the top line). You’ll see the square wave not just grow and shrink relative to the center point, but the width to the square relative to the gap between squares changes as well; i.e., it’ll go from a thin square to a thick one. This is called pulse width modulation (PWM), and is something I qualitatively understood from my modular synth experimentation, but had never really connected directly with a sound so clearly than as shown in this vid.

I decided to take a look at this user’s other oscilloscope vids, to see whether I could hear that same sound in another oscillator with changing PWM. I found “Monty on the Run“, by the same composer, and wow, is the PWM ever visible here!

At 10 seconds in, the top two oscillators are both playing static notes, so their pitches are not changing (same number of square waves in the screen). However, the width of their square waves is varying in a regular fashion, and it’s audible! At 1:52, the uppermost line hits a point where the pulse width is very short, giving the oscillator a new, sharper sound for a few bars

This is a bit of a breakthrough for me. I’ve been kind of “academically” aware of waveforms and what they do (cf. that Physics degree I mentioned), but haven’t really paid enough attention to what they sounds like (you know, the most important part). As a relatively new synth player, this stuff is fascinating, and understanding it will go a long way toward enhancing my own compositions.

Another disclaimer to all of this is that I’m very new to all this, plus I know there are things going on in the C64 SID chip that aren’t necessarily readily apparent (phasing, ring modulator, etc.). Hubbard, I think, is notorious for using the chip in ways to get crazy chorus-y, phase-y sounds.

Please do leave a comment if you have anything to add or clarify.