home *** CD-ROM | disk | FTP | other *** search
- {.PTEPSON}
- {.MHTest Program For Turbo Pascal Source Code Lister - @D - @T}
- {.MFVersion ##1.0 Page - # -}
- {.PA}
- {
-
- SOUND.PAS
- A Cleaned Up Sound Demonstration Program
-
- Copyright (c) Borland International
-
-
- This program was written by Borland International, it was picked as
- the test program for the turbo lister utility, mainly because of it's
- small size and the number of subroutines.
-
- }
- program SoundDemo;
-
- uses Crt;
-
- type
- NoteRecord = record
- C,CF,D,DF,E,F,FF,G,GF,A,AF,B: integer;
- end;
-
- Const
- Notes: NoteRecord =
- (C:1;CF:2;D:3;DF:4;E:5;F:6;FF:7;G:8;GF:9;A:10;AF:11;B:12);
-
- Var
- Ch : Char;
-
- {$I TEST.LIB} { Demonstrate Include File Listing }
-
- {.PC10}
- begin
- writeln('Press any key to Stop');
- repeat SoftAlarm until KeyPressed;
- Ch := ReadKey;
- writeln('Press any key to Stop');
- repeat Sirene until KeyPressed;
- NoSound;
- end.