home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / forth / 3053 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.4 KB

  1. Path: sparky!uunet!ogicse!emory!uumind!overmind!Interface.citadel!News
  2. From: Interface!b0b@overmind.mind.org
  3. Newsgroups: comp.lang.forth
  4. Subject: Re: Sound
  5. Message-ID: <2230285@overmind.citadel>
  6. Date: 27 Aug 92 23:25:00 GMT
  7. Article-I.D.: overmind.2230285
  8. Organization: ForthNet, 707-544-9661, v.32bis
  9. Lines: 20
  10. X-mailer: Stadel 3.4a-227
  11. X-Spam-content: irrelevant
  12.  
  13.  
  14.  Brian Dunn writes: # Category 18,  Topic 6 # Message 1         Sat Aug 22, 
  15. 1992 # B.DUNN5 [Brian]              at 05:19 EDT #  # SOUND  ( Hz  
  16. milliseconds  -- )  Generate a tone for some amount of time. #  # Since most 
  17. machines are able to generate several tones at once, perhaps: #  # SOUND  ( 
  18. Hz  voice  milliseconds  -- )  Generate using the given hardware # voice for 
  19. the given number of milliseconds. #  #  # It seems that  SOUND ( Hz voice -- 
  20. ) would allow easy flexibility under many # platforms. #  # The number of 
  21. voices available would be system dependent, and unavailable # voices would be
  22.  ignored. #  # Ideas? # ----- 
  23.  
  24.   Hz is inadequate for music, unless it is a floating point number.  If  
  25. musical output is the requirement, I think a set of MIDI words is more  
  26. appropriate.  The three required parameters for the basic SOUND word are  
  27. pitch, duration, and voice.  All three can be MIDI numbers: pitch is a  value
  28.  between 0 and 127, duration can be expressed as MIDI clock ticks,  and voice 
  29. is the MIDI channel number (range 0 to 15). 
  30.   
  31.   Just a thought... 
  32.  
  33.