home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
util1
/
drnu451.lzh
/
NUBEBEEP
< prev
next >
Wrap
Text File
|
1990-10-19
|
4KB
|
97 lines
BE BEEP
Description: Sounds a tone or series of tones on the system's internal
speaker.
Syntax: Version 4.5: BE BEEP [(drive:)][(path)](filespec) [/E]
BE BEEP [/F(n)] [/D(n)] [/R(n)] [/W(n)]
Parameters:
(drive:) The single-letter specifier (A:, B:, C:, etc.) for the drive
containing the file you want to use. Follow the letter with a
colon. Your current drive is the default.
(path) The full name (C:\WP\LETTERS) of the directory in which the
file is defined. The current directory for the designated
drive is the default.
(filespec) The name of the file containing tone values BE BEEP can sound.
Each line in the file can contain frequency (/F), duration
(/D), repetition (/R), and wait (/W) specification parameters.
Each line in the file can contain a comment; specify the
beginning of a comment with a semicolon. See the example
below.
/D(n) Specifies the duration of the sound in eighteenths of a
second. For example, /D18 sounds the frequency for one second.
The number must be a positive integer. If you specify neither
the /D parameter nor the /F parameter, BE BEEP sounds the
computer's default tone. If you specify /F without specifying
/D, the frequency sounds for approximately one-half second
(/D9).
/E If you specify (filespec), causes BE BEEP to display any
comments that are enclosed in double-quote marks.
/F(n) Specifies the frequency of the sound in cycles per second
(Hz). The number must be a positive integer. Middle C is
approximately 262. See <NUFREQ> for an extensive list of
frequencies. If you do not specify this parameter, BE BEEP
sounds the computer's default frequency.
/R(n) Specifies the number of times BE BEEP repeats the sound. The
number must be a positive integer.
/W(n) Specifies the wait period at the end of each tone in
eighteenths of a second. The wait period is the time between
beeps. The number must be a positive integer. Note that if you
specify the /R parameter, no sound occurs during the wait
period at the end of each repetition of the tone.
Example: To play the song ``Three Blind Mice'' from a stored file and
to display the words as the notes are played, enter:
BE BEEP mice.dat /E
MICE.DAT contains:
; Three Blind Mice
; Freq. Dur. Wait Rep. Note Words:
BEEP F659 D10 ; E "Three"
BEEP F587 D10 ; D "Blind"
BEEP F523 D10 W10 ; C "Mice. "
BEEP F659 D10 ; E "Three"
BEEP F587 D10 ; D "Blind"
BEEP F523 D10 W10 ; C "Mice. "
BEEP F784 D10 ; G "See"
BEEP F698 D5 /R2 ; F, F "How They"
BEEP F659 D10 W10 ; E "Run!"
BEEP F784 D10 ; G "See"
BEEP F698 D5 /R2 ; F, F "How They"
BEEP F659 D10 W10 ; E "Run!"
See: <NUFREQ>.