beepPitch

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the beepPitch to <pitchFrequency>
Summary

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

Introduced1.0
OSlinux
Platformsdesktop, server
Example
set the beepPitch to 220 -- A below middle C
set the beepPitch to -1 -- restores default
Values
NameTypeDescription
Value

The beepPitch is an integer between zero and 20000.

RelatedCommand: beep
Glossary: property, Windows, Unix, command, Mac OS
Keyword: default, integer
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 systems, and on some Unix systems which don't allow changing the beep pitch.

Tagsmultimedia