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: <4024.UUL1.3#5129@willett.pgh.pa.us>
- Date: 28 Aug 92 12:02:33 GMT
- Organization: EIEI-U
- Lines: 29
-
- Category 18, Topic 6
- Message 5 Fri Aug 28, 1992
- B.DUNN5 [Brian] at 01:16 EDT
-
- console SELECT-SOUND and midi SELECT-SOUND and so on is a good idea except
- that about the only portable sound device would be CONSOLE. Midi might be a
- second idea, but it is based more on musical notes and less on Hertz. I wish
- Forths would have a standard I/O redirection wordset, and this would be a good
- topic some day.
-
- In experimenting with implementations of sound and noise words, the need for
- volume appeared. What is working fairly well:
-
- : TONE ( Hertz volume voice# -- ) ... ;
-
- : NOISE ( Hertz volume voice# -- ) ... ;
-
- Tone generates a tone and noise generates white noise for explosions and the
- like. Volume is 0-255 at the moment, Hertz is an integer 0 and up ( look at
- your stereo EQ ), and voice# is a small integer from 0 up. On the ST there are
- 3 mostly independent voices.
-
- SELECT-SOUND might be useful for selecting between square waves and sine waves
- and piano sounds, on machines which are able to do so.
- -----
- 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
-