Skip to navigation


Version analysis of E%

This code appears in the following versions (click to see it in the source code):

Code variations between these versions are shown below.

Name: E% Type: Variable Category: Sound Summary: Sound envelope definitions
This table contains the sound envelope data, which is passed to OSWORD by the

Code variation 1 of 2A variation in the comments only

Tap on a block to expand it, and tap it again to revert.

FNE macro to create the four sound envelopes used in-game. Refer to chapter 30 of the BBC Micro User Guide for details of sound envelopes and what all the parameters mean.
FNE macro to create the four sound envelopes used in-game. Refer to chapter 22 of the Acorn Electron User Guide for details of sound envelopes and what all the parameters mean.
The envelopes are as follows: * Envelope 1 is the sound of our own laser firing * Envelope 2 is the sound of lasers hitting us, or hyperspace * Envelope 3 is the first sound in the two-part sound of us dying, or the second sound in the two-part sound of us hitting or killing an enemy ship * Envelope 4 is the sound of E.C.M. firing
.E%

Code variation 2 of 2Related to a standard feature

There is a subtle difference between the cassette version's laser firing sound compared to the disc and 6502SP versions (the Master has a unique sound system so is different again). Specifically, the cassette version has a slightly lower #amplitude in the envelope's attack phase, which makes the lasers noticeably quieter. The Electron laser sound, meanwhile, is also unique.

Tap on a block to expand it, and tap it again to revert.

EQUB 1, 1, 0, 111, -8, 4, 1, 8, 8, -2, 0, -1, 112, 44
EQUB 1, 1, 0, 111, -8, 4, 1, 8, 8, -2, 0, -1, 126, 44
EQUB 1, 1, 0, 111, -8, 4, 1, 8, 126, 0, 0, -126, 126, 126
 EQUB 2, 1, 14, -18, -1, 44, 32, 50, 6, 1, 0, -2, 120, 126
 EQUB 3, 1, 1, -1, -3, 17, 32, 128, 1, 0, 0, -1, 1, 1
 EQUB 4, 1, 4, -8, 44, 4, 6, 8, 22, 0, 0, -127, 126, 0