User Guide
beep() 241
Example
This statement displays the arctangent of 1:
(1).atan
The result, to four decimal places, is 0.7854, or approximately pi/4.
Most trigonometric functions use radians, so you may want to convert from degrees to radians.
This handler lets you convert between degrees and radians:
-- Lingo syntax
on DegreesToRads degreeValue
return degreeValue * PI/180
end
// JavaScript syntax
function DegreesToRads(degreeValue) {
return degreeValue * PI/180
}
The handler displays the conversion of 30 degrees to radians in the Message window:
put DegreesToRads(30)
-- 0.5236
See also
cos(), PI, sin()
beep()
Usage
-- Lingo syntax
_sound.beep({intBeepCount})
// JavaScript syntax
_sound.beep({intBeepCount});
Description
Sound method; causes the computer’s speaker to beep the number of times specified by
intBeepCount. If intBeepCount is missing, the beep occurs once.
• In Windows, the beep is the sound assigned in the Sounds Properties dialog box.
• For the Macintosh, the beep is the sound selected from Alert Sounds on the Sound control
panel. If the volume on the Sound control panel is set to 0, the menu bar flashes instead.
Parameters
intBeepCount
Optional. An integer that specifies the number of times the computer’s speakers
should beep.
Example
-- Lingo syntax
on mouseUp me
_sound.beep(1)
end mouseUp