From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,12eefc27e85fb3ac X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 27 Apr 2005 00:48:01 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Typical Newbie Problem: Tone Generation References: <1114563757.133852.169710@o13g2000cwo.googlegroups.com> X-Newsreader: Tom's custom newsreader Message-ID: Date: Wed, 27 Apr 2005 00:48:02 -0500 NNTP-Posting-Host: 24.6.127.15 X-Trace: sv3-BClO7ifaiVvnA9tGnT1ZvHhYjSaY+5QinsmSJbbVjki2ZCZybEx3ROhpH4hLY6uGXR9vA1rEtIyRfox!pjAFJZlVFGf5ZgZ0NlLD/JMFeCZGRM0vPOGPZWVVkw7+7PacpSXIYu/SEiE= X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.lang.ada:10745 Date: 2005-04-27T00:48:02-05:00 List-Id: Windows has a tone generation call. I believe you can see it in a download of the free Claw.Sounds procedure Beep (Hertz : in Hertz_Type := 400; Milliseconds : in Claw.DWord := 200); -- Create a Beep with the specified Hertz and Millisecond duration. -- Raises: -- Windows_Error if Windows reports an error. -- Not_Supported_Error if not running on Windows NT and the -- parameters have values other than the default ones. -- Implementation note: On Windows 95, this always triggers the -- system default sound; the parameter values aren't used. Use the -- control panel to adjust the sound or turn it off. -- Note: -- This routine waits for the sound to be played, returning only -- when it is done. The supported Claw has the routines for playing waveforms and a little demo that plays a tune where you can adjust the tone characteristics, and thus the "instrument", on the fly.