home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
progpas
/
tspas18.arj
/
TSUNTC.INT
< prev
next >
Wrap
Text File
|
1990-02-24
|
2KB
|
62 lines
{$B-,D-,F-,I+,N-,R-,S+,V+}
(*
Timo Salmi UNiT C
A Turbo Pascal 5.0 unit for playing and printer status
All rights reserved 26-Jul-89,
Updated 19-Aug-89, 12-Nov-89
Routines that were here prior the tspas13 update have been transferred to
TSUNTE.TPU
This unit may be used and distributed freely for PRIVATE, NON-COMMERCIAL,
NON-INSTITUTIONAL purposes, provided it is not changed in any way. For
ANY other usage, contact the author.
The units are under development. Comments and contacts are solicited. If
you have any questions, please do not hesitate to use electronic mail for
communication.
InterNet address: ts@chyde.uwasa.fi (preferred)
Funet address: GADO::SALMI
Bitnet address: SALMI@FINFUN
FidoNet address: 2:515/1 (Micro Maniacs Opus, To: Timo Salmi)
The author shall not be liable to the user for any direct, indirect or
consequential loss arising from the use of, or inability to use, any unit,
program or file howsoever caused. No warranty is given that the units and
programs will work under all circumstances.
Timo Salmi
Professor of Accounting and Business Finance
School of Business Studies, University of Vaasa
P.O. BOX 297, SF-65101 Vaasa, Finland
*)
unit TSUNTC;
(* ======================================================================= *)
interface
(* ======================================================================= *)
uses Dos, Crt;
(* Play one note
The strings (pardon the pun) to play the notes are:
c,c#,d,d#,e,f,f#,g,g#,a,a#,b
The middle a-flat (440Hz) is in octave 4
*)
procedure PLAYNOTE (note : string; octave : integer; duration : integer);
(* Is the parallel printer online. This works for the printers I have, but
there are differences in computer-printer configurations which may
affect this function *)
function PRTONLFN : boolean;
(* Reverse TextColor and TextBackround, that is toggle the colors *)
procedure REVCOLOR;
(* Number of disk devices. Only for MsDos 3.+
Actually this one is in a wrong unit since it need no Crt unit *)
function DSKCNTFN : byte;