home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!emory!uumind!overmind!Interface.citadel!News
- From: Interface!b0b@overmind.mind.org
- Newsgroups: comp.lang.forth
- Subject: Re: Sound
- Message-ID: <2230285@overmind.citadel>
- Date: 27 Aug 92 23:25:00 GMT
- Article-I.D.: overmind.2230285
- Organization: ForthNet, 707-544-9661, v.32bis
- Lines: 20
- X-mailer: Stadel 3.4a-227
- X-Spam-content: irrelevant
-
-
- Brian Dunn writes: # Category 18, Topic 6 # Message 1 Sat Aug 22,
- 1992 # B.DUNN5 [Brian] at 05:19 EDT # # 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? # -----
-
- Hz is inadequate for music, unless it is a floating point number. If
- musical output is the requirement, I think a set of MIDI words is more
- appropriate. The three required parameters for the basic SOUND word are
- pitch, duration, and voice. All three can be MIDI numbers: pitch is a value
- between 0 and 127, duration can be expressed as MIDI clock ticks, and voice
- is the MIDI channel number (range 0 to 15).
-
- Just a thought...
-
-