You can also control the duration and pitch of the beep under some operating systems by using the beep function, beep_vv():
|
||
|
|
|
|
|
|
For operating systems that do not support variable beeps, specifying both a pitch and duration greater than 0 causes the standard bell to ring.
To simplify setting the pitch and duration of the beep, the following defined values for duration are provided:
| BPSHORT | 3 (for 3/100's of a second) |
| BPMEDIUM | 10 (for 10/100's of a second) |
| BPLONG | 30 (for 30/100's of a second) |
| BPBELL | Produces a tone exactly like bell_vv() |
| OFF | 0/100's of a second |
The following defined values for pitch are provided:
| BPLOW | 100 hertz |
| BPMIDDLE | 500 hertz |
| BPHIGH | 1,000 hertz |
| BPBELL | Produces a tone exactly like bell_vv() |
| OFF | Produces no tone |
Specifying BPBELL for either duration or pitch will cause the standard bell to be rung. Specify OFF for either duration or pitch to turn the bell off.