home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / forth / 3052 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.5 KB  |  39 lines

  1. Path: sparky!uunet!gatech!pitt!willett!ForthNet
  2. From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie)
  3. Newsgroups: comp.lang.forth
  4. Subject: Sound
  5. Message-ID: <4024.UUL1.3#5129@willett.pgh.pa.us>
  6. Date: 28 Aug 92 12:02:33 GMT
  7. Organization: EIEI-U
  8. Lines: 29
  9.  
  10. Category 18,  Topic 6
  11. Message 5         Fri Aug 28, 1992
  12. B.DUNN5 [Brian]              at 01:16 EDT
  13.  
  14. console SELECT-SOUND   and  midi SELECT-SOUND  and so on is a good idea except
  15. that about the only portable sound device would be CONSOLE. Midi might be a
  16. second idea, but it is based more on musical notes and less on Hertz.  I wish
  17. Forths would have a standard I/O redirection wordset, and this would be a good
  18. topic some day.
  19.  
  20. In experimenting with implementations of sound and noise words, the need for
  21. volume appeared.  What is working fairly well:
  22.  
  23. : TONE ( Hertz  volume  voice#  -- )  ... ;
  24.  
  25. : NOISE  ( Hertz  volume  voice#  -- )  ... ;
  26.  
  27. Tone generates a tone and noise generates white noise for explosions and the
  28. like.  Volume is 0-255 at the moment, Hertz is an integer 0 and up ( look at
  29. your stereo EQ ), and voice# is a small integer from 0 up. On the ST there are
  30. 3 mostly independent voices.
  31.  
  32. SELECT-SOUND might be useful for selecting between square waves and sine waves
  33. and piano sounds, on machines which are able to do so.
  34. -----
  35. This message came from GEnie via willett.  You *cannot* reply to the author
  36. using e-mail.  Please post a follow-up article, or use any instructions
  37. the author may have included (USMail addresses, telephone #, etc.).
  38. Report problems to: dwp@willett.pgh.pa.us
  39.