beepPitch

Sets the frequency of the sound played by the beep command.

# Metadata

Platforms: desktop, server OS: linux Introduced: 1.0 Security:

# Syntax

set the beepPitch to pitchFrequency

# Examples

set the beepPitch to 220 -- A below middle C

set the beepPitch to -1 -- restores default

# Description

Use the beepPitch property to make the beep sound higher or lower.

The *pitchFrequency* is the frequency in Hz (cycles per second). A value of 440 is A above middle C. Halving the frequency lowers the pitch one octave; doubling the frequency raises it one octave.

Set the beepPitch to -1 to use the default system setting.

The beepPitch has no effect and does not report a meaningful value on Mac OS or Windows, and on some Unix which don't allow changing the beep pitch.

# Tags

# See

- **command:** beep - **glossary:** property, Windows, Unix, command, Mac OS - **keyword:** default, integer