Uploaded January 2018 | Updated November 2026, 3 hours ago
Another attempt at pushing the GameBoy to its limits. This is a demo of a 3-channel wavetable software synthesizer running at about 7.1 kHz. I tried to keep the V-Blank interrupt as short as possible, but the routine is still quite complex and with a CPU which effectively runs at 2 MHz,
there isn't really much left that can be optimized.
Honestly I don't know what was more difficult to make. The synthesizer itself or the load of tools to convert the C64 tune to the format the synthesizer uses. I had quite some issues with converting the data for the noise waveform. It's still a bit glitchy but it's the best i could achieve. Also, since the original tune runs at 50 Hz, I had to convert it to 60 Hz so the timing is a bit wonky.
"Features" of the synthesizer:
- 3 individually programmable channels
- 5 different sounds: sine, triangle, sawtooth, pulse and noise
- 8-bit pulse width control
- 7-bit volume control (shouldn't go above 85 though, otherwise the output sample might overflow)
- Bandlimit-Level override (An experimental thing. Not used here. In theory it allows for a lowpass-like effect but it's pointless at such a low output quality)
Fun fact: The generated output has a resolution of 8-bit but is quantized to 43 levels for playback.
Original song: RoboCop 3 Theme (C64) by Jeroen Tel
Another attempt at pushing the GameBoy to its limits. This is a demo of a 3-channel wavetable software synthesizer running at about 7.1 kHz. I tried to keep the V-Blank interrupt as short as possible, but the routine is still quite complex and with a CPU which effectively runs at 2 MHz,
there isn't really much left that can be optimized.
Honestly I don't know what was more difficult to make. The synthesizer itself or the load of tools to convert the C64 tune to the format the synthesizer uses. I had quite some issues with converting the data for the noise waveform. It's still a bit glitchy but it's the best i could achieve. Also, since the original tune runs at 50 Hz, I had to convert it to 60 Hz so the timing is a bit wonky.
"Features" of the synthesizer:
- 3 individually programmable channels
- 5 different sounds: sine, triangle, sawtooth, pulse and noise
- 8-bit pulse width control
- 7-bit volume control (shouldn't go above 85 though, otherwise the output sample might overflow)
- Bandlimit-Level override (An experimental thing. Not used here. In theory it allows for a lowpass-like effect but it's pointless at such a low output quality)
Fun fact: The generated output has a resolution of 8-bit but is quantized to 43 levels for playback.
Original song: RoboCop 3 Theme (C64) by Jeroen Tel










