beep
Produces a sinusoidal tone or a standard notification sound.
Syntax
-
beep() -
beep(kind)-
kindis a string
-
-
beep(ν, dur)-
νis a positive integer -
duris 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.kindis one of the following values:-
default -
information -
warning -
error -
question
-
The sound is played asynchronously.
-
beep(ν, dur)emits a sinusoidal tone with frequencyνand durationdurmilliseconds.The sound is played synchronously. The function doesn’t return until
durmilliseconds have elapsed and it cannot be aborted.For anything but very brief sounds (< 1 s), it is advised that the
SineToneandPlaySoundfunctions are used instead, optionally withwaitto simulate synchronicity.