Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!think.com!spool.mu.edu!uunet!midway!mimsy!dftsrv!nssdca.gsfc.nasa.gov!lanmaint From: lanmaint@nssdca.gsfc.nasa.gov (Dave Yoest) Newsgroups: comp.sys.apple2 Subject: Re: What's wrong with this Pascal program? Keywords: pascal Message-ID: <5410@dftsrv.gsfc.nasa.gov> Date: 24 May 91 10:59:36 GMT References: <5397@cernvax.cern.ch> Sender: news@dftsrv.gsfc.nasa.gov Reply-To: lanmaint@nssdca.gsfc.nasa.gov Followup-To: comp.sys.apple2 Distribution: all Organization: NASA - Goddard Space Flight Center Lines: 28 News-Software: VAX/VMS VNEWS 1.3-4 In article <5397@cernvax.cern.ch>, myb@cernvax.cern.ch (michel bornand) writes... >Hi everybody! Here is a simple Pascal program for Apple IIGS which should >produce a sound at 16kHz. It does not work. What's wrong with it? >What did I miss? > >Thank you for all suggestions. > >Micky Your code may (or may not be) fine since I've never programed an Apple, but I suspect that you probably can't hear a 16KHZ tone anyway. The frequency response of the human ear rolls off above 10-14 KHZ, so you may need LOTS of volume to detect an audio signal at frequencies above 15KHZ and even then it may not be detectable. Do you have access to an oscilliscope, if so then connect a probe to the audio output and see if you are generating the signal electrically. It's also possible that IF you can hear a 16KHZ tone, that the speaker you're using won't reproduce a tone at that frequency. (DO dogs respond in any way when you test your program?) 8) Dave Yoest LAN M&O section supervisor NASA/Goddard Space Flight Center Greenbelt, Md. USA DYOEST@128.183.43.16 DYOEST@zaphod.gsfc.nasa.gov