This article series contains 8 articles, written between 24 October and 01 December 2022.
Generating sound in modern Web Audio API
My first steps in playing music in the browser using Web Audio API start with generating a simple sine wave in an Audio Worklet.
Loading MOD files in the browser
Playing a full song, almost
My MOD player is finally able to play a full song, almost. It's still missing the effects, but it's a good start.
Implementing looping and the first effects
Some of the effects needed to play some of the iconic demo tunes of the 1990s are now implemented, and samples can be looped correctly.
Adding pitch-related effects
The MOD player is progressing nicely. Vibrato, portamento and arpeggio effects are now implemented and working correctly.
Syncopation and a human touch
The final two effects are implemented, and they help demoscene musicians add some more feeling to their songs.
Using music as a timing source for demos
Making the MOD player available
After fighting CSP and the browser security model, the MOD player is now available for anyone to use, on any web site, to play any MOD file.