Pages about Retrocomputing – page 1 of 2
Spaces in variable names in ZX Spectrum BASIC
Variables in ZX Spectrum BASIC can contain spaces, which is useful for naming variables with multiple words, but it makes parsing difficult.
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.
Using music as a timing source for demos
Syncopation and a human touch
The final two effects are implemented, and they help demoscene musicians add some more feeling to their songs.
Adding pitch-related effects
The MOD player is progressing nicely. Vibrato, portamento and arpeggio effects are now implemented and working correctly.
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.
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.
Loading MOD files in the browser
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.
"Hello, World!" in ZX Spectrum machine code
A "Hello, World!" program in Z80 assembler for the ZX Spectrum can be written by calling the CHAN_OPEN and PRINT subroutines to send the "Hello, World!" string to the screen channel.