beep
Produces a sinusoidal tone or a standard notification sound.
Syntax
-
beep()
-
beep(kind)
-
kind
is a string
-
-
beep(ν, dur)
-
ν
is a positive integer -
dur
is a non-negative integer
-
Description
-
beep()
emits the system’s default message sound. The sound is played asynchronously. -
beep(kind)
emits a specific system message sound.kind
is one of the following values:-
default
-
information
-
warning
-
error
-
question
-
The sound is played asynchronously.
-
beep(ν, dur)
emits a sinusoidal tone with frequencyν
and durationdur
milliseconds.The sound is played synchronously. The function doesn’t return until
dur
milliseconds have elapsed and it cannot be aborted.For anything but very brief sounds (< 1 s), it is advised that the
SineTone
andPlaySound
functions are used instead, optionally withwait
to simulate synchronicity.