chiptune galore

Over the years I ported a number of existing 3rd party chiptune emulators to JavaScript/WebAudio. The original programs were typically written in C or C++ and designed as regular PC applications. Respective programs had to be migrated to JavaScript and more importantly the Web’s asynchronous execution model. Emscripten here does most of the heavy lifting and migration doesn’t take much time once you get the hang of it (though it comes at the price of somewhat larger code – as compared to handwritten JavaScript).

I am using my generic  WebAudio ScriptNode player to which respective emulator-backends can be added as plugins.

UADE was one of the more challenging migrations due to the Amiga emulator’s unpredictable on-demand file loading.

Quite popular for MOD file playback XMP is a very well behaved citizen and could be migrated easily.

Again nothing tricky about the adlib player.

Spectrum fans had been asking for this one. Unfortunately the original emulator code makes invalid memory alignment assumptions which required a bit of cleanup to make it work in JavaScript.

There isn’t much to be said in favour of 8-bit Ataris but the simple code made this migration a freebee.

Arcade machine music 🙂 

Sony’s Playstation.

Here the emulator was already in JavaScript and I just used it as an example for how to make it a plugin for my generic player.

One thought on “chiptune galore

Leave a Reply