From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_40,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,760ebde180207ad2 X-Google-Attributes: gid103376,public From: mfb@mbunix.mitre.org (Michael F Brenner) Subject: Re: Sound Date: 1998/04/16 Message-ID: <6h5fsj$2jp@top.mitre.org>#1/1 X-Deja-AN: 344737158 References: <3533E2F6.70212BB1@vci.net> <6h2oad$mus$1@cnn.Princeton.EDU> Organization: The MITRE Corporation, Bedford Mass. Newsgroups: comp.lang.ada Date: 1998-04-16T00:00:00+00:00 List-Id: Andy > ... package to put either WAV or even MIDI sounds into my Ada programs? Martin > ... Air Force Academy ... a simple interface to play WAV files at > ftp://ftp.usafa.af.mil/pub/dfcs/carlisle/mcc-sounds/mcc-sounds.adb > and ads, working under gnat 3.10 and Windows 95. This file needs a dummy, null parent visible part Package MCC. After adding that, I confirmed that it also works under Windows NT 4 under gnat 3.10. If this program is maintained further, the constant 16#20000# could be given the name snd_no_wait. The other part of the request is a little harder. To play MIDI, you need instruments (either software or hardward) that produce the sounds requested by the MIDI file. You see, the MIDI file does not have sounds in it, but rather piano-keyboard keystrokes: start note, stop note, choose instrument, etc. There are several ways to do MIDI. The HARDWARE way is to buy a MIDI keyboard. The MIDI keyboard has a serial port that connects to the computer's serial port. The computer sends the MIDI to the keyboard and the keyboard sends the sound waves to the computer-sound-card audio-port which encodes them as a WAV file. Some keyboards have the feature that you can download samples (that is, notes from additional instruments) into the keyboard. The SOFTWARE way is to purchase a synthesizer software which is often called a MIDI sequencer. The sequencer reads the MIDI file and merges in the sound samples for each note on each instrument. The sequencer outputs the audio which is then sampled and encoded into a WAV file. Mike