Explore the ZX Spectrum's BEEP and
PLAY sound commands directly in your browser.
Simulate the Standard ZX Spectrum's
BEEP command.
The Standard ZX Spectrum cannot select the BBC sound channel or control the volume. Therefore the equivalent BBC BASIC statement is treated as:
Enter the BBC BASIC pitch and duration below.
BEEP duration = d / 20
BEEP pitch =
((p - 4) / 4) - 12
The BBC channel is assumed to be 1
and the volume is assumed to be 15,
as the Standard 16K/48K Spectrum cannot directly
control either parameter.
The Dragon 32/64 and TRS-80 CoCo use the following
SOUND statement:
Enter the tone and duration values below. The conversion to the ZX Spectrum is:
The Dragon/CoCo tone is converted using:
(m - 89) / 7
The duration is converted using:
n / 16
The Dragon/CoCo parameters are reversed when converted
to the ZX Spectrum BEEP command.
Enter a note string for each of the three AY sound channels. The channels are played simultaneously.
C D E F G A B - Notes
+C or #C - Sharp
-C - Flat
P - Rest
O4 - Select octave
L4 - Select note length
T120 - Set tempo
V10 - Set volume
Example:
O4 T120 L4 CDEFG
The Standard 16K and 48K ZX Spectrum produces sound using
its single-bit sound output. The BASIC BEEP
command can therefore produce only one sound at a time.
The ZX Spectrum 128K models introduced the AY sound chip,
providing three independent tone channels with individual
volume control. The BASIC PLAY command can
be used to control these channels.
This simulator uses the Web Audio API to generate the sound in your browser. It does not require any sound files.