home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!pitt!willett!ForthNet
- From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie)
- Newsgroups: comp.lang.forth
- Subject: Sound
- Message-ID: <4010.UUL1.3#5129@willett.pgh.pa.us>
- Date: 22 Aug 92 13:27:39 GMT
- Organization: EIEI-U
- Lines: 38
-
- Category 18, Topic 6
- Message 1 Sat Aug 22, 1992
- B.DUNN5 [Brian] at 05:19 EDT
-
- After a while, 7 EMIT gets a bit dull. Most machines are able to generate
- some kind of sound. A least common denominator is a generic tone of some
- frequency. One problem is that some computers must wait while generating this
- tone ( an old Apple ][+, say ) while others are able to go their own way while
- the tone is being generated. Then, some are able to generate a tone for a
- certain amount of time and will automatically stop later. Others must be told
- to stop.
-
- HERTZ ( Hz -- ) Start creating a tone of the given frequency.
- Only one tone at a time is active, the previous is immediatly stopped.
- A parameter of 0 causes silence.
-
- -or-
-
- SOUND ( Hz milliseconds -- ) Generate a tone for some amount of time.
-
- Since most machines are able to generate several tones at once, perhaps:
-
- SOUND ( Hz voice milliseconds -- ) Generate using the given hardware
- voice for the given number of milliseconds.
-
-
- It seems that SOUND ( Hz voice -- ) would allow easy flexibility under many
- platforms.
-
- The number of voices available would be system dependent, and unavailable
- voices would be ignored.
-
- Ideas?
- -----
- This message came from GEnie via willett. You *cannot* reply to the author
- using e-mail. Please post a follow-up article, or use any instructions
- the author may have included (USMail addresses, telephone #, etc.).
- Report problems to: dwp@willett.pgh.pa.us
-