Beep
 
Produces a beep sound.

Syntax

Declare Sub Beep ( )
Declare Sub Beep ( ByVal duration As Single, ByVal pitch As Single )

Usage

Beep
Beep duration, pitch

Parameters

duration
Duration in seconds.
pitch
Pitch as semitones from middle C, matching the sfxlib pitch form.

Description

Beep tells the system to sound a beep noise. The no-argument form keeps the traditional console behavior. The two-argument form uses sfxlib and produces a generated note with an explicit duration and pitch.

For more control over generated sound, use the sfxlib commands such as Sound, Tone, Note, and Play.

Example

Beep


Differences from QB

  • In QB, this was a single tone noise generated through the PC speaker. Now this might not be the case.

See also