ZX Spectrum Sound Simulator

Explore the ZX Spectrum's BEEP and PLAY sound commands directly in your browser.

ZX Spectrum BEEP Simulator

Simulate the Standard ZX Spectrum's BEEP command.

BEEP 1, 0
Ready
Frequency: 440 Hz

Try an Example

BBC BASIC SOUND to ZX Spectrum BEEP

The Standard ZX Spectrum cannot select the BBC sound channel or control the volume. Therefore the equivalent BBC BASIC statement is treated as:

SOUND 1,15,p,d

Enter the BBC BASIC pitch and duration below.

BEEP 1, -8
Conversion:

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.

Dragon 32/64 & TRS-80 CoCo SOUND to ZX Spectrum BEEP

The Dragon 32/64 and TRS-80 CoCo use the following SOUND statement:

SOUND (m,n)

Enter the tone and duration values below. The conversion to the ZX Spectrum is:

BEEP n/16,(m-89)/7
BEEP 1, 1
Conversion:

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.

ZX Spectrum 128K PLAY Simulator

Enter a note string for each of the three AY sound channels. The channels are played simultaneously.

PLAY "CDEFG"
Ready
Basic PLAY notation supported:

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

Three-Channel Example

About ZX Spectrum Sound

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.