home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / forth / 3012 < prev    next >
Encoding:
Internet Message Format  |  1992-08-22  |  1.7 KB

  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: <4010.UUL1.3#5129@willett.pgh.pa.us>
  6. Date: 22 Aug 92 13:27:39 GMT
  7. Organization: EIEI-U
  8. Lines: 38
  9.  
  10. Category 18,  Topic 6
  11. Message 1         Sat Aug 22, 1992
  12. B.DUNN5 [Brian]              at 05:19 EDT
  13.  
  14. After a while, 7 EMIT gets a bit dull.  Most machines are able to generate
  15. some kind of sound.  A least common denominator is a generic tone of some
  16. frequency.  One problem is that some computers must wait while generating this
  17. tone ( an old Apple ][+, say ) while others are able to go their own way while
  18. the tone is being generated.  Then, some are able to generate a tone for a
  19. certain amount of time and will automatically stop later. Others must be told
  20. to stop.
  21.  
  22. HERTZ  ( Hz -- )  Start creating a tone of the given frequency.
  23.   Only one tone at a time is active, the previous is immediatly stopped.
  24.   A parameter of 0 causes silence.
  25.  
  26.  -or-
  27.  
  28. SOUND  ( Hz  milliseconds  -- )  Generate a tone for some amount of time.
  29.  
  30. Since most machines are able to generate several tones at once, perhaps:
  31.  
  32. SOUND  ( Hz  voice  milliseconds  -- )  Generate using the given hardware
  33. voice for the given number of milliseconds.
  34.  
  35.  
  36. It seems that  SOUND ( Hz voice -- ) would allow easy flexibility under many
  37. platforms.
  38.  
  39. The number of voices available would be system dependent, and unavailable
  40. voices would be ignored.
  41.  
  42. Ideas?
  43. -----
  44. This message came from GEnie via willett.  You *cannot* reply to the author
  45. using e-mail.  Please post a follow-up article, or use any instructions
  46. the author may have included (USMail addresses, telephone #, etc.).
  47. Report problems to: dwp@willett.pgh.pa.us
  48.