BEEP

BASin

BEEP

Statement/Command

BEEP makes the loudspeaker produce a single note of a given duration and pitch.

How to use BEEP

BEEP may be used to form a statement in a program or a direct command. It is followed by two numeric values separated by a comma, for example

80 BEEP x,y

The first value (x) may range from 0 to 10 and defines the duration of the note in seconds. The second value (y) may range from -60 to 69 and defines the pitch of the note in semitones below middle C if negative and above middle C if positive.

Example

The command

BEEP 0.5,1

causes the note C# above middle C to sound for half a second.

Format

  • BEEP num-expr, num-expr

See also

Chapter 19.