home *** CD-ROM | disk | FTP | other *** search
- program Tone;
-
- {All LoringWare products are dedicated to the memory of my Grandfather,
- Loring E. Tyson. He was a scientist and teacher, and he was my
- inspiration and mentor in the areas of science and technology.
- September 3, 1903 - October 21, 1978.
-
- This program was written to assist in troubleshooting the audio section
- of a computer. It produces an 880 hertz beep 1/20th of a second long, once
- a second. Running TONE gives you an audio source to trace through the audio
- section of the computer under test.
-
- This product may be freely copied and distributed, but the copyright and
- all rights remain the property of the author. Any contributions gratefully
- accepted. Write to or Email Michael L. Tyson PSC Box 1681, Tampa, Fl.
- 33608-5360 GEnie - M.Tyson2}
-
- uses
- Crt;
- var
- clr : char; {used to clear keyboard buffer}
- Stop : boolean; {used to break out of loop}
-
- procedure Beep;
- begin
- sound (880) ; delay (50) ; NoSound ; Delay (950); {.05 sec 880hz beep/sec}
- stop := keypressed {checks for keyboard input}
- end;
- begin
- ClrScr;
- TextBackground(Blue);
- TextColor(Yellow);
- WriteLn(' ');
- WriteLn(' TONE (TM) Ver 1.00 ');
- WriteLn(' ');
- WriteLn(' Copyright 1990 LoringWare ');
- WriteLn(' All rights reserved. ');
- WriteLn(' Press any key to exit. ');
- WriteLn(' ');
- while stop = false do {does procedure beep until}
- beep; {a key is pressed}
- stop := false; {resets variable}
- clr := readkey {clears keyboard buffer}
- end.