Re: SoundBlaster

new topic     » goto parent     » topic index » view thread      » older message » newer message

It sounds as though you're talking about using code to create the files
"manually". If so, that is NOT what you want to do. The file formats are
not difficult, and MIDI would be possible if not practical, but you
wouldn't live long enough to code a 3 minute WAV file. The format is
specifically designed for accurate recordings from "a microphone" (or
other analog source).

A WAV file is a LARGE stream of bytes representing "samples" of the
analog waveform, normally produced by an ADC (analog to digital
convertor) chip - and minimal quality sound (8 bit mono at about 11,000
samples per second) requires just that - 11,000 bytes for each _second_
of sound. The only practical ways to produce these files are to use
recording software (exs: the MS sound recorder in WIN9x or the shareware
Cool Edit),  or to convert (programmatically) from another format.

MIDI files contain byte streams which are control codes for a MIDI
synthesizer, making them much, much smaller, but dependent on the
available synthesizer hardware/software for the "sound of the sound."
There is an international standard called MIDI GM (or GM MIDI or General
MIDI) for the format and control codes used in these files, which all
modern MIDI instruments (including soundcards and "soft synthesizers"
will play correctly - in the loosest sense of the term. These files
_could_ be generated by coding them directly, but it's still far easier
to use a piece of software called a MIDI sequencer - many sound cards
with MIDI capability come with sequencer software, and there are a large
number of free or shareware sequencers scattered about the Web.

Do some searching using "MIDI file format" and "MIDI sequencer" for the
MIDI info.
Sorry I don't have any specific URLs to pass along, but the info is
widely available, so you should be able to track it down fairly quickly
if you have a browser.



รด wrote:

> Hi all !Is there a way to code music for `n sound card ? Not PC
> speaker crap !I don`t want to use a sound file that alredy exist, I
> just want to program a soundfile, like MIDI or WAV , but just using
> code.Not a microphone !Thanks ! Ferdinand Greyling

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu