Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!iuvax!pur-ee!a.cs.uiuc.edu!uxc.cso.uiuc.edu!uxe.cso.uiuc.edu!arunc
From: arunc@uxe.cso.uiuc.edu
Newsgroups: comp.sys.ibm.pc
Subject: Turbo Pascal(4.0) Sound Function
Message-ID: <45900141@uxe.cso.uiuc.edu>
Date: 13 Jul 88 02:52:00 GMT
Lines: 18
Nf-ID: #N:uxe.cso.uiuc.edu:45900141:000:678
Nf-From: uxe.cso.uiuc.edu!arunc    Jul 12 21:52:00 1988


I am writing a program in Turbo Pascal 4.0 to drill musicians
in their recognition of sequences of intervals.  TP4 has a 
built-in Sound(Frequency) function, where "Frequency" is an integer
value.

However, I need frequencies which are real-number values.  (For example,
middle C (C4) is 261.6 Hz.)   I have completed writing the program using
only integers, but the resulting pitch-intervals are, understandably,
"out of tune".

How can frequencies be gotten out of the speaker that are real-number
values?  Can this be done using Turbo Pascal?  Are there other languages
which allow for this degree of control?

Thanks for any help,

	Arun Chandra
	arunc@uiucuxc.CSO.UIUC.EDU